Godot Version
v4.7.stable.official [5b4e0cb0f] - CachyOS KDE Plasma(Wayland) x86_64 Linux on a mini PC
Question
Hi,
Trying to further optimize our playing game screen for our puzzle game project…
What is the fasted method to make many identical Sprites(in an array) not show on the screen anymore?
With no frame limit, we are only getting about 120 Frames Per Second, would like to improve that.
We currently move all the identical Sprites off of the screen in a for loop, but it is rather slow.
You can see our GDScript source code for the above below:
Let us know, thanks!
SS
for index in range (0, 9):
for indexStart in range(2000, 18000, 2000):
for indexTwo in range (0, VisualsCore.PieceSpriteCurrentIndex[index]):
RenderingServer.canvas_item_set_transform( VisualsCore.Sprites.ci_rid[indexStart+indexTwo], Transform2D().translated( Vector2(-99999, -99999) ) )