#1651: Remove floating point move precision
-------------------+--------------------------------------------------------
Reporter: Per | Owner:
Type: bug | Status: new
Priority: major | Milestone: unspecified
Component: other | Version: unspecified
Keywords: | Operating_system: All/Non-Specific
Blockedby: | Blocking:
-------------------+--------------------------------------------------------
This patch removes the floating point precision movement variables. These
are not-quite-exact duplicates of psObj->pos.x|y|z that have lead to
various bugs in the past because the duplication has not been perfect (and
how could it be). The reason they are removed is because they are no
longer needed. When logical updates was added, the game will now update
positions only 10 times per second. Tiles currently have 7 bits precision,
or 128 world points per tile, and this gives a minimum 1/13th of a tile
movement per second. That is quite acceptable. Contrast this with what was
possible in the worst case before - if someone set their max graphical
update rate to 120mhz, and got that much, then the minimum tile movement
would be 1 tile per second without the floating point precision. So there
is a reason why the floating point precision was added, but it is no
longer relevant.
--
Ticket URL: <http://developer.wz2100.net/ticket/1651>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev