mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rsx/Qt: add option to disable the shader compilation hint
This commit is contained in:
parent
9fcba58537
commit
9d961f620b
7 changed files with 167 additions and 131 deletions
|
|
@ -1061,15 +1061,18 @@ void GLGSRender::load_program(const gl::vertex_upload_info& upload_info)
|
|||
m_shaders_cache->store(pipeline_properties, vertex_program, fragment_program);
|
||||
|
||||
//Notify the user with HUD notification
|
||||
if (!m_custom_ui)
|
||||
if (g_cfg.misc.show_shader_compilation_hint)
|
||||
{
|
||||
//Create notification but do not draw it at this time. No need to spam flip requests
|
||||
m_custom_ui = std::make_unique<rsx::overlays::shader_compile_notification>();
|
||||
}
|
||||
else if (auto casted = dynamic_cast<rsx::overlays::shader_compile_notification*>(m_custom_ui.get()))
|
||||
{
|
||||
//Probe the notification
|
||||
casted->touch();
|
||||
if (!m_custom_ui)
|
||||
{
|
||||
//Create notification but do not draw it at this time. No need to spam flip requests
|
||||
m_custom_ui = std::make_unique<rsx::overlays::shader_compile_notification>();
|
||||
}
|
||||
else if (auto casted = dynamic_cast<rsx::overlays::shader_compile_notification*>(m_custom_ui.get()))
|
||||
{
|
||||
//Probe the notification
|
||||
casted->touch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2303,15 +2303,18 @@ void VKGSRender::load_program(const vk::vertex_upload_info& vertex_info)
|
|||
m_shaders_cache->store(properties, vertex_program, fragment_program);
|
||||
|
||||
//Notify the user with HUD notification
|
||||
if (!m_custom_ui)
|
||||
if (g_cfg.misc.show_shader_compilation_hint)
|
||||
{
|
||||
//Create notification but do not draw it at this time. No need to spam flip requests
|
||||
m_custom_ui = std::make_unique<rsx::overlays::shader_compile_notification>();
|
||||
}
|
||||
else if (auto casted = dynamic_cast<rsx::overlays::shader_compile_notification*>(m_custom_ui.get()))
|
||||
{
|
||||
//Probe the notification
|
||||
casted->touch();
|
||||
if (!m_custom_ui)
|
||||
{
|
||||
//Create notification but do not draw it at this time. No need to spam flip requests
|
||||
m_custom_ui = std::make_unique<rsx::overlays::shader_compile_notification>();
|
||||
}
|
||||
else if (auto casted = dynamic_cast<rsx::overlays::shader_compile_notification*>(m_custom_ui.get()))
|
||||
{
|
||||
//Probe the notification
|
||||
casted->touch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -433,6 +433,7 @@ struct cfg_root : cfg::node
|
|||
cfg::_bool start_fullscreen{ this, "Start games in fullscreen mode" };
|
||||
cfg::_bool show_fps_in_title{ this, "Show FPS counter in window title", true};
|
||||
cfg::_bool show_trophy_popups{ this, "Show trophy popups", true};
|
||||
cfg::_bool show_shader_compilation_hint{ this, "Show shader compilation hint", true };
|
||||
cfg::_bool use_native_interface{ this, "Use native user interface", true };
|
||||
cfg::_int<1, 65535> gdb_server_port{this, "Port", 2345};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue