[SDL] SDL sound under Mac OS X and Linux

Neil Bradley nb at synthcom.com
Tue Nov 26 20:56:01 PST 2002


> > > Actually, I would recommend using the display surface as your scratch
> > > surface, and then use your code which calculates the updates to figure
> > > out what rects you need to pass to SDL_UpdateRects().  That should buy
> > > you increased performance and be safe since you're using an SDL software
> > > surface.
> > I gave this a try and my frame rate dropped by 10% :)

That's expected, and it's also a bad idea.

> > I guess this is a consequence of either Mac OS X windowed mode peculiarities or
> > my access pattern to the display surface (1-4 pixel writes/surface lock if
> > required, maybe 6000-18000 pixels changing on the average frame).

Actually, it's because writes over PCI/AGP is slooooooooow compared to
main system memory.

-->Neil

-------------------------------------------------------------------------------
Neil Bradley            In the land of the blind, the one eyed man is not
Synthcom Systems, Inc.  king - he's a prisoner.
ICQ #29402898





More information about the SDL mailing list