From: Jason M. <j.a...@gm...> - 2011-11-03 14:18:29
|
I've had lots of success with multiprocessing, wx and visual. I've got a visual app which uses two multiprocessing processes as well as a wx app with message queues between all of them and it works perfectly. I even get the frame rate I ask for..... Make your visual app run as a multiprocessing.Process, then start other processes and/or wx as you like. The other process is one that creates a named pipe to allow external programs to interact with either wx or visual using multiprocessing.Queue. Cheers, jason ----- Original Message ----- From: Jerzy Karczmarczuk Sent: 01/11/11 11:21 PM To: vis...@li... Subject: [Visualpython-users] Threads Does anybody has some experience with multithreading and VPython? Standard examples are silent, the tutorial just mentions that the rendering thread is separate I did some simple tests (with the threading module without any locks, some "planets" wandering concurrently on the screen), no serious problems, but if somebody tried some torture example, and noticed something, I would be grateful to know. I noticed something I cannot interpret. Two objects move, and two loops running in different threads execute time.sleep(slp). Nothing wrong. I replace the sleeping by rate(1.0/slp), and the second thread waits until the first terminates. Why? Maestro Bruce? All the best. Jerzy Karczmarczuk Caen, France. ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users |