Skip to content

Commit bf22081

Browse files
committed
Enable async shader compile by default
1 parent b52b676 commit bf22081

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "Cafe/HW/Latte/Core/LatteBufferCache.h"
99
#include "Cafe/HW/Latte/Core/LattePerformanceMonitor.h"
10+
#include "Cafe/HW/Latte/Core/LatteOverlay.h"
1011

1112
#include "Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompiler.h"
1213

@@ -29,6 +30,7 @@
2930
#include <glslang/Public/ShaderLang.h>
3031

3132
#include <wx/msgdlg.h>
33+
#include <wx/intl.h> // for localization
3234

3335
#ifndef VK_API_VERSION_MAJOR
3436
#define VK_API_VERSION_MAJOR(version) (((uint32_t)(version) >> 22) & 0x7FU)
@@ -285,7 +287,7 @@ void VulkanRenderer::GetDeviceFeatures()
285287
cemuLog_log(LogType::Force, "VK_EXT_pipeline_creation_cache_control not supported. Cannot use asynchronous shader and pipeline compilation");
286288
// if async shader compilation is enabled show warning message
287289
if (GetConfig().async_compile)
288-
wxMessageBox(_("The currently installed graphics driver does not support the Vulkan extension necessary for asynchronous shader compilation. Asynchronous compilation cannot be used.\n \nRequired extension: VK_EXT_pipeline_creation_cache_control\n\nInstalling the latest graphics driver may solve this error."), _("Information"), wxOK | wxCENTRE);
290+
LatteOverlay_pushNotification(_("Async shader compile is enabled but not supported by the graphics driver\nCemu will use synchronous compilation which can cause additional stutter").utf8_string(), 10000);
289291
}
290292
if (!m_featureControl.deviceExtensions.custom_border_color_without_format)
291293
{

src/config/CemuConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ struct CemuConfig
441441
ConfigValue<int> vsync{ 0 }; // 0 = off, 1+ = on depending on render backend
442442
ConfigValue<bool> gx2drawdone_sync {true};
443443
ConfigValue<bool> render_upside_down{ false };
444-
ConfigValue<bool> async_compile{ false };
444+
ConfigValue<bool> async_compile{ true };
445445

446446
ConfigValue<bool> vk_accurate_barriers{ true };
447447

0 commit comments

Comments
 (0)