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

This commit is contained in:
poire-z
2016-12-04 15:17:04 +01:00
committed by Qingping Hou
parent 0145ab0410
commit adbe76c156

View File

@@ -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