Repository navigation
AtlasEngine: Redraw immediately on opacity changes - #12226
1 commit merged into
Conversation
Mike Griese (zadjii-msft)
left a comment
There was a problem hiding this comment.
Would it maybe be more idomatic to call TriggerSystemRedraw or TriggerRedrawAll rather than making NotifyPaintFrame a public part of the Renderer? Theoretically, you could imagine a renderer that actually does need to redraw everything when the opacity changes...
|
Mike Griese (@zadjii-msft) If you think However from the perspective of |
|
When I originally wrote this, I had intended all paint calls to be indirectly triggered by some sort of "Invalidate*" call, not calling the paint frame directly. However, since I wrote it, the threading and mechanisms of how this works have changed dramatically to make room for the various render types and scenarios we now need to cover. As well, Leonard has thoroughly proven to me how past-me has architected in a performance-poor solution here with all the indirect handwaving going on here. So I'm inclined to go with what Leonard says here and just directly call the Notify in question for this scenario as there's no point in handwaving our way to a repaint through another indirection of sorts. |
Mike Griese (zadjii-msft)
left a comment
There was a problem hiding this comment.
Okeydokey if Niksa is cool with it I'm cool with it too. Just wanted to be sure
|
Hello Mike Griese (@zadjii-msft)! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Since
AtlasEngineprefers drawing without alpha for performance reasons,calls to
EnableTransparentBackgroundrequire a draw cycle.This PR makes
Renderer::_NotifyPaintFramepublic and calls it.Related to #9999.
PR Checklist
Validation Steps Performed
changes background opacity immediately ✅