Wumpf / blub

3D fluid simulation experiments in Rust, using WebGPU-rs (WIP)
MIT License
392 stars 12 forks source link

find ways to quickly compare visual result and performance for given scene & simulation time #8

Closed Wumpf closed 4 years ago

Wumpf commented 4 years ago

probably just something like "run simulation as fast as possible to t=x", then write out screenshot and timing for that. Timer queries are not available in WebGPU as of writing.

Real/existing benchmark frameworks like criterion could be used but are a bit of a missfit because we need more gpu syncing then

Wumpf commented 4 years ago

can fast forward and shows time now fast forwarding is not optimal since it syncs with gpu every now and then to avoid driver timeout. But good enough

can take screenshots, can reset simulation, pause, etc.