Script Design speed issues?

Started by Ionias, Sat 17/03/2007 19:28:22

Previous topic - Next topic

Ionias

Ok, I have a quick question on how AGS handles its repeat execute script. My current game design template has all of the inventory scripting entrenched in the #sectionstart repeatedly_execute section of my game's code. All of my interactions with the inventory are handled here, everything from look to select etc…

How badly will this effect my game's speed? I'm already using 32bit color with a 640x480 resolution, so I don't want to take any speed hits if I can help it.

GarageGothic

Well, assuming that the rest of the game is paused while the inventory is open, it shouldn't make much difference at all. Besides, pretty much the only big slowdowns from stuff running in repeatedly_execute is graphics related (such as drawing/modifying large sprites every frame).

SSH

Anything that is in a big nested loop is more likely to affect your repeatedly_execute code. If all you've got is a sequence of if..thens, you'll be fine
12

SMF spam blocked by CleanTalk