mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-15 15:02:34 +02:00
Minor changes
This commit is contained in:
parent
74df3c7e38
commit
950ed6d6c9
@ -370,7 +370,7 @@ int RWGame::run() {
|
|||||||
namespace chrono = std::chrono;
|
namespace chrono = std::chrono;
|
||||||
|
|
||||||
auto lastFrame = chrono::steady_clock::now();
|
auto lastFrame = chrono::steady_clock::now();
|
||||||
float deltaTime = GAME_TIMESTEP;
|
const float deltaTime = GAME_TIMESTEP;
|
||||||
float accumulatedTime = 0.0f;
|
float accumulatedTime = 0.0f;
|
||||||
|
|
||||||
// Loop until we run out of states.
|
// Loop until we run out of states.
|
||||||
@ -435,7 +435,7 @@ int RWGame::run() {
|
|||||||
deltaTime * world->state->basic.timeScale;
|
deltaTime * world->state->basic.timeScale;
|
||||||
|
|
||||||
RW_PROFILE_BEGIN("Update");
|
RW_PROFILE_BEGIN("Update");
|
||||||
while (accumulatedTime >= deltaTime && !world->isPaused()) {
|
while (accumulatedTime >= deltaTime) {
|
||||||
if (!StateManager::currentState()) {
|
if (!StateManager::currentState()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user