is sdl+opengl slower than cocoa/carbon+opengl?

Member
Posts: 749
Joined: 2003.01
Post: #1
is sdl+opengl slower than cocoa/carbon+opengl?

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
Probably not in any significant or measurable way. What is there to be slow? resizing or calling a swap buffer function?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
SDL+OpenGL is Cocoa+OpenGL...
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #4
I dont know, I heard that glut (to do the window) + opengl is slow so I was wondering about sdl.

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #5
Both GLUT and SDL use Cocoa with OpenGL. However, there may be faster ways to implement it from what they do.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #6
neither GLUT nor SDL is slow.
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #7
That said, it may be difficult or impossible to use some OpenGL features from GLUT (I can't comment on SDL) that can provide better performance. For example, creating a pbuffer context to avoid a copy-to-texture operation.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #8
That's what EXT_framebuffer_object is for Wink

You can often do extra things with SDL and GLUT by using CGLGetCurrentContext() at an appropriate moment, and modifying it. Yes, then you're into the Mac-specific stuff, but sometimes it's worthwhile.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #9
The argument against GLUT is typically that it is a bit limiting in terms of windowing, input and generally behaving as a good application.
Quote this message in a reply
Member
Posts: 321
Joined: 2004.10
Post: #10
Buy the Quad 2.5 Ghz PowerMac G5 Smile Sorry, couldn't resist.

But it follows my saying: If you can't speed up the software, throw
hardware at it.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Opengl/Cocoa text rendering tesil 15 16,393 Mar 20, 2012 11:16 AM
Last Post: OneSadCookie
  Carbon vs Cocoa? Jamie W 11 4,661 May 27, 2009 11:07 AM
Last Post: Ingemar
  OpenGL Text Rendering (in Cocoa) daveh84 5 7,472 Feb 19, 2009 12:44 PM
Last Post: TomorrowPlusX
  OpenGL & Cocoa - Improving frame rate daveh84 4 5,319 Feb 2, 2009 06:53 AM
Last Post: backslash
  bad depth sorting in Cocoa OpenGL aldermoore 2 4,448 Dec 30, 2008 03:07 PM
Last Post: ThemsAllTook