Understanding Chromium's Window Occlusion Feature and How to (Temporarily) Disable It
Chromium, the open-source project behind Google Chrome and Microsoft Edge, constantly undergoes updates and improvements. One such feature, "Window Occlusion," aims to improve performance by reducing resource usage when a browser window is obscured or hidden. However, this feature can sometimes interfere with screen recording or streaming applications. This article delves into the Window Occlusion feature, the problems it can cause, and how to temporarily disable it using the about:flags
entry.
What is Window Occlusion in Chromium?
Window Occlusion is a mechanism within Chromium-based browsers that detects when a browser window is fully or partially hidden behind other windows. When the browser detects occlusion, it stops rendering the content within the occluded portion of the window. This reduces the demand on your computer's resources, saving CPU and battery life.
The Problem: Conflicts with Screen Recording and Streaming
While Window Occlusion is beneficial for general browsing, it can create problems for users who screen record or stream content from their browser. Specifically, when a Chromium window is captured by third-party software (like OBS, Microsoft Teams, or even another browser running Google Meet) and then becomes occluded, the capture can display a blank or white screen.
Here's a breakdown of the issue:
- Chromium Detects Occlusion: The Window Occlusion detection system notices that the window being captured is now obscured.
- Rendering Stops: Chromium stops rendering the occluded window to conserve resources. This is a global stop which affects all web content.
- Screen Capture Shows Blank: The screen recording software captures the now-blank or non-rendering window, resulting in a black screen or the absence of the intended content in the recording or stream.
This issue arises because Chromium cannot reliably distinguish between a genuine occlusion scenario (where the user won't see the occluded window) and a screen capture scenario (where the occluded window is still important).
The Temporary Workaround: Re-Enabling the about:flags
Entry
To address this issue and provide users with a way to stream and screen capture seamlessly, a temporary workaround was introduced: re-enabling the "Calculate-Native-Win-Occlusion" flag in about:flags
.
What is about:flags
?
about:flags
is a special Chromium page where users can enable or disable experimental features that are not yet ready for general release. It's essentially a settings panel for developers and advanced users.
How to Disable Window Occlusion via about:flags
-
Open Chromium-based Browser: Launch Google Chrome, Microsoft Edge, or another Chromium-based browser.
-
Navigate to
about:flags
: Typeabout:flags
in the address bar and press Enter. -
Search for "Calculate-Native-Win-Occlusion": Use the search bar on the
about:flags
page to find the "Calculate-Native-Win-Occlusion" flag. -
Disable the Flag: Change the setting from "Enabled" to "Disabled".
Note: If don't see the Calculate-Native-Win-Occlusion flag, it may have been removed or renamed in a newer version of Chrome.
-
Restart the Browser: Relaunch your browser to apply the changes.
By disabling this flag, you prevent Chromium from detecting window occlusion, ensuring that the window continues to render even when obscured, and allowing screen recording and streaming software to capture the content correctly.
Important Considerations:
- Temporary Solution: Disabling Window Occlusion via
about:flags
is intended as a temporary fix. This flag may be removed or modified in future Chromium updates. - Performance Impact: Disabling Window Occlusion means your browser will continue to render content even when hidden, which can consume more resources and potentially impact performance.
The Future: A Permanent Setting?
The Chromium team acknowledges that the about:flags
solution is not ideal in the long term and is considering implementing a more permanent solution, potentially in the form of a dedicated setting within the browser's settings menu. This would provide users with a more user-friendly and stable way to control Window Occlusion behavior.
The ideal setting place would be similar to: Advanced Settings -> System
Conclusion
The Window Occlusion feature in Chromium is designed to optimize performance, but it can interfere with screen recording and streaming workflows. Re-enabling the "Calculate-Native-Win-Occlusion" flag in about:flags
offers a temporary workaround, but users should be aware of the potential performance implications and the possibility of this flag being removed in future updates. Keep an eye out for a more permanent setting in future versions of Chromium-based browsers.