mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
vk: Do not reset descriptors from the aux buffer when things are running slow
- The aux buffer borrows its descriptors from the lagging frame, so they are still in use until the frame completes.
This commit is contained in:
parent
e118c9e5da
commit
6e92516070
@ -1051,14 +1051,14 @@ void VKGSRender::begin()
|
|||||||
m_aux_frame_context.grab_resources(*m_current_frame);
|
m_aux_frame_context.grab_resources(*m_current_frame);
|
||||||
m_current_frame = &m_aux_frame_context;
|
m_current_frame = &m_aux_frame_context;
|
||||||
}
|
}
|
||||||
|
else if (m_current_frame->used_descriptors)
|
||||||
verify(HERE), !m_current_frame->swap_command_buffer;
|
|
||||||
if (m_current_frame->used_descriptors)
|
|
||||||
{
|
{
|
||||||
m_current_frame->descriptor_pool.reset(0);
|
m_current_frame->descriptor_pool.reset(0);
|
||||||
m_current_frame->used_descriptors = 0;
|
m_current_frame->used_descriptors = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
verify(HERE), !m_current_frame->swap_command_buffer;
|
||||||
|
|
||||||
m_current_frame->flags &= ~frame_context_state::dirty;
|
m_current_frame->flags &= ~frame_context_state::dirty;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user