From ddf25b786994b89c7d1006fe53b3bc084b4108be Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 3 Feb 2023 03:34:09 +0300 Subject: [PATCH] rsx/overlays: Shorten notification fadeout --- rpcs3/Emu/RSX/Overlays/overlay_message.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/Overlays/overlay_message.cpp b/rpcs3/Emu/RSX/Overlays/overlay_message.cpp index 1d45cfeefb..1331b6519d 100644 --- a/rpcs3/Emu/RSX/Overlays/overlay_message.cpp +++ b/rpcs3/Emu/RSX/Overlays/overlay_message.cpp @@ -35,7 +35,7 @@ namespace rsx m_fade_out_animation.current = color4f(1.f); m_fade_out_animation.end = color4f(0.f); - m_fade_out_animation.duration = 2.f; + m_fade_out_animation.duration = 1.f; m_fade_out_animation.active = true; back_color = color4f(0.25f, 0.25f, 0.25f, 0.85f); @@ -120,7 +120,7 @@ namespace rsx { m_fade_in_animation.update(rsx::get_current_renderer()->vblank_count); } - else if (time + 2'000'000 > m_expiration_time) + else if (time + u64(m_fade_out_animation.duration * 1'000'000) > m_expiration_time) { m_fade_out_animation.update(rsx::get_current_renderer()->vblank_count); } @@ -230,8 +230,6 @@ namespace rsx return check_list(m_ready_queue_top) || check_list(m_visible_items_top); case message_pin_location::bottom: return check_list(m_ready_queue_bottom) || check_list(m_visible_items_bottom); - default: - fmt::throw_exception("Unreachable"); } }