is sdl+opengl slower than cocoa/carbon+opengl?
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
Probably not in any significant or measurable way. What is there to be slow? resizing or calling a swap buffer function?
SDL+OpenGL is Cocoa+OpenGL...
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
Both GLUT and SDL use Cocoa with OpenGL. However, there may be faster ways to implement it from what they do.
neither GLUT nor SDL is slow.
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.
That's what EXT_framebuffer_object is for 
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.

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.
The argument against GLUT is typically that it is a bit limiting in terms of windowing, input and generally behaving as a good application.
Buy the Quad 2.5 Ghz PowerMac G5
Sorry, couldn't resist.
But it follows my saying: If you can't speed up the software, throw
hardware at it.
Sorry, couldn't resist.But it follows my saying: If you can't speed up the software, throw
hardware at it.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Opengl/Cocoa text rendering | tesil | 15 | 14,414 |
Mar 20, 2012 11:16 AM Last Post: OneSadCookie |
|
| Carbon vs Cocoa? | Jamie W | 11 | 4,407 |
May 27, 2009 11:07 AM Last Post: Ingemar |
|
| OpenGL Text Rendering (in Cocoa) | daveh84 | 5 | 6,619 |
Feb 19, 2009 12:44 PM Last Post: TomorrowPlusX |
|
| OpenGL & Cocoa - Improving frame rate | daveh84 | 4 | 4,916 |
Feb 2, 2009 06:53 AM Last Post: backslash |
|
| bad depth sorting in Cocoa OpenGL | aldermoore | 2 | 4,099 |
Dec 30, 2008 03:07 PM Last Post: ThemsAllTook |
|

