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

This commit is contained in:
poire-z authored and Qingping Hou committed 2016-12-04 12:03:11 -08:00
1 parent 0145ab0410
commit adbe76c156
1 file changed
+3
+3
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