tcoppex / sparkle

:sparkler: A modern particle engine running on GPU, using c++14 and OpenGL 4.4.
MIT License
193 stars 12 forks source link

problem on multi GPU configuration #1

Open geotyper opened 2 years ago

geotyper commented 2 years ago

First of all, thanks for very useful example of compute shaders code. On notebook program work well, but on desktop with 2 nvidia1080 cards, program crashed. image

on line 121 of picture. this is append_consume_buffer.

When comment lines from 119 to 122 program work, but think that num alived particles is 0. Do you have some ideas how to correct this?

tcoppex commented 2 years ago

Hey geotyper, thanks for your feedback.

Mmh I'm not sure, I had never try it on that setup but it's probably a synchronization issue (that or a frame discrepancy due to a trick used to avoid a read back). You might want to put memory barriers around it.

If you found something I'm interested.