Delay start of playback
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "Scene/Texture.hpp"
|
||||
#include <filesystem>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
namespace OpenVulkano::AR::Playback
|
||||
{
|
||||
ArSessionPlayback::ArSessionPlayback(const std::string& recordingPath, bool autoAdvance)
|
||||
@@ -60,6 +62,7 @@ namespace OpenVulkano::AR::Playback
|
||||
|
||||
void ArSessionPlayback::ReadWorker()
|
||||
{
|
||||
std::this_thread::sleep_for(128ms); // Delay startup of playback
|
||||
while (playbackReader.HasNext() && IsRunning())
|
||||
{
|
||||
while (!m_frameConsumed) { std::this_thread::yield(); }
|
||||
|
||||
Reference in New Issue
Block a user