View Single Post
javispedro's Avatar
Posts: 2,330 | Thanked: 5,200 times | Joined on Jan 2009 @ Barcelona
Originally Posted by exoticorn View Post
Btw: While mose GL tutorials tell you to call glViewport in the resize event handler, you can be pretty sure (as long as the GL(ES) implementation isn't completely broken) that a glViewport call per frame isn't the cause for any performance issues. In fact, there are very valid reasons to call glViewport multiple times per frame - think of split screen games or rendering to textures.
The Xlib call, on the other side, is a roundtrip to the X server. Removing it (along with all the another unneeded "finish" calls) wins a few fps.

With that and the above I get around 43fps.