ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
667 stars 151 forks source link

Amigaos4 slowdown possibly with displaylists #445

Open davec555 opened 9 months ago

davec555 commented 9 months ago

Hello, I noticed with my program using gl4es prior to this commit:

https://github.com/ptitSeb/gl4es/commit/dfd54c5b939966d0c1885df6f3097446f68f4083

... everything ran fast, but since then it's extremely slow.

I've determined that the offending line in gl4es.c is (line 253 of newest version): glstate->list.active->use_vbo_array = 2;

If you comment that out (even on the newest commit), then everything runs at speed.

This is on AmigaOS4 with warp3dNova.

Dave

Mathias-Boulay commented 8 months ago

@davec555 Interesting, do you what are the side effects of removing this ?

davec555 commented 8 months ago

I haven't noticed anything on my program yet, but expect is was originally added for some purpose that I am not aware of

Mathias-Boulay commented 8 months ago

After checking in the codebase (like 2 weeks ago), it seems to just change whether real vbos are used internally. Perhaps there are cases where this isn't the greatest. What software did you to performance testing on ? @davec555

davec555 commented 7 months ago

After checking in the codebase (like 2 weeks ago), it seems to just change whether real vbos are used internally. Perhaps there are cases where this isn't the greatest. What software did you to performance testing on ? @davec555

It is software that I have been writing/dabbling with for the last 20 years, so it uses display lists exclusively and not vbos. Of course, on amiga os4, it is working with the opengles.library and warp3dnova so who knows what might be happening behind the scenes.