[Godot 4.3-4.4beta4] GPUParticle2D spawned out of camera zoom does not animate correctly
Tested versions
Reproducible in 4.3 - 4.4beta4, Windows + Linux, AMD and Nvidia
System information
(Forward+) Godot 4.3 - 4.4beta4, Windows 11, Linux KDE NEON, AMD and Nvidia gpu
Issue description
Creating particles out of screen does not play alpha animations correctly. The example and the video shows how creating particles inside the camera zoom animate OK (fade until disappear), but when creating outside camera zoom, they "just start animating late, and then disappear"
https://github.com/user-attachments/assets/3379ab6c-8736-4174-8efc-ebb2bb57b692
Steps to reproduce
In general:
- Spawn particles outside camera
- wait some seconds so the animation progress
- find the particles outside the camera, and see the problem
Using the project attached:
- right click to spawn 5 GPU Particles
- zoom out (scroll wheel) to see the 4 particles spawned outside the camera
- animation get broken
Minimal reproduction project (MRP)
related to this bug https://github.com/godotengine/godot/issues/100834
In BETA 2, it seems to improve, but alpha curves does not animate while outside screen, only when "on frame"
I can reproduce the problem
Same as #32803 and other similar issues.
If your particles are one-shot, you can change their visibility rect to something very big, so it's always detected on screen. If they aren't persistent then it won't cause performance problems (unless you have lots of particle nodes off-screen).