Difference between revisions of "Talk:Minimizing your Script"

Jump to navigation Jump to search
1,075 bytes added ,  15:41, 14 May 2009
imported>Cbh
(→‎Uncertainty: pontificatory reply)
imported>DragoonWraith
Line 25: Line 25:


:I've just been pondering this, and was wondering if anybody feels like attacking the article?  I took the recommendations to "avoid using gamemode whenever possible" and about early returns giving "dramatic performance gains" to heart and have subsequently been tripped up by both of them more than once; arguably one instance could have been avoided by checking the documentation (though given the potential for making erroneous but not unreasonable assumptions about what "return" does, I think that such advice should be offered more cautiously: or at least with a better explanation of the consequences) but I do have to wonder if the performance gains are really dramatic enough to encourage the adoption a coding style that's contrary to good programming practice, being a definite risk factor for mistakes and consequent bugs...  However, as someone who is still not a particularly experienced TES scripter, I barely feel it's my place to comment let alone amend the article, so I'll leave that to someone else!  But I do have fairly serious concerns about the appropriateness of such recommendations, or at least the strength with which they're asserted.  --[[User:Cbh|cbh]] 11:06, 14 May 2009 (EDT)
:I've just been pondering this, and was wondering if anybody feels like attacking the article?  I took the recommendations to "avoid using gamemode whenever possible" and about early returns giving "dramatic performance gains" to heart and have subsequently been tripped up by both of them more than once; arguably one instance could have been avoided by checking the documentation (though given the potential for making erroneous but not unreasonable assumptions about what "return" does, I think that such advice should be offered more cautiously: or at least with a better explanation of the consequences) but I do have to wonder if the performance gains are really dramatic enough to encourage the adoption a coding style that's contrary to good programming practice, being a definite risk factor for mistakes and consequent bugs...  However, as someone who is still not a particularly experienced TES scripter, I barely feel it's my place to comment let alone amend the article, so I'll leave that to someone else!  But I do have fairly serious concerns about the appropriateness of such recommendations, or at least the strength with which they're asserted.  --[[User:Cbh|cbh]] 11:06, 14 May 2009 (EDT)
::I completely agree with you, but I'd really like some other opinions from experienced scripters. I've always been very much in favor of scripting (and modding) primarily for myself, so performance concerns beyond "does it run on my machine" have never been an issue for me. At the same time, I've read (and participated in) the tests, and I have a pretty good idea of what are performance issues and what are not - and scripts almost ''never'' are. As you say, the advice here confuses code and involves scripting that is confusing and obtuse - and I guarantee you, that in almost all cases, the performance gain is perfectly ''negligible''. Even if said script was running on a thousand objects concurrently, for most scripts I doubt you'd see a difference in FPS at all.
::[[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>]] 16:41, 14 May 2009 (EDT)

Navigation menu