mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 23:49:56 -04:00
Mesh emulation: cut the part at a pass's first emulated draw instead of splitting it, so the texture pool set stays.
A split hands the part to the queue and seals its texture pool set; the next part takes another set of the ring and refreshes its entries first. The splits for the mesh stages made 5 parts a submission and 6 set switches a frame at 2.3 ms of replay each (Kokiri Forest on 0.7.1, an RX 580: replay 32-38 ms a frame, the replay thread blocked on fences 26-35% of the time, 79 waits for a set the GPU still used). A cut (vk_sync_cut) ends the command buffer without submitting it: the part and its pre-pass command buffer wait in a chain and go to the queue, in order, with the next part that does, so the set is the same one throughout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -142,6 +142,8 @@ void vk_exec_barrier(VkExec *ex);
|
||||
void vk_exec_barrier_dispatch(VkExec *ex);
|
||||
// NX2NAVI_TRACE=perf, every 600 frames: the barriers per frame by kind.
|
||||
void vk_exec_barrier_log(uint64_t frame);
|
||||
// Ends the open pass and the part without handing it to the queue (vk_sync_cut): the next draw begins the pass again
|
||||
// at the start of a new command buffer, which the part's pre-pass command buffer precedes. 0 when no more can wait.
|
||||
int vk_exec_split_now(VkExec *ex);
|
||||
// vk_texture.c (NX2NAVI_TEX_ALIAS): commands that must run at the replay's current position. vk_exec_inline_begin returns
|
||||
// the command buffer being recorded after a full barrier (an open pass is ended; *reopen says so), or VK_NULL_HANDLE
|
||||
|
||||
Reference in New Issue
Block a user