-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen flickering on Nvidia Optimus #3452
Comments
This sounds like a driver issue. Just a few more questions for completeness:
|
@teoxoy Sure!
According to Nvidia control panel, only built-in display is connected to iGPU, and all external ports are connected to dGPU. So I tried to replicate the issue with a HDMI monitor (which Nvidia control panel reports as connected to dGPU), and the issue was still there. It indeed sounds like a driver issue. If you can point to some other Vulkan applications, I would be happy to test them too. Probably not important, but the issue also persists when I attach RenderDoc. For some reason, RenderDoc fails with VK_ERROR_DEVICE_LOST when I click EID 20 and 22 - the vkCmdDrawIndexed call. It might be RenderDoc's bug, but it's weird. |
Thanks for all the details! I'm not sure about the RenderDoc issue. So the conclusion is that just having optimus enabled and using the Intel iGPU causes the flicker on resize behavior. Not sure what we can do about this, ideally we should use DX12 on Windows (see #2719). |
Looks like related to this SO question: https://stackoverflow.com/q/58808444 |
@cwfitzgerald Sorry, but I do not own the laptop anymore. Maybe others could help? @n1ght-hunter |
Description
Screen flickers (briefly shows white screen) when resizing.
As far as I can test, this only happens with Vulkan backend, and requesting LowPower adapter with nvidia optimus enabled.
Oddly, I get the same issue whenever I launch Kakaotalk (a Korean messenger app). In that case, the screen goes white without triggering repaint event, causing the app to become stuck on the white screen until the next repaint event occurs.
Repro steps
cargo run --example cube
Expected vs observed behavior
Screen flickers (briefly shows white screen).
Extra materials
Here is a video recording of the issue (contains flashing lights):
I do get a single validation error at start, but I believe it's irrelevant because I also get those even when I disabled nvidia adapter.
Platform
The text was updated successfully, but these errors were encountered: