1
0
Fork 0
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:
Jasper Mattsson 2019-10-11 23:16:13 +03:00 committed by Christian Duerr
parent 2f83f2dd2e
commit 3475e44987
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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)?;