Merge remote-tracking branch 'origin/caching-timing-improvements' into caching-timing-improvements

# Conflicts:
#	src/Qt/PlayerPrivate.cpp
This commit is contained in:
Jonathan Thomas
2022-01-17 14:55:25 -06:00
2 changed files with 5 additions and 3 deletions

View File

@@ -160,9 +160,6 @@ namespace openshot
// Calculate the amount of time to sleep (by subtracting the render time)
auto sleep_time = duration_cast<micro_sec>(frame_duration - render_time + sleep_adjustment);
// DEBUG
std::cout << average_video_diff << "\t" << sleep_adjustment.count() << "\t" << sleep_time.count() << std::endl;
// Sleep if sleep_time is greater than zero after correction
// (leaving the video frame on the screen for the correct amount of time)
if (sleep_time > sleep_time.zero() ) {

5
test.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
#cd build; cmake ../; make -j9; make install;
cmake --build build -j9; cmake --install build;