Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: TheMagician on Thu 19/06/2003 21:25:52

Title: General Question: Long Repetedly Execute = Slowdown ?
Post by: TheMagician on Thu 19/06/2003 21:25:52
Hi everybody,

does a repetedly execute function in the global script have to be veeeeeery long to slow down the engine at all?

I mean, mine is starting to grow, now that I have some custom GUIs which I have to check for in the global script.

How long are your global repetedly execute functions?


The Magician
Title: Re:General Question: Long Repetedly Execute = Slowdown ?
Post by: Gilbert on Fri 20/06/2003 03:23:19
Yes it may, but that depends on what functions you're using and what computer the game's running on.

In general you don't need to care much about it, I think most modern computers are fast enough to handle much tasks, unless there're long while loops (>2000 times per game frame for example) and many graphics intensive functions (eg. many rawdraw functions used), etc.
Title: Re:General Question: Long Repetedly Execute = Slowdown ?
Post by: Spyros on Fri 20/06/2003 10:43:40
Also usually most of  the rep exec code uses many if and else statements so not all the code is executed