1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 12:15:27 +00:00

Improve burn-in timings.

This commit is contained in:
Filippo Scognamiglio 2022-01-08 22:20:44 +01:00
parent f69f2df63c
commit 552947f507

View File

@ -40,15 +40,19 @@ Loader {
anchors.fill: parent anchors.fill: parent
function completelyUpdate() { function completelyUpdate() {
prevLastUpdate = lastUpdate; let newTime = timeManager.time
lastUpdate = timeManager.time; if (newTime > lastUpdate) {
item.source.scheduleUpdate(); prevLastUpdate = lastUpdate
lastUpdate = newTime
}
item.source.scheduleUpdate()
} }
function restartBlurSource(){ function restartBlurSource(){
prevLastUpdate = timeManager.time; prevLastUpdate = timeManager.time
lastUpdate = prevLastUpdate; lastUpdate = prevLastUpdate
completelyUpdate(); completelyUpdate()
} }
sourceComponent: Item { sourceComponent: Item {