Revert: 4c59dfb6, move DoPaletteAnimations back into GameLoop
Race fix to follow
This commit is contained in:
@@ -51,14 +51,12 @@ void VideoDriver_Null::MainLoop()
|
||||
if (this->until_exit) {
|
||||
while (!_exit_game) {
|
||||
::GameLoop();
|
||||
::GameLoopPaletteAnimations();
|
||||
::InputLoop();
|
||||
::UpdateWindows();
|
||||
}
|
||||
} else {
|
||||
for (int i = 0; i < this->ticks; i++) {
|
||||
::GameLoop();
|
||||
::GameLoopPaletteAnimations();
|
||||
::InputLoop();
|
||||
::UpdateWindows();
|
||||
}
|
||||
|
||||
@@ -34,10 +34,6 @@ void VideoDriver::GameLoop()
|
||||
std::lock_guard<std::mutex> lock(this->game_state_mutex);
|
||||
|
||||
::GameLoop();
|
||||
|
||||
// TODO: lock
|
||||
::GameLoopPaletteAnimations();
|
||||
// TODO: unlock
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user