Print ar playback info at playback start
This commit is contained in:
@@ -64,6 +64,17 @@ namespace OpenVulkano::AR::Playback
|
||||
void ArSessionPlayback::ReadWorker()
|
||||
{
|
||||
Utils::SetThreadName("AR_Playback");
|
||||
std::string playbackInfo;
|
||||
if (!metadata.device.empty())
|
||||
{
|
||||
playbackInfo = fmt::format("Device: {}; OS: {}", metadata.device, metadata.os);
|
||||
if (metadata.recDuration > 0)
|
||||
{
|
||||
playbackInfo += fmt::format("\nDuration: {}; Frames: {}; Skipped: {}",
|
||||
metadata.recDuration, metadata.recFrameCount, metadata.recSkippedFrames);
|
||||
}
|
||||
}
|
||||
Logger::AR->info("Starting AR Playback '{}'{}", metadata.type.GetHumanReadableName(), recordingPath, playbackInfo);
|
||||
std::this_thread::sleep_for(128ms); // Delay startup of playback
|
||||
while (playbackReader.HasNext() && IsRunning())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user