...but there are still things that need to be done on a tick, and fast.
So I guess a few questions are necessary to help better understand the tradeoffs.
LuaJIT? - the forums are still unclear on this, some posts show that this has been on the radar since 0.13, but the PDB file doesn't include any jit references, so I'm unsure if it's implemented.
Consequence: besides the obvious speed boost, jitting would make sloppy coding less of a problem.
i.e. A lot of mods do something like:
Code: Select all
function OnTick()
if (cond)
{do something...long body}
end
end
Code: Select all
function OnTick()
if not (cond)
return
end
{do something...long body}
end
-----------------------
Map/Dictionaries - when doing a static key access to a map, is there any internal optimization for the access?
how is something like this handled?
Code: Select all
game.item_prototypes['my-object']