mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-26 00:06:02 +00:00
perf(vkbridge): client-named descriptor sets, allocated without a round trip
Where the client keeps a pool's books and knows every layout, it names the sets itself (top bit set) and sends vkbAllocDescSets asynchronously; the server allocates the driver's sets and translates the names in dispatch wrappers (updates, template updates, binds, frees) and forgets them on pool reset/destroy. All-or-nothing; a full pool still answers OUT_OF_POOL_MEMORY. d3d11_bench 1000 draws: 1.43 -> 1.12 ms/frame (native 0.30); the only synchronous call left per frame is vkWaitSemaphores. Host suite 14/14. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S1U9H1evGNjHRQ3wRUdv5V
This commit is contained in:
1 parent
850c929967
commit
0e7f8e7170
10 files changed
+689
-289
No files matched your search
@@ -383,7 +383,7 @@ SERVER_DISPATCH_EXTRA = ['vkMapMemory', 'vkUnmapMemory', 'vkGetMemoryHostPointer
|
||||
'vkUpdateDescriptorSetWithTemplate', 'vkCmdPushDescriptorSetWithTemplateKHR']
|
||||
dispatch_cmds = sorted(set(wire_cmds) | {reg.canon_cmd(c) for c in SERVER_DISPATCH_EXTRA})
|
||||
# Wire-only helpers that are not Vulkan commands (handled by hand on both sides).
|
||||
EXTRA_WIRE = ['vkbHello', 'vkbQueryServer', 'vkbDescUpdateRaw', 'vkbPushDescRaw']
|
||||
EXTRA_WIRE = ['vkbHello', 'vkbQueryServer', 'vkbDescUpdateRaw', 'vkbPushDescRaw', 'vkbAllocDescSets']
|
||||
|
||||
# --------------------------------------------------------------------------------------------
|
||||
# Struct closure: every struct reachable from wire commands (params, members, pNext extenders).
|
||||
|
||||
Reference in new issue
Block a user