Duion Posted May 13, 2019 Share Posted May 13, 2019 There is a resource on Garagegames.com where someone increased the performance of Torquescript: http://www.garagegames.com/community/resource/view/18045/1I wanted to ask if this is still relevant, or if it has already been integrated and if not, if anyone has the code, since the link is dead.Maybe we can end the scripting language debate that way and tell people that it is not so much about the scripting language itself, but how it is handled in the engine, which results in different performance.Also I could imagine that the performance increase in that resource is not that relevant, since the most performance increase was in the scripts that took longer and no increase in the smaller scripts that took not so long to execute.When I tested the C# scripting implementation that was supposed to be so much faster I found out that it was only so much faster in an mostly empty scene, but in a full loaded scene it was even slower than Torquescript. However I'm no expert on that, that is why I ask here. Quote Link to comment Share on other sites More sharing options...
Happenstance Posted May 13, 2019 Share Posted May 13, 2019 People like @jamesu, @Hutch, and @MangoFusion made improvements along these lines and most of those changes were rolled in at some point. T3D's version of TorqueScript is noticeably faster at certain things than previous versions as a result. The largest improvement was probably a result of simply disabling the antiquated memory manager TGE/T2D uses (this is off by default in T3D). One of the issues with that resource is that the seven benchmark tests the author uses aren't particularly realistic. It's rare to call a function a million times in a single loop, and if for some reason you do need to do that doing it in script would be bad design anyway. It'd be more realistic to test function calls over a few thousand iterations but that would likely take less than 1ms to complete and make it difficult to measure the performance differences (if any). Quote Link to comment Share on other sites More sharing options...
Duion Posted May 13, 2019 Author Share Posted May 13, 2019 So that resource is obsolete? Quote Link to comment Share on other sites More sharing options...
Happenstance Posted May 13, 2019 Share Posted May 13, 2019 It's hard to say without being able to see the code but it's likely some of his changes are irrelevant at this point. 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.