GLdc 1.1 Released

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.
Post Reply
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

GLdc 1.1 Released

Post by kazade »

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.
User avatar
BB Hood
DC Developer
DC Developer
Posts: 189
Joined: Fri Mar 30, 2007 12:09 am
Has thanked: 41 times
Been thanked: 10 times

Re: GLdc 1.1 Released

Post by BB Hood »

Just stopping to say you're awesome 👏 😎
Ayla
DC Developer
DC Developer
Posts: 142
Joined: Thu Apr 03, 2008 7:01 am
Has thanked: 0
Been thanked: 4 times
Contact:

Re: GLdc 1.1 Released

Post by Ayla »

Why do you compile it with -Ofast?
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

Re: GLdc 1.1 Released

Post by kazade »

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?
Ayla
DC Developer
DC Developer
Posts: 142
Joined: Thu Apr 03, 2008 7:01 am
Has thanked: 0
Been thanked: 4 times
Contact:

Re: GLdc 1.1 Released

Post by Ayla »

My bad, I thought -Ofast was for faster compilation times (so less optimizations).
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

Re: GLdc 1.1 Released

Post by kazade »

Oh, by the way, if anyone wants to help out or chat about GLdc there's an active Discord channel on the Simulant server.
User avatar
Quzar
Dream Coder
Dream Coder
Posts: 7497
Joined: Wed Jul 31, 2002 12:14 am
Location: Miami, FL
Has thanked: 4 times
Been thanked: 9 times
Contact:

Re: GLdc 1.1 Released

Post by Quzar »

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
Post Reply