bevy/crates/bevy_render/src
Robert Swain ef823d369f bevy_render: Do not automatically enable MAPPABLE_PRIMARY_BUFFERS (#3698)
# Objective

- When using `WgpuOptionsPriority::Functionality`, which is the default, wgpu::Features::MAPPABLE_PRIMARY_BUFFERS would be automatically enabled. This feature can and does have a significant negative impact on performance for discrete GPUs where resizable bar is not supported, which is a common case. As such, this feature should not be automatically enabled.
- Fixes the performance regression part of https://github.com/bevyengine/bevy/issues/3686 and at least some, if not all cases of https://github.com/bevyengine/bevy/issues/3687

## Solution

- When using `WgpuOptionsPriority::Functionality`, use the adapter-supported features, enable `TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES` and disable `MAPPABLE_PRIMARY_BUFFERS`
2022-01-17 22:03:14 +00:00
..
camera Add headless mode (#3439) 2022-01-08 10:39:43 +00:00
color Fix doc_markdown lints in bevy_render (#3479) 2022-01-09 11:09:46 +00:00
mesh Fix doc_markdown lints in bevy_render (#3479) 2022-01-09 11:09:46 +00:00
primitives bevy_gltf: Add support for loading lights (#3506) 2022-01-03 07:59:25 +00:00
render_graph Fixed doc comment with render Node input/output methods (#3642) 2022-01-17 20:44:22 +00:00
render_phase Fix doc_markdown lints in bevy_render (#3479) 2022-01-09 11:09:46 +00:00
render_resource support all line endings in shader preprocessor (#3603) 2022-01-09 18:52:18 +00:00
renderer bevy_render: Do not automatically enable MAPPABLE_PRIMARY_BUFFERS (#3698) 2022-01-17 22:03:14 +00:00
texture Use use instead of lots of full paths (#3564) 2022-01-11 01:08:39 +00:00
view Expanded Msaa documentation. (#3693) 2022-01-16 21:09:15 +00:00
lib.rs Add headless mode (#3439) 2022-01-08 10:39:43 +00:00
options.rs Enable the doc_markdown clippy lint (#3457) 2022-01-09 23:20:13 +00:00
render_asset.rs Fix doc_markdown lints in bevy_render (#3479) 2022-01-09 11:09:46 +00:00
render_component.rs Add headless mode (#3439) 2022-01-08 10:39:43 +00:00