fix ndi->decklinkout slowdown

This commit is contained in:
JohannesItten
2026-07-07 19:50:09 +03:00
parent 370cbd89a2
commit 8dfeeacecd
2 changed files with 17 additions and 6 deletions
+8 -2
View File
@@ -114,8 +114,9 @@ class DeckLinkOutNode : public dmf::NodeBase {
uint64_t frame_count = 0;
uint64_t invalid_count = 0;
uint64_t late_count = 0;
auto wall_start = std::chrono::steady_clock::now();
auto last_log_time = wall_start;
std::chrono::steady_clock::time_point wall_start;
bool timing_started = false;
auto last_log_time = std::chrono::steady_clock::now();
// --- Main loop ---
while (dmf::g_running.load(std::memory_order_relaxed)) {
@@ -169,6 +170,11 @@ class DeckLinkOutNode : public dmf::NodeBase {
video_reader, video_index, &video_grain, &video_buf);
if (vst == MXL_STATUS_OK) {
if (!timing_started) {
wall_start = std::chrono::steady_clock::now();
last_log_time = wall_start;
timing_started = true;
}
if (video_grain.flags & MXL_GRAIN_FLAG_INVALID) invalid_count++;
sender.submit_frame(video_buf, video_stride);
frame_count++;