[SDL] SDL_CDStatus: kills win32 performance
damienmascre at free.fr
Thu Aug 9 15:32:01 PDT 2001
Le 09 Aug 2001 14:46:50 -0700, Joseph Carter a écrit :
> On Thu, Aug 09, 2001 at 01:48:58PM -0700, Sam Lantinga wrote:
> > > According to our win32 guys, frequent calls to SDL_CDStatus cause
> > > video, sound, etc and are a general detriment to performance. I
> > > have a problem with it in Linux, and I don't know about mac or
> > > else since we haven't got someone working on those platforms yet.
> > > event, I don't think we should be seeing this problem. Bug maybe?
> > This is just the way Windows works. Only call CDAudio_Update()
> > few seconds or so.
> Hmm, we had some win32-native code that was a bit better behaved than
> that, but elected not to use it in favor of SDL. I guess I'll have to
> compare what it does with what SDL does internally. Will report back
> interesting findings.
SDL_CDStatus does a lot of extra stuff uneeded... you can hack a smaller
version of SDL_CDStatus that do not query the cdaudio toc everytime...
I have written a cd audio player in the past using pure win32 calls...
and I remember
that querying the toc was sometimes nasty...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL