Merge pull request #1646 from piepacker/jake/osd_locking_opt
optimize locking mechanism for OSD messages (deadlock-proofing)
This commit is contained in:
commit
caae06dbf4
3 changed files with 69 additions and 52 deletions
|
|
@ -2712,12 +2712,7 @@ void DrawStatsOverlay()
|
|||
|
||||
void DrawOSDMessages()
|
||||
{
|
||||
if (!g_settings.display_show_osd_messages)
|
||||
{
|
||||
// we still need to remove them from the queue
|
||||
s_host_interface->EnumerateOSDMessages([](const std::string& message, float time_remaining) { return true; });
|
||||
return;
|
||||
}
|
||||
s_host_interface->AcquirePendingOSDMessages();
|
||||
|
||||
ImGui::PushFont(g_large_font);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue