mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 07:31:06 -04:00
ImGui_ImplVulkan_CreateFontsTexture checked no result: with the video memory full, the atlas a window size change makes again got no memory, its copy still went out, and the GPU wrote to address 0 (issue #165, device lost after Alt+Tab). It also submitted and waited on the game's queue itself, and when ImGui_ImplVulkan_NewFrame ran it (whenever the back end held no atlas) that took no queue lock, beside the game's own submissions; the crashes in AMD's driver inside the menu's drawing (issue #230) fit that. ui/menu_art.cpp menu_font_upload now uploads the atlas as the menu's art is uploaded: VMA picks the memory (device-local, else what is left), the copy goes in the runtime's upload batch under the queue lock, every step is checked, and the previous atlas is freed only once the new one is on the GPU and the queue is idle. The menu no longer calls ImGui_ImplVulkan_NewFrame, whose only work was that upload. The back end's VkResults are checked and logged (menu_vk_check), a texture whose descriptor set was not allocated is not drawn with, and the descriptor pool holds 32 sets, room for two atlases while one replaces the other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 KiB
10 KiB