I like to learn more on how GPUParticles3D work

Godot Version

Godot Engine v4.4.1.stable.official.49a5bc7b6

Question

Today I’m investigating some performance issues, based on ongoing Demo test feedback.

Here is one of them, FPS drops when I use my ‘fancy’ fire VFX.

Its obvious from video that FPS drops when fire VFX is displayed.

However what’s interesting for me, is that this FPS drop is only happening first time fire was visually displayed in the scene.
All consecutive display/hide of fire VFX had no effect on FPS.

My question is why? How this system work?

did you preloaded the particles?

1 Like

Hi Thomas,
I have not preload them (I will look into this option/idea).
Particles were triggered with in game event.

thats probably the reason why you only have fps drop once when loading the particle, preload it somewhere else, at the start of the game for example

1 Like

Yes, that is solving this issue. With preloading.
Thank you Thomas.

Regarding computer graphics theory, why is this happening, how this pipeline works?

It has nothing to do with graphics programming, that spike is due to (possibly) loading data from disk and then some memory allocations.

2 Likes

Thank you!
I will investigate in this direction as you suggest.