rsx/vk: More optimizations

- Do not bother rechecking the dirty sampler pool for hits. Its faster to create new sampler than to search the pool
- Reserve some memory on vertex layout struct to reduce reallocation penalty
This commit is contained in:
kd-11 2018-02-21 21:31:08 +03:00
parent 8ccaabb502
commit af1b13550b
2 changed files with 5 additions and 17 deletions

View file

@ -1264,6 +1264,7 @@ namespace rsx
if (state.current_draw_clause.command == rsx::draw_command::inlined_array)
{
vertex_input_layout result = {};
result.interleaved_blocks.reserve(8);
interleaved_range_info info = {};
info.interleaved = true;
@ -1288,6 +1289,8 @@ namespace rsx
const u32 frequency_divider_mask = rsx::method_registers.frequency_divider_operation_mask();
vertex_input_layout result = {};
result.interleaved_blocks.reserve(8);
result.referenced_registers.reserve(4);
for (u8 index = 0; index < rsx::limits::vertex_count; ++index)
{