History

change some timing types from int to uint64_t to avoid costly assumptions

Stephen Birarda committed 13 years ago

Commit beb89e31 parent 4ed23162 files · +2 −2Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 2 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -177,7 +177,7 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 176 unmodified lines
177177 return; // bail early, it hasn't been long enough since the last time we ran
178178 }
179179
180− int sinceLastViewCulling = (start - _lastViewCulling) / 1000;
180+ uint64_t sinceLastViewCulling = (start - _lastViewCulling) / 1000;
181181 // If the view frustum is no longer changing, but has changed, since last time, then remove nodes that are out of view
182182 if ((sinceLastViewCulling >= std::max((float) _lastViewCullingElapsed, VIEW_CULLING_RATE_IN_MILLISECONDS))
183183 && !isViewChanging() && hasViewChanged()) {