Jump to content

  • Log In with Google      Sign In   
  • Create Account

#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

 

fw13f7.jpg


#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

 

fw13f7.jpg


#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