mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-01 09:22:28 +03: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:
1 parent
2f83f2dd2e
commit
3475e44987
2 files changed
+3
No files matched your search
@@ -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 resuming after suspension
|
||||||
- Crash when trying to start on X11 with a Wayland compositor running
|
- Crash when trying to start on X11 with a Wayland compositor running
|
||||||
- Crash with a virtual display connected on X11
|
- Crash with a virtual display connected on X11
|
||||||
|
- GPU memory usage has been decreased by disabling allocation of depth and stencil buffers
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ fn create_gl_window(
|
|||||||
let windowed_context = ContextBuilder::new()
|
let windowed_context = ContextBuilder::new()
|
||||||
.with_srgb(srgb)
|
.with_srgb(srgb)
|
||||||
.with_vsync(true)
|
.with_vsync(true)
|
||||||
|
.with_depth_buffer(0)
|
||||||
|
.with_stencil_buffer(0)
|
||||||
.with_hardware_acceleration(None)
|
.with_hardware_acceleration(None)
|
||||||
.build_windowed(window, event_loop)?;
|
.build_windowed(window, event_loop)?;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user