• Create Account

Need scary sound effects or creepy audio loops for your next horror-themed game? Check out Highscore Vol.3 - The Horror Edition in our marketplace. 50 sounds and 10 loops for only \$9.99!

### #ActualShawn619

Posted 31 May 2013 - 09:09 AM

Hi,

try to minimize state changes (the glEnable/glDisable calls) by sorting:

glDisable(GL_BLEND);
forall(opaque triangles t) draw(t);

glEnable(GL_BLEND);
forall(transparent triangles t) draw(t);


It works and solves the lag problem, but it creates another problem, now I can't see opaque triangles when I look through the non-opaque windows :S

### #2Shawn619

Posted 31 May 2013 - 09:08 AM

Hi,

try to minimize state changes (the glEnable/glDisable calls) by sorting:

glDisable(GL_BLEND);
forall(opaque triangles t) draw(t);

glEnable(GL_BLEND);
forall(transparent triangles t) draw(t);


It works and solves the lag problem, but it creates another problem, now I can't see anything through the windows :S

### #1Shawn619

Posted 31 May 2013 - 08:36 AM

Hi,

try to minimize state changes (the glEnable/glDisable calls) by sorting:

glDisable(GL_BLEND);
forall(opaque triangles t) draw(t);

glEnable(GL_BLEND);
forall(transparent triangles t) draw(t);


It had no effect, unfortunately. It was a nice try though.

PARTNERS