LWJGL Forum

Programming => OpenGL => Topic started by: krasse on September 03, 2008, 12:23:09

Title: Performance problems when calling Display.update()
Post by: krasse on September 03, 2008, 12:23:09
I just analyzed the performance of my game with the Performance Analyzer (PerfAnal) and discovered that the glGetError() takes more that 50% of the CPU usage.

Is there something strange with this figure? I also tried to bypass this call by Display.update() because I thought that the call to glGetError() was mainly for debugging purposes but I decided to ask before I spend too much time with this.
Title: Re: Performance problems when calling Display.update()
Post by: tomb on September 03, 2008, 14:29:31
It's probably because the pipeline is flushed in glGetError(). Performance will not go up if you remove it.
Title: Re: Performance problems when calling Display.update()
Post by: krasse on September 03, 2008, 19:27:31
Thanks! Then I will try to optimize the "normal" way instead of worrying about this.