mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
perf overlay: add missing graph vertex
And fix potential division by 0
This commit is contained in:
parent
73ca2119ed
commit
fa852c7dbe
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue