can somebody please tell me how to do the following as I do not have programming experience.
Quote:
Originally Posted by hawhill
I just added a commit to the sources that will allow to pass "0" as an option to the "-refreshFullAfterPixels" switch in order to disable full refreshes completely. l.
|
Using the following script what do I have to change/ which figures do I change to '0' to disable the full refresh?
local waitRefresh = 250
local rotateFB = 0
local reconnecting = false
local debug = false
local blitfunc = nil
local update_x1 = nil
local update_x2 = 0
local update_y1 = 0
local update_y2 = 0
local refresh_full_every_256th_pxup = 512
local refresh_full_ctr = 0
-- this is just an ID value
local TIMER_REFRESH = 10
local function do_refresh_full(w, h)
refresh_full_ctr = refresh_full_ctr + w*h
if refresh_full_ctr >= bit.rshift(fb.bb:getWidth() * fb.bb:getHeight() * refresh_full_every_256th_pxup, 8) then
refresh_full_ctr = 0
return true
end
return false
-refreshFullAfterPixels <n>
after updating <n> times the screen's pixels, a full eink
refresh is issued. Default is 2.0
elseif value == "-waitRefresh" and arg[i+1] then
waitRefresh = tonumber(arg[i+1])
arg[i+1] = ""
elseif value == "-refreshFullAfterPixels" and arg[i+1] then
refresh_full_every_256th_pxup = 256 * tonumber(arg[i+1])
arg[i+1] = ""