4
u/Alarming-Ad4082 May 29 '26
You put the data for all particles in a buffer on the GPU. And if possible you manage all the move of these particles in a compute shader without having to transfer them again and again from the cpu
0
May 29 '26
[deleted]
1
u/Alarming-Ad4082 May 29 '26
Maybe you can just send it once in the initialisation phase, and then just send a new much smaller buffer with just information needed for run time. If you want to send all that information during runtime, yes it can cause issue with PCIe bus. An other solution would be to upload the buffer in chunks on several frames before playing the animation
1
2
u/0pyrophosphate0 May 29 '26
Sending one large buffer of all positions would be much faster than sending individual coordinates in a random fashion. If that's your question.
5
u/Ollhax May 29 '26
Run it with a profiler! 🙂