Delay start of playback

This commit is contained in:
Georg Hagen
2024-07-18 22:04:28 +02:00
parent 1bb9c33699
commit ab38e03ba1

View File

@@ -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(); }