GodotSteam MP build 4.2.2 stable - linux64 s159 gs48
Hello!
I am trying to make a coin total display, I make a Control-based scene, with a Spinbox (used to be a Label, but I tried a Spinbox to see if that was the source of my woes…)
The whole thing is functional, but I get lag spikes when the value changes, be it with a tween or even just directly changing the value
Here are the frame times without changing the spinbox
As you can see without changing the spinbox the biggest spike I have is from the character process while breaking the pot, and it stays under 16ms, but when I change the value of the spinbox …
Not only there is a spike, but the profiler can’t tell me where it’s from ![]()
The spinbox update function:
var _disp_money: int = 0
func refresh_money_display():
if _disp_money != RunData.money:
_disp_money = RunData.money
var tween: Tween = get_tree().create_tween()
tween.tween_property(money_spinbox, "value", RunData.money, 1).set_trans(Tween.TRANS_BOUNCE)
The method is called from a Timer node, every second on timeout
RunData is a global auto-load
The UI scene:
I am kind of clueless as to what I’m doing wrong here, any idea appreciated
Thanks in advance ![]()


