maxzhou0 Posted February 17, 2017 Share Posted February 17, 2017 i think mass df assignment is very harmful in a game loop, but i don't have direct evidence to proof it.when i use "for(%i = 0;%i<%largeNumber;%i++){}" to test TS, the static field didn't show much difference from dynamic field, wth Quote Link to comment Share on other sites More sharing options...
JeffR Posted February 20, 2017 Share Posted February 20, 2017 There's really not going to be all that much difference in performance when assigning through script. In both cases, setting the variable passes through the console backend, and calls the setDynamicField or setStaticField, which looks at the appropriate field library, iterates through all the fields for that object in the respective type to see if it finds it, and then sets it as appropriate.There'd be a nearly-infinitesimal improvement for static fields because they're checked through before dynamic fields, but the general path and workload is roughly the same, so unless you're doing some really aggressive setting of vars like crazy, you probably won't really see much difference in practice. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.