mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Don't wait for (nonexistant) ES when in serverless mode
This commit is contained in:
parent
3d1fe7da9f
commit
be1bbc07c2
1 changed files with 2 additions and 1 deletions
|
@ -5477,7 +5477,8 @@ void Application::update(float deltaTime) {
|
||||||
quint64 now = usecTimestampNow();
|
quint64 now = usecTimestampNow();
|
||||||
// Check for flagged EntityData having arrived.
|
// Check for flagged EntityData having arrived.
|
||||||
auto entityTreeRenderer = getEntities();
|
auto entityTreeRenderer = getEntities();
|
||||||
if (entityTreeRenderer && _octreeProcessor.octreeSequenceIsComplete(entityTreeRenderer->getLastOctreeMessageSequence()) ) {
|
if (isServerlessMode() ||
|
||||||
|
(entityTreeRenderer && _octreeProcessor.octreeSequenceIsComplete(entityTreeRenderer->getLastOctreeMessageSequence()) )) {
|
||||||
// we've received a new full-scene octree stats packet, or it's been long enough to try again anyway
|
// we've received a new full-scene octree stats packet, or it's been long enough to try again anyway
|
||||||
_lastPhysicsCheckTime = now;
|
_lastPhysicsCheckTime = now;
|
||||||
_fullSceneCounterAtLastPhysicsCheck = _fullSceneReceivedCounter;
|
_fullSceneCounterAtLastPhysicsCheck = _fullSceneReceivedCounter;
|
||||||
|
|
Loading…
Reference in a new issue