WebQuake icon indicating copy to clipboard operation
WebQuake copied to clipboard

Performance issues with WebQuake build 54 (1.09)

Open JustH3LL opened this issue 8 years ago • 5 comments

So I decided to Mirror WebQuake on http://h3ll.x10host.com/WebQuake/

I couldn't help but notice that the version on Quaddicted seems to be way better optimized than the latest on here, I tested on a Chromebook to confirm this (huge random performance drops on the latest version on here even with a performance-increasing autoexec)

I'm sure this is due to optimization, and I'm willing to fix this myself if I had a pointer on where to start on this

My target is Chromebooks due their wide usage in schools

JustH3LL avatar Oct 05 '17 17:10 JustH3LL

Probably caused by the dynamic vertex buffer rewrite. Dynamic vertex buffers are extremely messy and unpredictable in OpenGL, especially on mobile GPUs, I don't really know how to make the performance nice with them, considering WebGL doesn't even provide things like glMapBufferRange :(

Triang3l avatar Nov 12 '17 19:11 Triang3l

Could a shader do the job to change the vertex geometry if it's just moving points around? Or is it more involved?

LiamKarlMitchell avatar Dec 22 '18 05:12 LiamKarlMitchell

Particles still need at least to be spawned and destroyed on the CPU, so they will be resubmitted in some form anyway, changing position to base position, velocity and time won't help. That's how dynamic VBOs are probably supposed to be modified in OpenGL ES, but also it's very broken in GL implementations.

Triang3l avatar Dec 22 '18 07:12 Triang3l

Quaddicted was finally updated too :p

I guess this issue can be closed as things simply changed and it sounds like it is going to stay that way.

SpiritQuaddicted avatar Apr 21 '19 11:04 SpiritQuaddicted

OpenGL ES 2 sucks in general.

Triang3l avatar Apr 21 '19 13:04 Triang3l