History

Just using usleep won't work

Zach Fox committed 10 years ago

Commit 21d45901 parent 76121a21 file · +2 −2Browse files

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

Unified · Split

interface/src/Application.cpp+2−2
@@ -5463,7 +5463,7 @@ void Application::takeSnapshot(bool notify, const QString& format, float aspectR · 5462 unmodified lines
54635463 uint8_t* pixelArray = new uint8_t[frameNumBytes];
54645464 uchar *bits;
54655465
5466− GifBegin(&myGifWriter, cstr, frame.width(), frame.height(), 0);
5466+ GifBegin(&myGifWriter, cstr, frame.width(), frame.height(), 50);
54675467 for (uint8_t itr = 0; itr < 30; itr++)
54685468 {
54695469 bits = frame.bits();
@@ -5475,7 +5475,7 @@ void Application::takeSnapshot(bool notify, const QString& format, float aspectR · 5 unmodified lines
54755475 pixelArray[itr2 + 3] = (uint8_t)bits[itr2 + 3]; // Alpha
54765476 }
54775477
5478− GifWriteFrame(&myGifWriter, pixelArray, frame.width(), frame.height(), 0);
5478+ GifWriteFrame(&myGifWriter, pixelArray, frame.width(), frame.height(), 50);
54795479 usleep(USECS_PER_MSEC * 50); // 1/20 sec
54805480 // updateHeartbeat() while making the GIF so we don't scare the deadlock watchdog
54815481 updateHeartbeat();