Examples flicker on Windows
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version and features
0.17 / d95313bdb83fa5b130919f5133c1026b707a4fa4
## Relevant system information
```
SystemInfo { os: "Windows 11 Enterprise", kernel: "26100", cpu: "AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics", core_count: "8", memory: "59.7 GiB" }
AdapterInfo { name: "AMD Radeon(TM) 780M", vendor: 4098, device: 5567, device_type: IntegratedGpu, driver: "AMD proprietary driver", driver_info: "24.10.30.10 (LLPC)", backend: Vulkan }
```
## What you did
Running several / most of samples on windows using cargo run -r --sample
## What went wrong
Got some unexpected flickering. Mostly in 2D but some 3D samples also show that flicker. Seems like z-fighting (What should be fighting in mesh2d sample?) or transparency glitches. Most notably order_independent_transparency does only flicker with OIT off.
Flicker does not occur if the samples where compiled for the web. This might be specific to Windows, maybe even to my Gfx driver. I don't think I have the tools to debug this at the moment but feel free to contact me here or on Discord.
Did not complete all samples yet, here is a list of the flickering samples so far:
* move_sprite
* mesh2d (mesh2d_manual flackert nicht)
* mesh2d_arcs
* mesh2d_vertex_color_texture
* custom_gltf_vertex_attribute
* sprite
* sprite_scale
* sprite_flipping
* sprite_tile
* sprite_slice
* text2d
* tilemap_chunk
* transparency_2d
* mesh2d_alpha_mode
* mesh2d_repeated_texture
* 3d_scene
* lines
* order_independent_transparency (Only with OIT off!)
* orthographic
* parenting (different?)
* render_to_texture
* skybox (Maybe differnt due to skipping Formats)
* texture
* vertex_colors
* animated_transform
* asset_settings
* asset_decompression
* custom_asset_reader
## Additional information
Video of mesh2d flickering:
https://github.com/user-attachments/assets/59f0c606-5bd9-4313-bfe3-6c6511f6eed0
Contributor guide
Research direction
Reproduce the flicker in the listed samples on Windows 11 with the reported AMD Vulkan setup, starting with mesh2d and comparing native runs against web builds. Check whether the behavior changes with OIT enabled or disabled; done means the rendering cause is isolated and the affected samples no longer flicker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, game-dev, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100