Mblackwell, on 19 September 2012 - 05:36 PM, said:
Unless there is a measurable impact of that you can show me, implementing expvar and absvar commands would only perform those instructions on the source side. It would by far be the most optimal way to implement them. Anything else (including going through C math.h functions) would be even slower, which is still only a relative term.
The execution of the CON VM is nowhere close to being a bottleneck. With a constant, maximum 30 game states per second performance requirement, some simple math doesn't have much impact.