Game Development Community

compiling torque script file

by Changhan Lee · in Torque 3D Professional · 08/15/2010 (6:16 am) · 4 replies

hello~

I heard Torque3D compiles script file(.cs) automatically in loading.

Then, can I compile script files to .dso files manually and save it?

I just wonder if could gain speedup when I load .dso file insted of .cs file.


#1
08/15/2010 (6:38 am)
.dso files load much faster then .cs files. That is why they compile them to .dso files.
#2
08/16/2010 (8:14 am)
then.. how can I save .dso file? Is there a code to compile and write in Torque3D engine?
#3
08/16/2010 (8:25 am)
Under Your project's "source" folder there is a file named torqueConfig.h. In that file comment out the line that says #define TORQUE_NO_DSO_GENERATION and then recompile.
#4
08/16/2010 (11:18 am)
Thank you! It helped me a lot~