SDL got pretty slow on Tiger?
Hey,
my game is using standard SDL-Video for graphics (and I can't change it to OpenGL). Under OS X Panther I had about 70fps, that was ok. But now under Tiger I've just about 25fps... and that's not really nice.
Any ideas why? Did Apple change something so that SDL just needs to get modified to work well again?
Ciao, Michael
ps. My Mac is a Mac mini with 1.42GHz.
pps. My version of SDL is 1.2.8.
my game is using standard SDL-Video for graphics (and I can't change it to OpenGL). Under OS X Panther I had about 70fps, that was ok. But now under Tiger I've just about 25fps... and that's not really nice.
Any ideas why? Did Apple change something so that SDL just needs to get modified to work well again?
Ciao, Michael
ps. My Mac is a Mac mini with 1.42GHz.
pps. My version of SDL is 1.2.8.
Use OpenGL for graphics. Anything else is guaranteed to be slow.
Barring Keith's valid but tough advice, try running Shark on it and see what takes up the time. If you still have access to a Mac with pre-Tiger, Shark it there too and check out the difference. Post back and we'll help you!
Don't suppose it's possible that the screen pixel format has changed, you are converting all surfaces to the screen native format right?
I noticed a huge slowdown with quartz extreme in 10.2, SDL didn't play well with it. (at least not on my machine.) Could Tiger have made that worse?
I noticed a huge slowdown with quartz extreme in 10.2, SDL didn't play well with it. (at least not on my machine.) Could Tiger have made that worse?
Is their any chance of SDL getting faster again when the developers optimise it for tiger? Or if they do?
I'm planning on doing a few projects in SDL and I want tiger at some point...
I'm planning on doing a few projects in SDL and I want tiger at some point...
what is this Shark? i've heard of it, and it sounds useful... where can I get it?
It's not magic, it's Ruby.
It may have something to do with changes in how Tiger does hardware accelerated 2D, here's a long artical that touches open these changes (among a lot of other things):
http://arstechnica.com/reviews/os/macosx-10.4.ars/14
http://arstechnica.com/reviews/os/macosx-10.4.ars/14
Shark is basically a fancier, more Apple brand-like version of Sampler, the Developer Tool that came with Jaguar. Basically it samples your application every few cycles to see what function it's in, and it'll tell you what areas of your code that you spend the most time in.
If you're developing a game, you're probably spending the bulk of your time drawing things to the screen, and Sampler or Shark can help guide you to the parts you need to concentrate your optimization efforts on.
Shark comes with the Panther/Tiger Developer Tools, but if you don't have that handy, I believe you can download them from Apple directly if you have a free ADC account.
If you're developing a game, you're probably spending the bulk of your time drawing things to the screen, and Sampler or Shark can help guide you to the parts you need to concentrate your optimization efforts on.
Shark comes with the Panther/Tiger Developer Tools, but if you don't have that handy, I believe you can download them from Apple directly if you have a free ADC account.
Shark is rather different from Sampler, in rather crucial ways 
Shark is part of the CHUD tools, which you can get from here: http://developer.apple.com/tools/download/

Shark is part of the CHUD tools, which you can get from here: http://developer.apple.com/tools/download/
yeah, I had that problem too. SDL was going around 60fps and now it's 20. This sucks. I wonder what is slowing it down?
I'll definitely have to also suggest OpenGL. Hardware blending support plus a bunch of other 3D goodies for free (Z and stencil buffering, arbitrary 2D and 3D transforms, lighting/shaders if you want them, simple multitexturing, etc.)
I use SDL for keyboard input and to set up the window for openGL. "Switching" is hardly an option because I like SDL's cross platform nature, and there is really no other option in C. (yeah, I know. Use ojbC and cocoa...)
Wait, you're getting lower OpenGL frameworks with SDL on Tiger?
That seems a little unlikely...
That seems a little unlikely...
OneSadCookie Wrote:Wait, you're getting lower OpenGL frameworks with SDL on Tiger?
That seems a little unlikely...
*framerates
lightbringer Wrote:*frameratesAh, that makes a bit more sense.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| fmod on tiger (10.4.11) | AcidZombie24 | 2 | 2,289 |
Sep 10, 2008 01:05 PM Last Post: AcidZombie24 |
|
| Installing SDL on tiger | AcidZombie24 | 6 | 3,137 |
Jul 17, 2008 11:54 AM Last Post: szymczyk |
|
| Occlusion queries... SLOW. | TomorrowPlusX | 8 | 4,014 |
Aug 19, 2005 07:05 AM Last Post: TomorrowPlusX |
|
| Are SDL events slow? | Skorche | 3 | 3,678 |
Jul 25, 2005 11:08 AM Last Post: Skorche |
|
| Tiger breaks SDL? | sealfin | 7 | 4,606 |
Jun 10, 2005 07:13 AM Last Post: sealfin |
|

