refactor: Clean up setup wizard and improve updater

- Refactor setup_wizard code (remove 100+ lines of unused code)
- Change default update channel from Stable to Nightly
- Fix Windows build detection in updater (skip PGO builds)
- Remove verbose Wayland logging from Vulkan swapchain

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-12-03 11:56:01 +10:00
parent ff3759409b
commit 45d58d53aa
5 changed files with 201 additions and 301 deletions

View File

@@ -40,22 +40,18 @@ static VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox,
bool has_fifo_relaxed) {
// Wayland-specific optimizations for low-latency presentation.
if (Settings::values.is_wayland_platform.GetValue()) {
LOG_INFO(Render_Vulkan, "Wayland platform detected. Prioritizing low-latency presentation modes.");
// On Wayland, Mailbox is strongly preferred for smooth, low-latency rendering.
if (has_mailbox) {
LOG_INFO(Render_Vulkan, "Using Mailbox presentation mode for Wayland.");
return VK_PRESENT_MODE_MAILBOX_KHR;
}
// Allow Immediate for lowest latency if the user explicitly chooses it.
if (has_imm && Settings::values.vsync_mode.GetValue() == Settings::VSyncMode::Immediate) {
LOG_INFO(Render_Vulkan, "Using Immediate presentation mode for Wayland (tearing may occur).");
return VK_PRESENT_MODE_IMMEDIATE_KHR;
}
// Fallback to standard FIFO (V-Sync) if Mailbox is not available.
LOG_INFO(Render_Vulkan, "Mailbox not available. Falling back to FIFO presentation mode for Wayland.");
return VK_PRESENT_MODE_FIFO_KHR;
}