On Tue, Feb 5, 2013 at 1:40 AM, Peter Enerccio <[email protected]> wrote:

> Except that python is compatible with multi threading. It just make it
> single threading practically.
>

Thus the point of my comment: since you don't get any real benefit from
multi-threading, you might as well use fibers/tasklets/greenlets, which
won't intrude race conditions, won't break OpenGL, and won't degrade
performance either.


> As for the opengl, have you tried making sharing context? I am not sure if
> drawing objects is allowed in other threads,
> but if it is, it must be done with shared context.
>

That will generally work, but because of Python's GIL, you won't get any
benefits...

-- 
Tristam MacDonald
Software Development Engineer, Amazon.com
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to