On my computer the game runs at 40 FPS. So there is still room and I can increase the timestep if you want.
This game simulates the Navier-Stokes equation on a grid of the size 256x128. Four times the size would already reduce the game to 10FPS or even more. Of course you can try to rewrite it to run on the GPU. An alternative would be to use so called Smoothed Particle Hydrodynamics. This is particle and not grid based. But this technique has other drawbacks.
I love the faster one. Grabs much more attention. Great game! A satisfying thud on touchdown would be nice. (OT: this was the very first lunar lander I played on my father's ZX81: https://www.youtube.com/watch?v=jlS3fr3t4Fg)
The problem with higher speeds were instabilities in the numerics. So I reduced the internal time step. Never tried to increase the speed again after solving a few of those problems.
Comments (127) 36 threads
Show all comments
Showing thread 18 of 36
Can it run faster? This might need more roomy levels and stronger thrust, but faster speed would mean more feedback for a better feel of the physics.
https://simulationcorner.net/js13kgame/
Continue this thread — 1 reply