Re: [Libuta-develop] Problems with the libuta & SMPEG demo application
Status: Beta
Brought to you by:
klaux
From: Karsten-O. L. <la...@ei...> - 2000-04-03 11:14:05
|
sorry for this late reply, I have been quite busy the last week... Philip Stadermann wrote: > > > > I'm having problems with the plaympeg demo. It plays all MPEG files much too > > > slow at about 1 fps. > > > Is this a bug or did I compile using some wrong settings? > > > > > 1 fps is damned low. I guess this is a bug. > > > > Could you send the version numbers of your installed SDL, SMPEG and > > SDL_mixer ? > > What pixeldepth does your Xserver use ? > > Also information about your hardware (graphics card, processor, RAM) > > would be helpfull. > > SDL 1.1.1 > SMPEG 0.3.4 > I'm not using SDL_mixer. Is this a problem? > hmm, I have not checked this combination, but will do so soon. the current version of libuta had a bug in it's timer class, so the Application class took too much cpu time ... this could have been the problem. I will upload the bugfix tonight to the cvs ... but this bugfix is only a maybe-resolution for your problem - I will investigate on this. > Computer: > Pentium 266 (not P2) laptop > some Neomagic graphics card > 64mb ram > 1024x768 16-bit > > The plaympeg tool from the smpeg library plays at full speed on my computer. > The problem seems to result from the combination of smpeg and libuta. I've > added some debug output to the callback function screen_update in plaympeg.cc: > It's called only once per second and the refreshrect is almost instantly done. > So that can't be the problem. > SMPEG uses the SDL_delay function in timeSync (video/gdith.cpp). Maybe the > timer is screwed up and it waits too long (note that all frames are played, > they're not skipped). > Thanks for your precise information ... this will help a lot. I guess the timer cannot be screwed since it is a system timer ... but I guess since the smpeg runs in a seperate thread, the main thread may suck too much cpu time and thus the smpeg thread runs much too slow... -- Karsten-O. Laux |