Thanks for that, I have started to look at calling 
soya.MainLoop(self.scene).update() with the intent to place it in a generator 
function with the other tasks my client needs to perform. I tried calling the 
update method in a for loop from a COM client with slightly strange results 
(the caterpillar head rotated but wouldn't move). Can somebody help? The files 
were the same as on one of my previous emails, except I have added the update 
function alone in a method public to COM.

Jan Ciger <[EMAIL PROTECTED]> wrote:
  -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jiba wrote:

> * Soya's functions are not thread safe, which will cause trouble if 2
> different threads call Soya function simultaneously,

Actually even Python is not thread-safe. You must lock the virtual
machine if you want to use multiple threads and carefully manage which
threads are doing what with it.

> * OpenGL context cannot be shared between 2 threads without a
> specific initialization that Soya doesn't support currently.

This is dangerous and will cause crashes due to the threads not being
aware of each other's state. Really bad idea, IMHO.

> However, it might work if ALL Soya and OpenGL calls are done by the
> same thread (in particular, soya.init() must be called by the thread
> that will perform all Soya and OpenGL calls).

Yes, that is about the only way how to do it, however still the issue of
Python's thread safety remains.

Jan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFGLRfzn11XseNj94gRArGvAJ9wX2l7WeYhliFQiKg1yuDi/+9YhwCglf3W
efmV/Jrgv+iymB4yowYMYRI=
=W7XE
-----END PGP SIGNATURE-----

_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


       
---------------------------------
 Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for 
your freeaccount today.
_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user

Reply via email to