Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions launcher/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def set_capture(enable):
# graphics backend: "" = automatic (Vulkan first, D3D12 fallback on
# Windows), "vulkan" or "d3d12" to force one. Chosen at startup.
"gpu": ("str", "", True),
"vulkan_device": ("str", "", True),
# audio
"audio_mute": ("bool", False, False),
"audio_maxqframes": ("int", 32, True),
Expand Down
11 changes: 11 additions & 0 deletions launcher/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@ <h2>DISPLAY</h2>
</select>
<div class="hint">Vulkan plays the intro videos and matches console colors. Pick Direct3D 12 only if Vulkan fails on your GPU. Restart needed.</div>
</div>
<div class="field">
<label>Vulkan Device (Multi-GPU / Laptop)</label>
<select id="s-vulkan_device">
<option value="">Automatic (Recommended)</option>
<option value="0">Device 0</option>
<option value="1">Device 1</option>
</select>
<div class="hint">Select the GPU device index to use when GPU backend is set to Vulkan. Leave on Automatic if unsure.</div>
</div>
<div class="field">
<label class="switch"><input type="checkbox" id="s-vsync"> VSync</label>
</div>
Expand Down Expand Up @@ -1053,6 +1062,7 @@ <h3>Credits</h3>
$("#s-fullscreen").value = String(v.fullscreen);
$("#s-resolution").value = v.resolution || "";
$("#s-gpu").value = v.gpu || "";
$("#s-vulkan_device").value = v.vulkan_device || "";
$("#s-vsync").checked = v.vsync;
$("#s-present_letterbox").checked = v.present_letterbox;
$("#s-resolution_scale").value = String(v.resolution_scale);
Expand All @@ -1075,6 +1085,7 @@ <h3>Credits</h3>
fullscreen: $("#s-fullscreen").value === "true",
resolution: $("#s-resolution").value,
gpu: $("#s-gpu").value,
vulkan_device: $("#s-vulkan_device").value,
vsync: $("#s-vsync").checked,
present_letterbox: $("#s-present_letterbox").checked,
resolution_scale: Number($("#s-resolution_scale").value),
Expand Down
Loading