Difference between revisions of "Talk:Minimizing your Script"

Jump to navigation Jump to search
imported>Shademe
(→‎Potential early return problem: That's what it's meant to do)
imported>DragoonWraith
Line 11: Line 11:
: Well, that's what the [[Return]] function is meant to do - Prevent the iteration of the script for the rest of the frame. You can absolve some part of this by placing the [[gameMode]]/[[menuMode]] block at the end of the script.
: Well, that's what the [[Return]] function is meant to do - Prevent the iteration of the script for the rest of the frame. You can absolve some part of this by placing the [[gameMode]]/[[menuMode]] block at the end of the script.
: [[User:Shademe|shadeMe]] [[User_talk:Shademe|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 16:57, 7 May 2009 (EDT)
: [[User:Shademe|shadeMe]] [[User_talk:Shademe|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 16:57, 7 May 2009 (EDT)
:Yes, Return stops a script from running entirely on the frame on which it is caused. It should only be used when you do not want to run the script at all anymore on that frame. It does improve performance, but only marginally, and this is rarely a major concern for scripts.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 19:50, 7 May 2009 (EDT)

Navigation menu