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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue