Simulation time is broken
Whe you start a game and load a save, you may notice different kinds of graphical artifacts for a short amount of time:
- Shadows are flickering
- Weird light sources lighting
- Grass is not animated
These issues happen because OpenMW 0.49 stores OSG simulation time in the savegame:
double simulationTime;
reader.getHNT(simulationTime, "LUAW");
MWBase::Environment::get().getWorld()->getTimeManager()->setSimulationTime(simulationTime);
As a result, after savegame loading player may get a frame with simulation dt about 80000 seconds or -50000 seconds.
!3398 (merged) makes this issue a more noticable for me (it seems to increase simulation time during saving/loading process).
Possible solution:
- Consider the game as paused during saving or loading, and in the main menu mode.
- Decouple Lua simulation time (time passed since new game was started, stored in save) from OSG simulation time (summary dt of frames when we update scene state since OpenMW application was launched).
We need to fix this issue in the 0.49 release.
Edited by Andrei Kortunov