fix: set preferred GPU adapter for WebGPU rendering
This commit is contained in:
+7
-9
@@ -2,6 +2,8 @@
|
|||||||
-- │ WINDOW │
|
-- │ WINDOW │
|
||||||
-- ╰─────────────────────────────────────────────────────────╯
|
-- ╰─────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
|
local gpus = WEZTERM.gui.enumerate_gpus()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- Set the initial size
|
-- Set the initial size
|
||||||
initial_cols = 180,
|
initial_cols = 180,
|
||||||
@@ -44,15 +46,11 @@ return {
|
|||||||
|
|
||||||
-- Terminal Variable
|
-- Terminal Variable
|
||||||
term = "wezterm",
|
term = "wezterm",
|
||||||
webgpu_preferred_adapter = {
|
|
||||||
backend = "Vulkan",
|
-- Rendering
|
||||||
device = 7954,
|
front_end = "WebGpu",
|
||||||
device_type = "DiscreteGpu",
|
webgpu_power_preference = "HighPerformance",
|
||||||
driver = "NVIDIA",
|
webgpu_preferred_adapter = gpus[1],
|
||||||
driver_info = "560.35.03",
|
|
||||||
name = "NVIDIA GeForce RTX 2060 with Max-Q Design",
|
|
||||||
vendor = 4318,
|
|
||||||
},
|
|
||||||
-- Scrollback Lines
|
-- Scrollback Lines
|
||||||
scrollback_lines = 20000,
|
scrollback_lines = 20000,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user