rsx: Get rid of an allocation in analyse_vertex_data that adds about 5% overhead.

This method is called many thousands of times per frame and that single allocation introduces a small perf hit.
Just get rid of it, it doesn't improve anything to have it there.
This commit is contained in:
kd-11 2022-09-08 00:02:52 +03:00 committed by kd-11
parent cd53bb7eff
commit f43824762a
6 changed files with 57 additions and 40 deletions

View file

@ -467,7 +467,7 @@ void GLGSRender::emit_geometry(u32 sub_index)
for (auto& info : m_vertex_layout.interleaved_blocks)
{
const auto vertex_base_offset = rsx::method_registers.vertex_data_base_offset();
info.real_offset_address = rsx::get_address(rsx::get_vertex_offset_from_base(vertex_base_offset, info.base_offset), info.memory_location);
info->real_offset_address = rsx::get_address(rsx::get_vertex_offset_from_base(vertex_base_offset, info->base_offset), info->memory_location);
}
}