aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/window.rs
diff options
context:
space:
mode:
authorJasper Mattsson <jasper.mattsson@gmail.com>2019-10-11 23:16:13 +0300
committerChristian Duerr <contact@christianduerr.com>2019-10-11 22:16:13 +0200
commit3475e449870b382cda4ea6d48f980577cd8c929e (patch)
tree4f16a48bb4a338b64bd91911426ffa8a31c6a6f6 /alacritty/src/window.rs
parent2f83f2dd2e131be5ba769655480da0b5fe8c0dc3 (diff)
downloadr-alacritty-3475e449870b382cda4ea6d48f980577cd8c929e.tar.gz
r-alacritty-3475e449870b382cda4ea6d48f980577cd8c929e.tar.bz2
r-alacritty-3475e449870b382cda4ea6d48f980577cd8c929e.zip
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.
Diffstat (limited to 'alacritty/src/window.rs')
-rw-r--r--alacritty/src/window.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs
index 4b5de2c9..c783dc69 100644
--- a/alacritty/src/window.rs
+++ b/alacritty/src/window.rs
@@ -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)?;