SDL got pretty slow on Tiger?

Zeeke
Unregistered
 
Post: #1
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.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Use OpenGL for graphics. Anything else is guaranteed to be slow.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #3
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! Smile
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #4
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?
Quote this message in a reply
Member
Posts: 168
Joined: 2004.10
Post: #5
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...
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #6
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.
Quote this message in a reply
Member
Posts: 39
Joined: 2002.04
Post: #7
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
Quote this message in a reply
MarkJ
Unregistered
 
Post: #8
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.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #9
Shark is rather different from Sampler, in rather crucial ways Rasp

Shark is part of the CHUD tools, which you can get from here: http://developer.apple.com/tools/download/
Quote this message in a reply
Nibbie
Posts: 1
Joined: 2010.11
Post: #10
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?
Quote this message in a reply
Puzzler183
Unregistered
 
Post: #11
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.)
Quote this message in a reply
Nibbie
Posts: 1
Joined: 2010.11
Post: #12
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...)
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #13
Wait, you're getting lower OpenGL frameworks with SDL on Tiger?

That seems a little unlikely...
Quote this message in a reply
Member
Posts: 144
Joined: 2004.07
Post: #14
OneSadCookie Wrote:Wait, you're getting lower OpenGL frameworks with SDL on Tiger?

That seems a little unlikely...

*framerates
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #15
lightbringer Wrote:*framerates
Ah, that makes a bit more sense.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  fmod on tiger (10.4.11) AcidZombie24 2 2,591 Sep 10, 2008 01:05 PM
Last Post: AcidZombie24
  Installing SDL on tiger AcidZombie24 6 3,478 Jul 17, 2008 11:54 AM
Last Post: szymczyk
  Occlusion queries... SLOW. TomorrowPlusX 8 4,363 Aug 19, 2005 07:05 AM
Last Post: TomorrowPlusX
  Are SDL events slow? Skorche 3 4,110 Jul 25, 2005 11:08 AM
Last Post: Skorche
  Tiger breaks SDL? sealfin 7 4,910 Jun 10, 2005 07:13 AM
Last Post: sealfin