View Issue Details

IDProjectCategoryView StatusLast Update
00273272.x IDE BugsTile Set EditorPublic2018-08-31 10:40
ReporterClaire HallAssigned ToCoreTech 
PriorityLowSeverityC - GeneralReproducibility100%
Status AssignedResolutionOpen 
Product Version 
Target VersionFixed in Version 
Summary0027327: Tile Editing - Painting with tiles causes render refresh every frame (reducing battery life)
DescriptionWhile the user is painting tiles if the mouse is hovering over the brush builder page or a tile layer in the room editor the IDE will re-render every frame even if the mouse position has not moved.

This continues even if the IDE doesn't have focus and since the IDE mouse position is not updated if the user alt+tab's to another window over the top it can be quietly eating your battery unnecessarily in the background.

A render refresh should only be requested if the result on screen has actually changed
Steps To ReproduceUse task manager to compare cpu usage of the IDE when -

IDE is focused and mouse hovering over brush builder page (with brush selected)
IDE is focused and mouse hovering over empty workspace
Hover mouse over brush builder page then switch focus to another window (thus hiding IDE)
Hover mouse over empty workspace then switch focus to another window

see that there is a reasonable increase in usage whether focused or not if mouse was over brush builder
TagsIDE, RoomEditor
2.x IDE Found In2.0.7.171
2.x Runtime Found In2.0.7.110
2.x IDE Verified In
2.x Runtime Verified In



2017-08-10 09:29

Adminstrator   ~0054849

We should only pause rendering on loss of program focus. While in focus in active, then it would be changing most of the time anyway.

Claire Hall

2018-06-21 15:19

Developer   ~0060548

I'm pretty sure it'll be easier to do it properly as the point we are asking for a refresh we can determine if the state has actually changed