Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: De-Communizer on Thu 18/09/2008 16:56:59

Title: The quantity of stuff in repeatedly_execute...
Post by: De-Communizer on Thu 18/09/2008 16:56:59
I'm a beginner when it comes to scripting, and I'd noticed someone saying that in game terms, 40 cycles is one second. Does that mean that the bigger repeatedly_execute is (that is, the more lines of things it has to do), the longer it'll take beween each repetition of its contents?

Hopefully I've been clear enough about that.
Title: Re: The quantity of stuff in repeatedly_execute...
Post by: mikesdk on Thu 18/09/2008 17:03:45
Nope it shouldn't, as the game engine cycles are defined in the AGS runtime, not the scripting language. That being said.. if you stuff 30,000 lines of code in there I'm sure you'll see some slowdown, but with normal game scripting it shouldn't have any noteworthy impact.

Title: Re: The quantity of stuff in repeatedly_execute...
Post by: Khris on Thu 18/09/2008 18:07:58
AGS is very fast, repeatedly_execute is simply called 40 times per second (or 30 or 60 times, depending on the game speed setting) but one call will usually only take a few fractions of a millisecond.
Some operations like drawing loads of triangles or similar stuff will cause heavy slowdown, though.