1
0
Fork 0

DU: Fix bug where PFD update the slow too much timesgit add .!

This commit is contained in:
Josh Davidson 2020-11-23 13:00:01 -05:00
parent 4b58edb995
commit 46b439571e
2 changed files with 9 additions and 5 deletions

View file

@ -298,8 +298,10 @@ var canvas_PFD_base = {
PFD_1_test.page.show();
} else {
PFD_1.updateFast();
PFD_1.update();
if (!updateL) { # Update slow here once so that no flicker if timers don't perfectly align
updateL = 1;
PFD_1.update();
}
PFD_1_test.page.hide();
PFD_1.page.show();
}
@ -321,8 +323,10 @@ var canvas_PFD_base = {
PFD_2_test.page.show();
} else {
PFD_2.updateFast();
PFD_2.update();
if (!updateR) { # Update slow here once so that no flicker if timers don't perfectly align
updateR = 1;
PFD_2.update();
}
PFD_2_test.page.hide();
PFD_2.page.show();
}

View file

@ -1 +1 @@
41
42