rsx/Qt: add option to disable the shader compilation hint

This commit is contained in:
Megamouse 2018-03-20 02:00:49 +01:00 committed by Ivan
parent 9fcba58537
commit 9d961f620b
7 changed files with 167 additions and 131 deletions

View file

@ -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();
}
}
}