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
[rebased] Compare timebase of netplay users to detect desyncs. #2517
Conversation
| packet >> x; | ||
| packet >> y; | ||
| packet >> frame; | ||
| s_timebase[frame].emplace_back(x | ((u64)y >> 32), player.pid); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
edd3d9c
to
230d29b
Compare
230d29b
to
9aaff45
Compare
|
Okay, should actually work now. |
Note - I removed a SleepCurrentThread(1) the patch added which seemed to be unrelated to the actual job at hand. If there was a real need for it (which sounds like it would be an enet-related bug - enet_host_service is supposed to *sleep*), that needs to be dealt with...
9aaff45
to
efb4374
Compare
| @@ -129,6 +130,13 @@ void SetIsFramelimiterTempDisabled(bool disable) | |||
| std::string GetStateFileName() { return s_state_filename; } | |||
| void SetStateFileName(const std::string& val) { s_state_filename = val; } | |||
|
|
|||
| void FrameUpdateOnCPUThread() | |||
| { | |||
| if (!IsCPUThread()) abort(); | |||
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
efb4374
to
9c63b78
Compare
|
In a quick test this is absolutely amazing. |
|
JMC47: Lioncash, review 2517 ;D |
[rebased] Compare timebase of netplay users to detect desyncs.
Based on #2178. Haven't done much more than rebase and compile check yet, since I'm about to go to sleep, but in the spirit of getting things done...