-
Notifications
You must be signed in to change notification settings - Fork 448
Fix semaphore reuse validation error by waiting on all fences #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
Walnut/src/Walnut/Application.cpp (1)
666-667
: Remove unnecessary blank lines.The extra whitespace doesn't follow the existing code style in the 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