Getting past the shielding window

Moderator
Posts: 1,560
Joined: 2003.10
Post: #16
So, out of curiosity, I made a speed test application. It seems using setFullScreen is a bit faster in some cases.

http://www.sacredsoftware.net/temp/FullS...edTest.tgz (Includes source)

Command-1 toggles to and from full-screen-in-a-window, Command-2 toggles to and from full-screen with setFullScreen. Random geometry is drawn every frame. Frames per second are printfed. Be sure to toggle out of the current full-screen mode before toggling to the other one, or weird stuff happens. Smile

So, unless I find a way to speed up method 1, it looks like this is a tradeoff between convenience and speed. In some cases, being able to display windows over a full-screen context may be more valuable than a few extra frames per second.
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #17
Some hardware is able to re-tile the framebuffer in real fullscreen GL contexts for faster hardware write access. So in general, if you want the best performance, you should be capturing the display and using a fullscreen context, not a top-level window.
Quote this message in a reply
Post Reply