From 9baa26125346a1366f5f216e0a5ed51aea4d9d0a Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 12 Apr 2022 01:51:15 -0500 Subject: [PATCH] GUI: reduce initial oscilloscope latency --- src/gui/osc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/osc.cpp b/src/gui/osc.cpp index c7089a99..0119232d 100644 --- a/src/gui/osc.cpp +++ b/src/gui/osc.cpp @@ -19,18 +19,18 @@ #include "gui.h" #include "imgui_internal.h" -#include -#include // TODO: // - potentially move oscilloscope seek position to the end, and read the last samples // - this allows for setting up the window size -// - reduce initial latency (it's too high) void FurnaceGUI::readOsc() { int writePos=e->oscWritePos; int readPos=e->oscReadPos; int avail=0; int total=0; + if (firstFrame) { + readPos=writePos; + } if (writePos>=readPos) { avail=writePos-readPos; } else {