mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
perf_overlays: only compile dirty graphs
This should give a small performance boost
This commit is contained in:
parent
98b668b3a8
commit
befd38d9ae
1 changed files with 13 additions and 9 deletions
|
@ -593,16 +593,16 @@ namespace rsx
|
||||||
// Only force once
|
// Only force once
|
||||||
m_force_update = false;
|
m_force_update = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (m_framerate_graph_enabled)
|
if (m_framerate_graph_enabled)
|
||||||
{
|
{
|
||||||
m_fps_graph.update();
|
m_fps_graph.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_frametime_graph_enabled)
|
if (m_frametime_graph_enabled)
|
||||||
{
|
{
|
||||||
m_frametime_graph.update();
|
m_frametime_graph.update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,7 +811,11 @@ namespace rsx
|
||||||
|
|
||||||
compiled_resource& graph::get_compiled()
|
compiled_resource& graph::get_compiled()
|
||||||
{
|
{
|
||||||
refresh();
|
if (is_compiled)
|
||||||
|
{
|
||||||
|
return compiled_resources;
|
||||||
|
}
|
||||||
|
|
||||||
overlay_element::get_compiled();
|
overlay_element::get_compiled();
|
||||||
|
|
||||||
const f32 normalize_factor = f32(h) / (m_max != 0.0f ? m_max : 1.0f);
|
const f32 normalize_factor = f32(h) / (m_max != 0.0f ? m_max : 1.0f);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue