mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +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() {
|
||||
// save our currentViewFrustum into our lastKnownViewFrustum
|
||||
_lastKnownViewFrustum = _currentViewFrustum;
|
||||
bool frustumChanges = !_lastKnownViewFrustum.matches(_currentViewFrustum);
|
||||
|
||||
if (frustumChanges) {
|
||||
// save our currentViewFrustum into our lastKnownViewFrustum
|
||||
_lastKnownViewFrustum = _currentViewFrustum;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue