mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Disable depth and stencil buffers
Disable allocation of depth and stencil buffers. This reduces active GPU memory consumption by almost a third, at least on Linux.
This commit is contained in:
parent
2f83f2dd2e
commit
3475e44987
2 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Crash when resuming after suspension
|
||||
- Crash when trying to start on X11 with a Wayland compositor running
|
||||
- Crash with a virtual display connected on X11
|
||||
- GPU memory usage has been decreased by disabling allocation of depth and stencil buffers
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -117,6 +117,8 @@ fn create_gl_window(
|
|||
let windowed_context = ContextBuilder::new()
|
||||
.with_srgb(srgb)
|
||||
.with_vsync(true)
|
||||
.with_depth_buffer(0)
|
||||
.with_stencil_buffer(0)
|
||||
.with_hardware_acceleration(None)
|
||||
.build_windowed(window, event_loop)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue