Switch Between Fullscreen and Windowed Modes - Again...

thaeez
Unregistered
 
Post: #1
I am trying to add functionality in my game to switch 'on the fly' between windowed and fullscreen modes with great difficulty. This is my second post to this effect, the first one got a good reply and I tried the suggestion (http://www.idevgames.com/forum/showthread.php?t=6330 ). The OpenGL framework that I was directed to (however well-written) uses NSOpenGL to create it's contexts - needless to say, after installing my game engine into this framework (which previously used CGLCreateContext to create it's contexts), speeds took a noticeable hit (50 FPS w/music - down to 44 FPS w/o music). I need some help setting up a shell for my game that uses CGLContexts and not NSOpenGL contexts - speed to me is VERY important and I want to squeeze out everything I can; does anyone know of a good tutorial or sample code that shows how to set this up? I keep getting nil contexts when I try and switch between the two with CGL, what am I missing?

Thanks in advance, thaeez
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #2
There shouldn't be any speed difference between NSGL and CGL.

Anyway, check that:
1) you are using the NO RECOVERY attribute
2) you specify the screen mask for the full screen context
Quote this message in a reply
thaeez
Unregistered
 
Post: #3
OK, sorry guys... I was making a mistake and not turning off anti-aliasing - that made up for the speed difference between the two different shells. It appears that using NSopenGL and CGL ARE the same speed. Thanks again for the help guys,

thaeez
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Mac OS X. Switching between fullscreen and windowed mode. e40pud 2 4,243 Jan 25, 2010 12:01 PM
Last Post: OneSadCookie
  Fullscreen/resolution switch causes texture loss IBethune 4 4,299 Feb 21, 2008 01:37 PM
Last Post: OneSadCookie
  Problems trying to fade in windowed mode Wowbagger 4 3,789 Aug 13, 2007 12:11 PM
Last Post: Wowbagger
  Weird Windowed Mode GFX Tearing nabobnick 2 2,841 Jul 25, 2005 06:45 PM
Last Post: nabobnick
  Fullscreen windowed OpenGL mode maaaaark 8 5,120 Mar 11, 2005 12:34 PM
Last Post: maaaaark