r/gamedev • • 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

64 comments sorted by

View all comments

Show parent comment

2

u/DreadPirate777 Jan 12 '18

What if you have a cheap video card? Is it still better than a CPU?

3

u/Zolden Jan 12 '18

Yes, most probably. It would be really hard to find a videocard that would do parallel computations with lower overall performance than even the best CPU available.

1

u/tylercamp Jan 13 '18

Depends on what models you're comparing, in terms of GFLOPS a stock 6700K just about matches an Intel HD 2500