[SDL] rendering from a different thread.

Edward Byard e_byard at yahoo.co.uk
Thu Jan 3 01:25:57 PST 2008


chaz

afaik you can only render in the main thread - at least, I've tried to no avail.
SDL docs seem to support this.

Ed

----- Original Message ----
From: Charles McGarvey <onefriedrice at brokenzipper.com>
To: sdl at lists.libsdl.org
Sent: Thursday, 3 January, 2008 6:58:44 AM
Subject: [SDL] rendering from a different thread.

Anyone have any insights with using SDL & OpenGL with the rendering
 code and 
SDL_GL_SwapBuffers looping in a non-main thread?  Is this safe on all 
platforms?  Is this a good idea for a real-time rendering application
 like a 
game?  What are the pros/cons compared to drawing only in the main
 thread?

Thanks,
chaz 

_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org






      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080103/2d801d23/attachment.html 


More information about the SDL mailing list