phoboslab / wipeout-rewrite

2.61k stars 203 forks source link

Framerate on Korodera track is awful #61

Closed tjrileywisc closed 10 months ago

tjrileywisc commented 10 months ago

I regularly get around 100 fps on most tracks, but Korodera (especially near the start) is really laggy. I barely get 30 fps there.

phoboslab commented 10 months ago

What hardware are you running on?

https://github.com/phoboslab/wipeout-rewrite/commit/ecf1e635082188d3294e10abb255128204854127 should help a little, but to truly fix this we'd need to create OpenGL ready triangles just once on object load (and possibly upload them to the GPU) instead of creating them anew for every frame.

Not sure if I want to go down this road, because it will make the renderer implementation more complicated, which makes it harder to create new rendering backends...

tjrileywisc commented 10 months ago

I saw it both running on several platforms (WASM and ubuntu WSL) - but the fixes did help. The framerate on Korodera is at about 70 fps now, which is good enough I think.

phoboslab commented 10 months ago

Oh, you probably got the software renderer in the browser then. Sadly, WebGL is still blacklisted for a lot of GPUs. Happy to hear that it works a bit better now :]