History

drop redraw frequency to 0.5s

Stephen Birarda committed 13 years ago

Commit 3135d501 parent 793ac841 file · +1 −1Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -234,7 +234,7 @@ void VoxelSystem::render() { · 233 unmodified lines
234 glPushMatrix();234 glPushMatrix();
235 235
236 double timeSinceLastDraw = usecTimestampNow() - usecTimestamp(&lastBufferCopy);236 double timeSinceLastDraw = usecTimestampNow() - usecTimestamp(&lastBufferCopy);
237 if (readVerticesEndPointer != readVerticesArray && timeSinceLastDraw >= 5000 * 1000) {237 if (readVerticesEndPointer != readVerticesArray && timeSinceLastDraw >= 500 * 1000) {
238 printf("The time since the last draw was %f\n", timeSinceLastDraw);238 printf("The time since the last draw was %f\n", timeSinceLastDraw);
239 // try to lock on the buffer write239 // try to lock on the buffer write
240 // just avoid pulling new data if it is currently being written240 // just avoid pulling new data if it is currently being written