Showing the changes to interface/src/VoxelSystem.cpp (1 of 2 files). Show all
Unified · Split
| @@ -177,7 +177,7 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 176 unmodified lines | |||
| 177 | return; // bail early, it hasn't been long enough since the last time we ran | 177 | return; // bail early, it hasn't been long enough since the last time we ran |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | int sinceLastViewCulling = (start - _lastViewCulling) / 1000; | 180 | uint64_t sinceLastViewCulling = (start - _lastViewCulling) / 1000; |
| 181 | // If the view frustum is no longer changing, but has changed, since last time, then remove nodes that are out of view | 181 | // If the view frustum is no longer changing, but has changed, since last time, then remove nodes that are out of view |
| 182 | if ((sinceLastViewCulling >= std::max((float) _lastViewCullingElapsed, VIEW_CULLING_RATE_IN_MILLISECONDS)) | 182 | if ((sinceLastViewCulling >= std::max((float) _lastViewCullingElapsed, VIEW_CULLING_RATE_IN_MILLISECONDS)) |
| 183 | && !isViewChanging() && hasViewChanged()) { | 183 | && !isViewChanging() && hasViewChanged()) { |