mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
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:
parent
8ccaabb502
commit
af1b13550b
2 changed files with 5 additions and 17 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue