Commit Graph

6 Commits

Author SHA1 Message Date
ubuntu1804 fdb25ed816 Optimize geometry updates and cache text buffers
Update geometry only periodically (every 5 frames) and reduce logging
frequency. Destroy and null out old buffers before recreating them to
avoid double frees and leaks.

Cache lastRenderedText and only rebuild text vertex/index buffers when
the content or size changes; reuse buffers across frames and clean them
up on rebuild or shutdown.

Replace vkDeviceWaitIdle in copyBuffer with fence-based wait (longer
timeout) and remove noisy debug prints. Added members and cleanup for
text buffers and index count
2025-11-11 09:24:32 +08:00
ubuntu1804 95b83d5ed3 Support triple buffering and improve buffer sync
Increase MAX_FRAMES_IN_FLIGHT to 3 and cap swapchain images accordingly
Replace vkDeviceWaitIdle with per-copy fence, extend wait timeout and
add diagnostic logging and counters Add stronger error logging and
cleanup on vertex/index buffer creation and copy failures; reset handles
to VK_NULL_HANDLE on failure
2025-11-11 09:14:14 +08:00
ubuntu1804 2f16c0b5e4 add msaa 2025-11-10 21:43:42 +08:00
ubuntu1804 4b04a1adf7 调整文字大小和位置 2025-11-10 21:01:35 +08:00
ubuntu1804 e8b9571d25 VulkanWidget 渲染问题完全解决 2025-11-10 17:01:06 +08:00
ubuntu1804 5dea0554b3 Add VulkanRenderer, shaders, and build scripts 2025-11-10 15:13:04 +08:00