4 ms·
Heh that's a really interesting bug! Would it be possible to avoid floats completely for the game's calculation? I made a little uptime faker for Linux, it's
by anfractuosity 8y ago
Heh that's a really interesting bug!
Would it be possible to avoid floats completely for the game's calculation?
I made a little uptime faker for Linux, it's not as clever as this one though as it's not altering the kernel timers directly https://www.anfractuosity.com/projects/uptime https://www.anfractuosity.com/projects/uptime
- titzer 8y agoOr just use a double. It has 53 bits of mantissa.
- mcraiha 8y agoYou can always use fixed points instead of floating points if you have to use decimal numbers. https://en.wikipedia.org/wiki/Fixed-point_arithmetic https://en.wikipedia.org/wiki/Fixed-point_arithmetic There are many libraries for that, e.g. https://github.com/XMunkki/FixPointCS https://github.com/XMunkki/FixPointCS