mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Remove old physics-enabling code
This commit is contained in:
parent
5315b020ec
commit
2ac6ca3291
1 changed files with 1 additions and 2 deletions
|
@ -5475,10 +5475,9 @@ void Application::update(float deltaTime) {
|
|||
// we haven't yet enabled physics. we wait until we think we have all the collision information
|
||||
// for nearby entities before starting bullet up.
|
||||
quint64 now = usecTimestampNow();
|
||||
//const int PHYSICS_CHECK_TIMEOUT = 2 * USECS_PER_SECOND;
|
||||
// Check for flagged EntityData having arrived.
|
||||
auto entityTreeRenderer = getEntities();
|
||||
if (entityTreeRenderer && _octreeProcessor.octreeSequenceIsComplete(entityTreeRenderer->getLastOctreeMessageSequence()) ) {
|
||||
/*if (now - _lastPhysicsCheckTime > PHYSICS_CHECK_TIMEOUT || _fullSceneReceivedCounter > _fullSceneCounterAtLastPhysicsCheck) {*/
|
||||
// we've received a new full-scene octree stats packet, or it's been long enough to try again anyway
|
||||
_lastPhysicsCheckTime = now;
|
||||
_fullSceneCounterAtLastPhysicsCheck = _fullSceneReceivedCounter;
|
||||
|
|
Loading…
Reference in a new issue