diff options
| author | comex <comexk@gmail.com> | 2014-09-06 17:26:40 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2014-09-28 21:34:31 -0400 |
| commit | 3a2048ea570b428ea34adbfea6b71280e1ae5cc0 (patch) | |
| tree | f5d4207a6b17c315c46af6e4bedf48ddea46efb2 /Source/Core/VideoCommon/MainBase.cpp | |
| parent | 65af90669bd5f9e02bbaa994d51d5c83d147b868 (diff) | |
Add a central variable g_want_determinism which controls whether to try to make things deterministic.
It now affects the GPU determinism mode as well as some miscellaneous
things that were calling IsNetPlayRunning. Probably incomplete.
Notably, this can change while paused, if the user starts recording a
movie. The movie code appears to have been missing locking between
setting g_playMode and doing other things, which probably had a small
chance of causing crashes or even desynced movies; fix that with
PauseAndLock.
The next commit will add a hidden config variable to override GPU
determinism mode.
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/MainBase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index 082c81c2ea..d775cfe64c 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -309,3 +309,8 @@ void VideoBackendHardware::RegisterCPMMIO(MMIO::Mapping* mmio, u32 base) CommandProcessor::RegisterMMIO(mmio, base); } +void VideoBackendHardware::UpdateWantDeterminism(bool want) +{ + Fifo_UpdateWantDeterminism(want); +} + |
