Tweak/unbreak my CPUFreq experiment (#4119)

* Only switch to ondemand when we actually can, and when it's better than the current governor...
  This potentially leaves Mk.5 in the lurch, but there's no perfect solution there :/.

* Switch to UI for the unmark event of navigation hints markers
Might help on non-REAGL devices, and doesn't hurt there (re #3983).

* Switch SQLite DBs to WAL
Sounds nice in theory, behaves fine in practice.
This commit is contained in:
NiLuJe
2018-07-29 03:53:57 +02:00
committed by GitHub
parent a0825ecf03
commit 0924b57877
4 changed files with 24 additions and 6 deletions

View File

@@ -497,7 +497,7 @@ function ReaderRolling:onGotoXPointer(xp, marker_xp)
-- documents): we drew our black marker in the margin, we
-- can just draw a white one to make it disappear
Screen.bb:paintRect(0, screen_y, marker_w, marker_h, Blitbuffer.COLOR_WHITE)
Screen["refreshFast"](Screen, 0, screen_y, marker_w, marker_h)
Screen["refreshUI"](Screen, 0, screen_y, marker_w, marker_h)
end
UIManager:scheduleIn(marker_setting, self.unmark_func)
end