iced icon indicating copy to clipboard operation
iced copied to clipboard

Window background is incorrect using Vulkan on Windows

Open staticintlucas opened this issue 4 months ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Is this issue related to iced?

  • [X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?

image

image

This issue is most noticeable with dark themes. With every dark theme the background is almost solid black. With light themes there is still a small difference.

All UI elements render as expected, only the window background is affected.

On Linux all backends work as expected.

What is the expected behavior?

Background colours should be the same across all backends

Version

crates.io release

Operating System

Windows

Do you have any log output?

No response

staticintlucas avatar Feb 17 '24 20:02 staticintlucas

Strange. May be a driver issue, a wgpu bug, or a surface misconfiguration related to #2231.

Could you post the terminal output when running the tour example both for vulkan and dx12?

hecrj avatar Feb 17 '24 21:02 hecrj

Sure, here are the two logs:

vulkan.log dx12.log

staticintlucas avatar Feb 17 '24 22:02 staticintlucas

It seems iced is choosing to use your integrated GPU by default, so I would bet this is most likely a driver issue.

You can force iced to use your discrete GPU by enabling the antialiasing flag in Settings, or you could simply try the game_of_life example which enables that already.

hecrj avatar Feb 17 '24 22:02 hecrj

I get the same result with antialiasing = true.

Here are logs of a modified tour example with antialiasing = true. I can confirm it does use my discrete GPU in this case:

vk_aa.log dx12_aa.log

staticintlucas avatar Feb 17 '24 22:02 staticintlucas

Testing further, if I enable the "web-colors" feature I also don't see this issue.

Could this be related to gfx-rs/wgpu#4842?

staticintlucas avatar Feb 18 '24 00:02 staticintlucas