3 ms·
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
by s-macke 8y ago
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.
- s-macke 8y agoI increased the timestep by a factor of two. Have fun https://simulationcorner.net/js13kgame/ https://simulationcorner.net/js13kgame/
- wumms 8y agoI 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 https://www.youtube.com/watch?v=jlS3fr3t4Fg)
- elwell 8y agoSomehow I beat it first try on the faster version, but couldn't on the original.
- s-macke 8y agoThe 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.
- anotheryou 8y agoAlright :) so it's back to normal now, right? Thanks for trying!
- s-macke 8y agoNo I just switched the links. The game on github points to the official entry. The link below points to double speed game.
- anotheryou 8y agoI see :) made it to 10k points now