Re: Need advice on the design of my application

2011-12-23 Thread Eelco
My first suggestion would be to keep the rendering in Python, if at all feasible, and do only the actual simulation/computation in C. Rasterizing a heightfield and rigid body plus some plash effects is nothing that couldnt be done in PyOpenGL, or even something higher- level like visvis or mayavi.

Re: Need advice on the design of my application

2011-12-21 Thread Chris Kaynor
On Wed, Dec 21, 2011 at 2:10 PM, carlos choy wrote: > Thank you for your great advice. It is detailed and tells me what I need > to know, I wasn't expecting such an accurate response from anyone for some > time. > > I think Option 2 is the way I will go. Having never embedded before, I > think

Re: Need advice on the design of my application

2011-12-21 Thread Miki Tebeka
I'd say go with option 1. Pass the window handler (or DC) to the rendered thread. To overcome the GIL problem, you can use Py_BEGIN_ALLOW_THREADS (see http://docs.python.org/release/1.5.2/api/threads.html) -- http://mail.python.org/mailman/listinfo/python-list

Re: Need advice on the design of my application

2011-12-21 Thread Chris Kaynor
On Wed, Dec 21, 2011 at 11:19 AM, hbd666 wrote: > > > In my experience implementing Option 1 in another project, I know that > Python suspends > execution until the DLL function calls return, but I did not launch the > DLL on a thread. > I expect that if the DLL were launched on a thread, a func