mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make the present mode default to Fifo instead of Immediate since it uses
less power and in my own experience is generally a better experience when the GPU is under significant load.
This commit is contained in:
parent
275b17be57
commit
5e8adb3c80
@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Certain NPCs will now attack when alone with victim
|
- Certain NPCs will now attack when alone with victim
|
||||||
- /kill_npcs no longer leaves drops behind and also has bug causing it to not destroy entities
|
- /kill_npcs no longer leaves drops behind and also has bug causing it to not destroy entities
|
||||||
fixed.
|
fixed.
|
||||||
|
- Default present mode changed to Fifo (aka 'Vsync capped').
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -251,16 +251,13 @@ impl Default for UpscaleMode {
|
|||||||
|
|
||||||
/// Present modes
|
/// Present modes
|
||||||
/// See https://docs.rs/wgpu/0.7.0/wgpu/enum.PresentMode.html
|
/// See https://docs.rs/wgpu/0.7.0/wgpu/enum.PresentMode.html
|
||||||
#[derive(PartialEq, Clone, Copy, Debug, Serialize, Deserialize)]
|
#[derive(Default, PartialEq, Clone, Copy, Debug, Serialize, Deserialize)]
|
||||||
pub enum PresentMode {
|
pub enum PresentMode {
|
||||||
Fifo,
|
|
||||||
Mailbox,
|
Mailbox,
|
||||||
#[serde(other)]
|
|
||||||
Immediate,
|
Immediate,
|
||||||
}
|
#[default]
|
||||||
|
#[serde(other)]
|
||||||
impl Default for PresentMode {
|
Fifo, // has to be last for `#[serde(other)]`
|
||||||
fn default() -> Self { Self::Immediate }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<PresentMode> for wgpu::PresentMode {
|
impl From<PresentMode> for wgpu::PresentMode {
|
||||||
|
Loading…
Reference in New Issue
Block a user