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:
parent
f69f2df63c
commit
552947f507
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user