arx/ArxLibertatis — comment on commit 2f24fb9e6a01854c6d6dfd0348ffde084f933e12
File:  line 0
By adejr:

it should be fairly easy to separate them on the functional side, inside arx::time. all that would be needed is to create a game_time var and game_time_reference. that reference value would replace the current reuse of start_time and the "slow time" spell would result in increment of the reference value instead.

the difficult part would be replacement of all the instances of the current time values being used and the verification of all those instances.

the accuracy of the float values is better than 1000 (ms) up to values of 32768. since float's mantissa is 23 bits with an assumed bit, it can store values up to 2^24 with an accuracy of better than integer. values above 2^25 start to become less accurate than integer. (step size = 2, 4, 8, ...)

i don't think the "time stored as float" issue is very critical, but it is good to keep in mind as it should ultimately be done "right".