Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | percy1000 |
Hi,
Why does Godot seem to drop 1 frame per second? I have a simple project that just shows the accumulated time when the rate drops. It’s 2d, with a label and the following code:
extends Node2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
var totTime = 0
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
pass
func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
totTime += delta
if delta > 0.02:
$Label1.text = str(totTime)
Almost exactly every second, the rate drops (so the fps drops to about 30 briefly).
I’ve tried exporting without debug - no change.
Thanks
Do you have remote
scene tree selected in the editor when you run the game?
Zylann | 2018-07-16 12:55
Hi,
Thanks for the reply. No (if you mean is auto switch on), and I tried changing the refresh interval anyway - no change.
The exported .exe+pck do it on serveral differnet PCs. I also exported to a mac - it doesn’t happen regularly this (maybe once every 3 minutes)
percy1000 | 2018-07-16 13:12