Instance fps is too low


1 Like

Hi,

updateParticles function needs to be optimized is called every frame and is the bottleneck.

It made my CPU-fan go brrrrrrrr :slight_smile:

image

a lot of calculations, on each frame, for many instances. this is not a rendering issue, but a CPU issue

when i set segments is 10 ,10k instance ,the fps is 60

Funnily enough you are GPU bound and even more vertex bound which is really rare :slight_smile:

I would recommend to reduce the number of segments on your sphere. cause 500 generates 3024048 vertices * 500 = 1 512 024 000 vertices to process which is A BIG LOT !!!

Hello just checking in, was your question answered? @woniubushiniu

this is gpu limit?In fact it’s just a demo and I have a mechanical device with a similar number of vertices.
I think this may be a GPU limitation, which is related to the computer’s GPUmemory or the calculation speed of the GPU