1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

perf overlay: add missing graph vertex

And fix potential division by 0
This commit is contained in:
Megamouse 2021-03-01 23:02:03 +01:00
parent 73ca2119ed
commit fa852c7dbe

View File

@ -762,7 +762,12 @@ namespace rsx
auto& verts_graph = compiled_resources.draw_commands.back().verts;
const f32 x_stride = w * 1.f / m_datapoint_count;
f32 x_stride = w;
if (m_datapoint_count > 2)
{
x_stride /= (m_datapoint_count - 1);
}
const usz tail_index_offset = m_datapoints.size() - m_datapoint_count;
for (u32 i = 0; i < m_datapoint_count; ++i)