mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 17:27:21 -05:00
Event History Setup: #287;
Trial Fix for ncurses randomly lagging when sync condition with printer vs no sync condition with printer and key input;
This commit is contained in:
@@ -224,11 +224,9 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
|
||||
lastt = 0;
|
||||
state->numflips = 0;
|
||||
|
||||
//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);
|
||||
// }
|
||||
//run here as well
|
||||
if (opts->use_ncurses_terminal == 1)
|
||||
ncursesPrinter(opts, state);
|
||||
|
||||
//slot 1
|
||||
watchdog_event_history(opts, state, 0);
|
||||
@@ -249,7 +247,8 @@ 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)
|
||||
//NOTE: Need to monitor and test this, if responsiveness issues arise, then disable this
|
||||
if ( opts->use_ncurses_terminal == 1 && ((t % 600) == 0)) //t maxes out at 1800 (3 times each getFrameSync)
|
||||
ncursesPrinter(opts, state);
|
||||
|
||||
symbol = getSymbol (opts, state, 0);
|
||||
|
||||
Reference in New Issue
Block a user