[SDL] smpeg/glmovie crawls

Paulo Pinto pjmlp at progtools.org
Wed Jul 3 10:15:01 PDT 2002


> -----Original Message-----
> From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
> Romi Kuntsman
> Sent: quarta-feira, 3 de Julho de 2002 18:42
> To: sdl at libsdl.org
> Subject: Re: [SDL] smpeg/glmovie crawls
> 
> 
> Sam Lantinga wrote:
> 
> >>>It almost looks like a thread timing issue, but why should glmovie
> >>>differ from plaympeg in this regard?
> >>>      
> >>>
> >>Are you sure you aren't in software Mesa?
> >>    
> >>
> >
> >It might also be the apparent threading issue with glmovie that was
> >discussed earlier.  Anybody brave enough to dig into glmovie 
> and smpeg
> >and figure out the right way to do it? :)
> >
> >See ya,
> >	-Sam Lantinga, Software Engineer, Blizzard Entertainment
> >  
> >
> 
> This is a threading issue indeed.
> In the Delphi port of glMovie, it doesn't even work with 
> threads at all, 
> but when glmpeg_update() is in the main loop it works just fine!
> 
> It appears that OpenGL already contains lot's of "invalid 
> command" error 
> in it's queue when glmpeg_update() is called from the seperate thread 
> (unlike from the main thread). Maybe OpenGL doesn't really 
> like threads 
> (as it is a state machine), or that SMPEG does some stuff 
> that mess up 
> stuff in OpenGL...
> 

OpenGL doesn't support threads. You must use a rendering
context per thread. 

Paulo Pinto




More information about the SDL mailing list