Reset refresh rate counter on explicit full refreshs (#2394)
This commit is contained in:
1 parent
0145ab0410
commit
adbe76c156
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user