From: Jasper S. <jas...@gm...> - 2008-11-01 19:23:45
|
Hi Stef, Now an interesting extension of your program would be to introduce a > disturbance, > simply by pressing a button, > but even nicer by shaking the VPython window ;-) > > We just ran it on another computer windows/linux: > Fedora 9.0, 200 fps ==> 50% processor time (dual core) , > winXP-SP2, 200 fps ==> processor use 20% (time between frames 0,0,0,15, > , so indeed an average of 5 msec) > Indeed, I was thinking of reading the acceleration sensor of my notebook and using that to generate a disturbance in the simulation. Didn't get around to that though, so now it just has a random disturbance. Nice to see it runs elsewhere without too much trouble. Quite strange that the processor load varies, as since I use a fixed time step ODE solver, the calculations are identical each timestep. I'm interested to find out how you know the timing between frames. How do you know it was at 0,0,0,15 ms? Greetz, Jasper |