mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 21:27:21 +02:00
drop redraw frequency to 0.5s
This commit is contained in:
parent
793ac841f2
commit
3135d50ca9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue