Re: TurboSphere
Reply #378 –
I've added the ability to pass flags to V8 on the command line. Some of the flags, such as strict mode, the new Harmony 'var' implications, and the new Harmony numeric literals (which include using 0b### for binary literals) also have config flags now, available in the game.tsgm.
The syntax is:
#turbosphere --v8Option
#for instance:
./turbosphere --v8harmony_numeric_literals
#Now you can use 0b to specify a binary literal.
#or:
./turbosphere --v8max_inlined_source_size=1000 --v8type_info_threshold=50 --v8no-harmony_symbols
# disable harmony private names, require half of a function's parameters to have a stabilized type before using the high-optimizer, and allow functions up to 1000 parsed lines to be inlined.
You could use this to optimize V8's inner workings for your game, to specify language options, or help with profiling and tracking performance. V8 can even write debug and profiler info to a file.
For now, to avoid Sphere overwriting any extra engine options, my stance is that games that are aware of TurboSphere should have a tsgm file in addition to an sgm file. The sphere 1.5/1.6 compatibility system script will be automatically included if TurboSphere is run on an sgm file that does not have a version field.
The tsgm can just be a direct copy of an sgm. No extra options are needed.