mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
Vulkan: Submit fewer command buffers in deferred EFB copies mode
This commit is contained in:
parent
8e2c063d62
commit
66b6e72c5e
4 changed files with 29 additions and 6 deletions
|
@ -86,8 +86,10 @@ public:
|
|||
void OnDraw();
|
||||
|
||||
// Call after CPU access is requested.
|
||||
// This can be via EFBCache or EFB2RAM.
|
||||
void OnReadback();
|
||||
void OnCPUEFBAccess();
|
||||
|
||||
// Call after an EFB copy to RAM. If true, the current command buffer should be executed.
|
||||
void OnEFBCopyToRAM();
|
||||
|
||||
// Call at the end of a frame.
|
||||
void OnEndFrame();
|
||||
|
@ -182,6 +184,7 @@ private:
|
|||
|
||||
// CPU access tracking
|
||||
u32 m_draw_counter = 0;
|
||||
u32 m_last_efb_copy_draw_counter = 0;
|
||||
std::vector<u32> m_cpu_accesses_this_frame;
|
||||
std::vector<u32> m_scheduled_command_buffer_kicks;
|
||||
bool m_allow_background_execution = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue