History

CR cleanup

ZappoMan committed 13 years ago

Commit cb5ccee1 parent ed30a031 file · +2 −4Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+2−4
@@ -144,19 +144,17 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 143 unmodified lines
144144 }
145145
146146 double sinceLastViewCulling = (start - _lastViewCulling) / 1000.0;
147−
148147 // If the view frustum has changed, since last time, then remove nodes that are out of view
149148 if ((sinceLastViewCulling >= std::max(_lastViewCullingElapsed, VIEW_CULLING_RATE_IN_MILLISECONDS)) && hasViewChanged()) {
150149 _lastViewCulling = start;
151150 removeOutOfView();
152151 double endViewCulling = usecTimestampNow();
153− _lastViewCullingElapsed = (endViewCulling - start)/1000.0;
152+ _lastViewCullingElapsed = (endViewCulling - start) / 1000.0;
154153 }
155154
156155 if (_tree->isDirty()) {
157156 PerformanceWarning warn(_renderWarningsOn, "calling... newTreeToArrays()");
158157 _callsToTreesToArrays++;
159−
160158 if (_alwaysRenderFullVBO) {
161159 _voxelsInWriteArrays = 0; // reset our VBO
162160 }
@@ -173,7 +171,7 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 10 unmodified lines
173171 copyWrittenDataToReadArrays();
174172
175173 double end = usecTimestampNow();
176− double elapsedmsec = (end - start)/1000.0;
174+ double elapsedmsec = (end - start) / 1000.0;
177175 _setupNewVoxelsForDrawingLastFinished = end;
178176 _setupNewVoxelsForDrawingLastElapsed = elapsedmsec;
179177 }