r/threejs • u/kochas231 • 5d ago
Demo Open Source 400hz sim racer running in web gpu
The pre demo version of probably the most advanced sim racer running in web gpu is available in itch.io with the name Open Grid or through GitHub or directly in: https://open-grid.racing
I would really appreciate it if you can give me some feedback on features and bugs the game has and also your opinion on if you would like to see this game getting finalized. You can also contribute to the game directly through my GitHub: https://github.com/Konstantinos-Chatzistavrou/Open-Grid
Don't forget to star the repo to stay updated with any updates because this project is only 5 weeks old.
Don't be too harsh 😅, thank you!
1
u/Infinite_Throat4432 2d ago
the z-fighting is insane, the sound is off putting and the shaders are a bit weird i think in general it does the job of acting as a racing game but none of the aspects are done to a level that's relevant to be played?
1
u/qwertyalp1020 1d ago
Seems okay, but why do you need 400hz physics if the handling is not like a sim? Not trying to bash it or anything.
1
u/ChanhyoungLee 5d ago
Opened it in desktop Chrome and stayed on the menu. Before I clicked anything, it downloaded about 60 MB in under half a minute. About 20 MB of that is five asphalt and concrete normal maps.
I read the header of asphalt_02/nor.ktx2. It's 2048x2048 UASTC with Zstd and 12 mip levels, and Zstd only takes about 14% off the top level (4.2 MB to 3.6 MB). Plain UASTC doesn't compress much. Basis has an RDO pass for UASTC so Zstd can do more, for example basisu -uastc -uastc_rdo_l 1.0. Ground seen from a low camera may also look fine at 1024, which is a quarter of the pixels.
Both 1k HDRs (urban_street_01 and shanghai_bund) also load on the menu, about 3 MB together. If each map uses only one, you could load it after the map is picked.
0
u/plus2link 5d ago
400 Hz physics only pays off if the renderer interpolates between the last two states, otherwise 60 fps shows it as notchy steering and the extra steps just cost CPU. The other half is where input is sampled: reading the wheel once per rendered frame throws away most of those steps on a 240 Hz wheel, so sampling it in the physics loop and timestamping it is what makes the high rate visible in the feel. Are you running a fixed accumulator with interpolation, or stepping physics on the render tick?