You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Disabling backgroundThrottling not working with hide() on Windows #31016
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
14.0.0
What operating system are you using?
Windows
Operating System Version
Windows 10 build 19041.1165
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
On Windows, setting backgroundThrottling: false on a BrowserWindow should cause throttling of things like requestAnimationFrame to not happen when the window is occluded, minimized, or hidden.
Actual Behavior
On Windows, setting backgroundThrottling: false on a BrowserWindow causes throttling of things like requestAnimationFrame to not happen when the window is occluded or minimized but not hidden. On MacOS (v11.5.2 Intel x64) disabling backgroundThrottling causes requestAnimatingFrames to continue to work for all 3 cases -- occluded, minmized, and hidden. This is the reason I think this might be a bug on Windows.
Start gist in electron (fiddle), open dev console and pop it out -> observe the tick being logged twice per second as callbacks to requestAnimationFrame calls
Occlude the window, minimize the window, or click Hide for 5s -> observe the tick stops being logged in all 3 cases
Click Toggle background throttling button
Occlude or minimize the window -> observe the tick does not stop being logged
Click Hide for 5s -> On Windows, observe the tick stops being logged during the 5s the window is hidden, indicating the requestAnimationFrame callbacks are being blocked. On Mac, observe the tick continue to be logged indicating they are not.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
zeeker999 commentedon Sep 18, 2021
the root cause likely is the same as issue #30666
bavulapati commentedon Jan 18, 2022
Noticed this on v15.3.5 and v16.0.7 too
ahadcove commentedon Feb 28, 2022
Has anyone found a solution for this?
Seems to still be around on windows
kriswest commentedon Apr 6, 2022
We noticed this on v16.2.0 as well
github-actions commentedon Oct 5, 2022
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
github-actions commentedon Nov 6, 2022
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
pushkin- commentedon Nov 28, 2022
I can repro this on Windows in Electron 21
17 remaining items
2573825854 commentedon Jun 15, 2024
29.4.2中仍然有该问题
sahil-lalani commentedon Aug 26, 2024
bump
NoRabbit commentedon Oct 28, 2024
bump -> 31.2.0
qian-jiang commentedon Nov 4, 2024
Recurrence in version 31
Keep Electron test windows off the developer's desktop
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix(desktop): keep test-build windows hidden on macOS
fix: 가려진 창에서 현재 시각이 멈추던 문제를 고친다
fix: 가려진 창에서 현재 시각이 멈추던 문제를 고친다