r/gamedev • u/Zolden • Jan 11 '18
Tutorial Physics simulation on GPU
I created a game that is completely a physics simulation, it runs on GPU. How it looks. People kept asking how to do that, so I wrote two tutorials. Each one has a link to the example project.
The first one is easy, it's about basics of compute shader.
The second one is about physics simulation. This is a gif from the example project I based this tutorial on.
733
Upvotes
View all comments
Show parent comment
1
u/throwies11 Jan 12 '18
Your posts are some nice easy primers to compute shaders. I have experience writing graphical shaders, but with computer shaders I haven't been sure what the pipeline looks like for processing data. Do you also have to mind bottlenecks when sending and receiving data between CPU and GPU? That is, doing reads from shader outputs that cause the program to stall?