Skip to content

Commit

Permalink
Only increment timer on physics frames
Browse files Browse the repository at this point in the history
  • Loading branch information
veigaribo committed Jul 27, 2023
1 parent 78a6b6c commit 3bd8b7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/display_time.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ func _ready() -> void:
set_text("00:00.000")


func _process(_delta: float) -> void:
# Only count significant frames
func _physics_process(_delta: float) -> void:
if _running:
set_text(_format())

Expand Down

0 comments on commit 3bd8b7b

Please sign in to comment.