Fix semaphore reuse validation error by waiting on all fences#90
Fix semaphore reuse validation error by waiting on all fences#900xKitKoi wants to merge 2 commits intoStudioCherno:masterfrom
Conversation
WalkthroughA synchronization step was added after the main frame rendering in the application's run loop. The code now waits for all Vulkan fences associated with each frame of the main window to ensure GPU operations are complete before continuing. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Oh this should also fix #81 |
While creating my own application with Walnut, my terminal was spammed with a Vulkan Validation Error:
After some debugging line by line, digging into the Application.cpp file in the Application::Run() function I found the lines that triggered my console to be spammed
When calling vkAcquireNextImageKHR, you pass in a semaphore and it expects that this semaphore is not already in use, meaning it is still pending in some queue operation. This violates the Vulkan spec.
A simple fix is to just wait for the semaphore to finish:
This is also my first ever open source contribution so be brutal