mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
tweak recording of lastKnownViewFrustum as part of delta sending fix
This commit is contained in:
parent
8560e42357
commit
1f8842c6af
1 changed files with 6 additions and 2 deletions
|
@ -65,7 +65,11 @@ bool VoxelAgentData::updateCurrentViewFrustum() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelAgentData::updateLastKnownViewFrustum() {
|
void VoxelAgentData::updateLastKnownViewFrustum() {
|
||||||
// save our currentViewFrustum into our lastKnownViewFrustum
|
bool frustumChanges = !_lastKnownViewFrustum.matches(_currentViewFrustum);
|
||||||
_lastKnownViewFrustum = _currentViewFrustum;
|
|
||||||
|
if (frustumChanges) {
|
||||||
|
// save our currentViewFrustum into our lastKnownViewFrustum
|
||||||
|
_lastKnownViewFrustum = _currentViewFrustum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue