0 votes

Hi, is there a way to print the time from the moment I press "play scene" until the scene is fully loaded?
The scope is to measure performance - see how fast the scene is loaded.

(Sorry I really don't know how to search for this or how to ask it better)

Godot version 3.3.4
in Engine by (20 points)
reshown by

1 Answer

0 votes

var time = OS.getticksmsec()
func _ready():
print(time)

by (20 points)
reshown by

I hid the comment where you were calling the OP "noob"... I was first going to ban you and later realized that you were actually answering your own question, and thus self-deprecating as an attempt to be humorous (I suppose). Don't do that, it's easily misunderstood and not the atmosphere we want in this platform.

wow, I thought this website was deserted. I'm glad somebody actually read my answer and my question. Kind of funny to give myself an answer and also call me a noob (which I am), don't you think? The documentation is there for a reason and we all should read it, multiple times so we don't forget things like gettickmsec(). And don't go out to ban people, bad people, good people, we all have our reasons for our existence. Society needs all of us.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.