Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Marble rotation data optimisation #212

Closed Qaomen closed 5 years ago

Qaomen commented 5 years ago

Description Marble rotations are sent and processed as quaternions. To save on bandwidth, we could convert them to Euler angles with implicit XYZ rotation order and convert them back on the client. This reduces raw rotation data by 25% (4 numbers per rotation vs 3). Since converting quaternions to/from Euler angles does require some math, we should check whether it notably affects server/client performance with large marble counts just in case, and reconsider if it's an issue.

Minimum Acceptance Criteria