General Question: Long Repetedly Execute = Slowdown ?

Started by TheMagician, Thu 19/06/2003 21:25:52

Previous topic - Next topic

TheMagician

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

Gilbert

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.

Spyros

Also usually most of  the rep exec code uses many if and else statements so not all the code is executed

SMF spam blocked by CleanTalk