PDA

View Full Version : Performance, Timer and Director Functions


Johannes
04-19-2005, 10:41 AM
Hi,
working fine on the Desktop-PC ,
the movement of my objects is a too shaky / jerking on a laptop...

I tried your duck-court example and it is working fine on the laptop.

Do you think it would help, if I try to change my director functions to timer-functions?

What would be your suggestions for a light-Version (better performance).


Best,

Johannes

farshizzo
04-20-2005, 09:45 AM
Hi,

There are probably a lot of ways to improve the performance of your script. If you are performing a lot of collision tests per frame, then there really is nothing you can do about it. Make sure that you are performing collisions using primitives and not meshes.

Also, are you creating objects frequently? This can be a big bottleneck.

If you are using a lot of director functions then switching to timers could help a little. It's definitely worth trying.

Johannes
04-20-2005, 10:01 AM
Thank you!
Switched to timers and it helps.



Hypothesis1:
used viz.waittime calls, which worked fine on fast machines, on the slower laptop I must have caused additional (unnecessary) delays.

Hypothesis2:
scheduling algorithms, but I'm no expert there.


Thanks for your suggestions, I try to take care of that!


Johannes