mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #113] runtime/vulkan: unified per-frame perf pack (bindless 0-alloc, view/descriptor/format tables) #167
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/113
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9846📝 Commits (4)
8dd4565gfx10_descriptors: index the format table instead of scanning it189a8bdvulkan_backend: hash the attachment-view cache and index it by image954fbdad3d12_vulkan_device: hash the border colour table and key replaced views by addressf00b505vulkan_bindless: pending writes in flat per-binding arrays, free index by memchr📊 Changes
12 files changed (+1850 additions, -65 deletions)
View changed files
📝
runtime/CMakeLists.txt(+18 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+11 -28)➕
runtime/src/descriptor_tables.h(+140 -0)📝
runtime/src/gfx10_descriptors.h(+56 -5)➕
runtime/src/image_view_cache.h(+96 -0)📝
runtime/src/vulkan_backend.h(+11 -14)📝
runtime/src/vulkan_bindless.h(+23 -17)➕
runtime/test/bindless_queue_test.cpp(+650 -0)➕
runtime/test/descriptor_tables_test.cpp(+326 -0)📝
runtime/test/gfx10_descriptors_test.cpp(+38 -1)➕
runtime/test/gfx10_format_bench.cpp(+232 -0)➕
runtime/test/image_view_cache_test.cpp(+249 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Consolidated per-frame Vulkan runtime performance pack replacing closed PRs
#8021,#8042,#8159, and#8180(all previously independently verified across multiple GPUs including RX 9070 XT, RX 7800 XT, RX 6800, RTX 5070 Ti, RTX 5070, RTX 3070 Ti, RTX 2080, and Intel UHD 770).What this combines
#8021): compile-time indexed lookup instead of linear scan (~20x faster:111 -> 5 ns).#8042):2x–4.5xfaster lookup and up to460xfaster image destroy (0.67 ms -> 3.4 us).#8159): removes O(N) scans underdescriptor_mutex(5x–62.5xborder colors,3.3x–22.1xreplaced views).memchrfree-index scan invulkan_bindless.h(was#8180):0heap allocations per frame (was 2,811),4xfaster (206 -> 48 us/frame).Testing
-DLEONIDA_BUILD_WINDOWS_RUNTIME=OFF, RelWithDebInfo): 158/158 targets, 0 warnings.gfx10_tiling,image_view_cache,descriptor_tables,bindless_sizing,bindless_queue,gfx10_descriptors,gfx10_format_bench_selftest); 73/74 full CTest pass (the only failure isvk_queue_query_sync, which fails identically on bareorigin/mainon RX 6800).git diff --checkandscripts/check_no_game_data.pyclean. No game data used.AI-assisted (Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.