If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
I figured I'd make a new topic so that this doesn't get lost in the old one.
I just tagged GLdc 1.1 which contains a major refactor of the drawing code to improve performance. I think this is about as fast a GL implementation as you can get without some serious low-level optimisation work. Release notes:
Reduced internal calls from immediate mode drawing to improve performance
Reduced memory usage by about 40%
Added glKosInitEx which allows you to control some internals (enable autosort, control initial buffer allocation size etc.)
Fixed a bug with texture twiddling
Other bug fixes
This library is now powering the nuQuake project and Reaperi Cycle among others.
kazade wrote: ↑Sun Mar 31, 2019 1:26 pm
No real reason, I just thought it might produce faster code than -O3 in some situations (even if not to the standard). Is there a reason to avoid it?
If you have a benchmarking setup it might be worth it to test various differences. I know back in the day I always used -Os, as O3 would randomly break things and Os helped prevent O2 from bloating code (which tends to be a bigger boon.
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man