Printing time from "play scene" to actual window scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dango1

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)

:bust_in_silhouette: Reply From: dango1

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

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.

Akien | 2021-10-22 10:50

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.

dango1 | 2021-10-22 15:27