overlays: Performance Overlay

This commit is contained in:
VelocityRa 2018-05-30 00:38:21 +03:00 committed by kd-11
parent c2e17d04e1
commit c8d8a81ccd
7 changed files with 330 additions and 21 deletions

View file

@ -355,6 +355,16 @@ namespace rsx
if (supports_native_ui)
{
m_overlay_manager = fxm::make_always<rsx::overlays::display_manager>();
if (g_cfg.video.perf_overlay.perf_overlay_enabled)
{
auto perf_overlay = m_overlay_manager->create<rsx::overlays::perf_metrics_overlay>(false);
perf_overlay->set_detail_level(g_cfg.video.perf_overlay.level);
perf_overlay->set_update_interval(g_cfg.video.perf_overlay.update_interval);
perf_overlay->set_font_size(g_cfg.video.perf_overlay.font_size);
perf_overlay->init();
}
}
on_init_thread();