From 54ba3b65139b25550f3c47a41f0f63b9722d7a21 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Fri, 9 May 2025 16:02:56 -0400 Subject: [PATCH] Event History Setup: #287 Run ncursesPrinter more frequently during nosync condition to make ncurses user input a lot more responsive during quiet times. --- src/dsd_frame_sync.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/dsd_frame_sync.c b/src/dsd_frame_sync.c index 40f77a7..8ae231e 100644 --- a/src/dsd_frame_sync.c +++ b/src/dsd_frame_sync.c @@ -224,11 +224,11 @@ getFrameSync (dsd_opts * opts, dsd_state * state) lastt = 0; state->numflips = 0; - //move ncursesPrinter outside of the sync loop, causes weird lag inside the loop - if (opts->use_ncurses_terminal == 1) - { - ncursesPrinter(opts, state); - } + //moved back inside the loop to run on t mod basis to speed up responsiveness during quiet times + // if (opts->use_ncurses_terminal == 1) + // { + // ncursesPrinter(opts, state); + // } //slot 1 watchdog_event_history(opts, state, 0); @@ -248,6 +248,10 @@ getFrameSync (dsd_opts * opts, dsd_state * state) t++; + //run ncurses printer more frequently when no sync to speed up responsiveness of it during no sync period + if ( opts->use_ncurses_terminal == 1 && ((t % 360) == 0)) //t maxes out at 1800 (5 times each getFrameSync) + ncursesPrinter(opts, state); + symbol = getSymbol (opts, state, 0); lbuf[lidx] = symbol;