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

Improved marble timing #294

Open Qaomen opened 3 years ago

Qaomen commented 3 years ago

Description Currently, the final time of a marble is calculated by using Date.now() at the race start and at crossing the finish line. Lag(spikes) and/or small accumulated inaccuracies during the physics updates could affect the end result. It's definitely negligible for the vast majority of races, but for accuracy's sake and in case of lag spikes, using a frame counter would keep the timing consistent.

Minimum Acceptance Criteria