Game Development Community

Torque Script Array Implemented

by Hardi Bhatt · in Game Design and Creative Issues · 05/05/2007 (5:32 am) · 5 replies

I have developed the implementation and use of Arrays in the TS SDK but i done know where the post the finished results. Some of my test results while testing the finished implementations were.
For 1d Arrays of an array size of 125,000
1.5s for the Torque Script symbol table version (Globals ($) and Locals (%))
6.3s for the Torque Script script object version
1.6s for the array implemented version (My version)

For 2D Arrays of an array size 250,000 (500x500)
4.5s for the Torque Script symbol table version (Globals ($) and Locals (%))
42.5s for the Torque Script script object version
4.7s for the array implemented version (My version)

For 3D Array of an array size of 125,000 (50x50x50)
2.9s for the Torque Script symbol table version
11.0s for the Torque Script script object version
2.9s for the array implemented version

I chose to go back to 125000 for the 3D version was because the ScriptObject version was simply taking too long. It works great.
The conventional used for the Public Member Functions are (Different conventions used for more dimensions but same IDEA)
void setSize (int newSize)
int getSize ()
void setValue (int Position)
int getValue ()

The only question is where do i post it.?

#1
05/15/2007 (11:42 am)
Well, not here, 'cause it's not a game idea. If you made changes to the engine, try the Engine forum under the TGE private forums. Or post it as a resource.
#2
05/15/2007 (11:53 am)
I have posted a resource the link is

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=12863
#4
05/15/2007 (12:50 pm)
Yes I am familiar with that resource. Which involves modifying an existing object file. My resources is built to create a new object and you are capable of creating Integer and Float array's objects which work as fast as the symbol table objects.
Once again here is the link
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=12863
#5
05/17/2007 (10:24 am)
And I apologies for posting in the "game idea" section of the forum.