#weird Flickering ?

26 messages · Page 1 of 1 (latest)

polar zenith
#

just getting this weird Flickering effect, it only seems to happen when the lighting is enabled which is as follows, i just yoinked it from one of the examples.

fn setup_lighting(
    mut commands: Commands
) {
    commands.spawn ((
        DirectionalLight {
            illuminance: light_consts::lux::OVERCAST_DAY,
            shadows_enabled: true,
            ..default()
        },
        Transform {
            translation: Vec3::new(0.0, 50.0, 0.0),
            rotation: Quat::from_rotation_x(-PI / 4.0),
            ..default()
        },
        CascadeShadowConfigBuilder {
            first_cascade_far_bound: 4.0,
            maximum_distance: 10.0,
            ..default()
        }
        .build(),
    ));
}```

Thanks!
whole mortar
#

I'm getting this too @polar zenith

#

Did you end up finding a solution?

#

I found a solution!

#

If you're on an amdgpu, use mesa instead of amdvlk for vulkan

#

it's a bug in amdvlk

polar zenith
#

ill have to double check

#

thanks 🙂

whole mortar
#

and nw :)

polar zenith
#
2025-01-17T03:06:24.464073Z  WARN winit::platform_impl::linux::x11::xdisplay: error setting XSETTINGS; Xft options won't reload automatically
2025-01-17T03:06:24.504598Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 6900 XT", vendor: 4098, device: 29615, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "(AMD proprietary shader compiler)", backend: Vulkan }

i definitely have mesa installed not amdvlk at least.

#

maybe i just need to update though

whole mortar
#

You should probably switch to the FOSS amd driver since it has better perfs

#

You would then uninstall the proprietary one and not install AMDVLK

#

then mesa-radv should work

#

If you really need the AMD proprietary driver

#

there's another way

#

manually setting the ICD

#

The location depends on your distro but it should be something like this:

#

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/(something)

#

that said, this env var would need to be set for everything you want to use anything but the proprietary driver (which has worse perfs) so if you don't need it, you should probably just switch to the FOSS one

polar zenith
#

interesting when i ran vulkaninfo --summary it shows mesa but for some reason i did have vulkan-amdgpu-pro wonder why i installed that

#

i think that fixed it though

whole mortar
#

Coolio