drop redraw frequency to 0.5s

This commit is contained in:
Stephen Birarda 2013-04-01 15:08:20 -07:00
parent 793ac841f2
commit 3135d50ca9

View file

@ -234,7 +234,7 @@ void VoxelSystem::render() {
glPushMatrix();
double timeSinceLastDraw = usecTimestampNow() - usecTimestamp(&lastBufferCopy);
if (readVerticesEndPointer != readVerticesArray && timeSinceLastDraw >= 5000 * 1000) {
if (readVerticesEndPointer != readVerticesArray && timeSinceLastDraw >= 500 * 1000) {
printf("The time since the last draw was %f\n", timeSinceLastDraw);
// try to lock on the buffer write
// just avoid pulling new data if it is currently being written