Repository navigation
fix: restore performance of macOS window resizing - #40577
Conversation
|
has this been fixed upstream too? |
No, it doesn't impact upstream, but I'm figuring out if I can make this change behind an desktop vs mobile check or something and upstream that. For now this is a lightweight patch that fixes a rather annoying bug on our side with low risk (because it's reverting an android only fix) |
|
Do you have a screencast that shows the difference? It should be possible to have Chromium revert the change for at least desktop if you can show them the downgraded performance. |
This is exactly what this fixes |
I'll include a screencast when I bug this upstream 👍 |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "26-x-y", please check out #40584 |
|
I have automatically backported this PR to "27-x-y", please check out #40585 |
|
I have automatically backported this PR to "28-x-y", please check out #40586 |
@MarshallOfSound curious why this issue does not impact desktop upstream ? Is there anything unique to the code path in question that has behavior differences between electron and chrome ? |
I was interested in this too but couldn't figure it out. There's definitely something different here (which would be good to figure out separately). Will dig in deeper tomorrow. |
| Reverts https://chromium-review.googlesource.com/c/chromium/src/+/3118293 which | ||
| fixed a android only regression but in the process regressed electron window | ||
| resize perf wildly on macOS. |
There was a problem hiding this comment.
Per our patch policy, all patches are required to include in their description either (a) conditions for the patch's removal, or (b) a reason why the patch can't be removed. Please update this description 🙇🏻
|
I just played around with the newly released Electron Filed #40603, because I cannot reproduce in web only. |
|
I would also like to mention that the issue we commented on in #36280 is also not resolved by this PR using 27.1.2: |
|
Same error persists in Windows |
|
The problem persists and in fact I would say it's gotten significantly worse on Mac as of Electron 29 and on Windows as of Electron 28. There is a perhaps related chromium bug that is not yet fixed: |



As in title, technically an upstream of a discord downstream patch --> discord@a712b66
Fixes an ongoing perf issue with window resizing on macOS by reverting an android-only fix in Chromium
Notes: Fixed resizing performance issue on macOS