Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator locking - Need to check browser clock accuracy #15

Open
rpeach-sag opened this issue Mar 19, 2020 · 1 comment
Open

Simulator locking - Need to check browser clock accuracy #15

rpeach-sag opened this issue Mar 19, 2020 · 1 comment
Labels
enhancement New feature or request low priority

Comments

@rpeach-sag
Copy link
Contributor

We seem to have an issue where computer clocks are not synchronised....

Solution:

  • get the time from the server
  • compare to the local time
  • store the offset
  • add the offset to the local time before we send any times to the server
  • Periodically update the offset (every 5mins?)

Potential issues with solution:

  • The offset also contains the latency from the initial server call
  • Hopefully this isn't too much of an issue because every user's offset will have a similar latency included (hopefully similar latencies, never anywhere near 5 seconds)
@rpeach-sag rpeach-sag added bug Something isn't working enhancement New feature or request labels Mar 19, 2020
@rpeach-sag
Copy link
Contributor Author

I suspect that this was actually the issue: #24

@rpeach-sag rpeach-sag added low priority and removed bug Something isn't working labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

1 participant