[SDL] smpeg/glmovie crawls

Romi Kuntsman romik12345 at lycos.co.uk
Wed Jul 3 09:43:00 PDT 2002


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...

RK.





More information about the SDL mailing list