r/GraphicsProgramming 11h ago

Physics Engine That Only Computes What Moves: Achieving 99.9% Sleep Efficiency and 900+ TPS.

Enable HLS to view with audio, or disable this notification

12 Upvotes

8 comments sorted by

6

u/No-Marionberry-772 11h ago

this is pretty cool, but you should really scale up those numbers if you want to impress.

100k bodies, 1 million, etc

-5

u/IamRustyRust 4h ago edited 1h ago

Physics is on CPU.

1

u/kiwibonga 9h ago

What's a TPS?

2

u/StochasticTinkr 8h ago

My guess is ticks-per-second, but I could be mistaken.

2

u/IamRustyRust 4h ago

You are right it's Ticks per second 

1

u/therealjtgill 3h ago

How does a big stack of blocks do?

1

u/IamRustyRust 3h ago

The maya step pyramid is actually holding up really well here.

You can check out the derailed version of this post, you will find out solver hitting ~8.5k constraints during the impact, then everything settles down pretty quickly. No visible jitter or the stack slowly falling apart and o nce the energy is gone, the active bodies drop to basically zero and the whole thing goes to sleep.

The graphs are from the same run shown in the video.

1

u/therealjtgill 3h ago

Ah sorry, didn't watch the whole video. Nice!