Reset refresh rate counter on explicit full refreshs (#2394)

pull/2400/head
poire-z 8 years ago committed by Qingping Hou
parent 0145ab0410
commit adbe76c156

@ -500,6 +500,9 @@ region: Rect() that specifies the region to be updated
--]]
function UIManager:_refresh(mode, region)
if not mode then return end
if not region and mode == "full" then
self.refresh_count = 0 -- reset counter on explicit full refresh
end
-- special case: full screen partial update
-- will get promoted every self.FULL_REFRESH_COUNT updates
-- since _refresh can be called mutiple times via setDirty called in

Loading…
Cancel
Save