ErosOlmi
13-08-2007, 19:18
Hi everybody.
Before leaving for 4 days I wanted to post here a little present. An optimized version of thinBasic Core engine: thinCore.dll
Please find here attached a zip file with thinCore.dll. Download and copy it over the one in \thinBasic\ directory.
I have mainly optimized the way +=, -=, *=, /=, \= numeric expression assignment are handled, both simple variable or UDT elements.
On my tests I've got some nice results: one million loop speed test went from 0.30 to 0.23 secs on my box. Also some TBGL scripts where those assignment are used seem having noticeable effects. Petr seems confirming similar results so hope you will benefit of this change too (sometimes it depends on CPU model). Even if difference seems not so much, consider that a little above normal complexity TBGL script can have those assignment called thousands times per seconds, so a little improve can get some interesting FPS more. And this is a great advantage for TBGL (or other) script execution and playability.
Feature will be present in next release (around September) but I wanted to give a preview.
Ciao and see you soon
Eros
PS: be sure to have current latest thinBasic preview version 1.4.0.1 installed before using attached thinCore.dll
ADDED 2007.08.20: thinCore.ZIP updated with some more speed enanchement this time on UDT elements reading. Update thinCore.dll in your \thinBasic\ directory with the attached one. But before doing that, use script \thinBasic\SampleScripts\General\Speed\Test_Speed2_Typed.tBasic and take note of the time. Than update thinCore.dll and check again time.
ADDED 2007.08.21: thinCore.ZIP removed. Functionalities now present in thinBasic preview version 1.4.0.1
Before leaving for 4 days I wanted to post here a little present. An optimized version of thinBasic Core engine: thinCore.dll
Please find here attached a zip file with thinCore.dll. Download and copy it over the one in \thinBasic\ directory.
I have mainly optimized the way +=, -=, *=, /=, \= numeric expression assignment are handled, both simple variable or UDT elements.
On my tests I've got some nice results: one million loop speed test went from 0.30 to 0.23 secs on my box. Also some TBGL scripts where those assignment are used seem having noticeable effects. Petr seems confirming similar results so hope you will benefit of this change too (sometimes it depends on CPU model). Even if difference seems not so much, consider that a little above normal complexity TBGL script can have those assignment called thousands times per seconds, so a little improve can get some interesting FPS more. And this is a great advantage for TBGL (or other) script execution and playability.
Feature will be present in next release (around September) but I wanted to give a preview.
Ciao and see you soon
Eros
PS: be sure to have current latest thinBasic preview version 1.4.0.1 installed before using attached thinCore.dll
ADDED 2007.08.20: thinCore.ZIP updated with some more speed enanchement this time on UDT elements reading. Update thinCore.dll in your \thinBasic\ directory with the attached one. But before doing that, use script \thinBasic\SampleScripts\General\Speed\Test_Speed2_Typed.tBasic and take note of the time. Than update thinCore.dll and check again time.
ADDED 2007.08.21: thinCore.ZIP removed. Functionalities now present in thinBasic preview version 1.4.0.1