Skip to content
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

Add draw and dispatch count to timestamp validation. #91530

Merged
merged 1 commit into from
May 4, 2024

Conversation

DarioSamo
Copy link
Contributor

Fixes #91517. Tracks whether a draw or a dispatch has already occurred to trigger a validation error when capturing a timestamp.

This is necessary as compute_list_add_barrier() acts as a shortcut for ending and beginning a new compute list, which makes it impossible to use timestamps in places where it was originally correct to do so. By ignoring the validation error if no draw or dispatch has been issued inside the list yet, this fixes the false validation errors that popped up as shown in the issue.

@DarioSamo DarioSamo requested a review from a team as a code owner May 3, 2024 19:02
@clayjohn clayjohn added this to the 4.3 milestone May 3, 2024
@akien-mga akien-mga merged commit f236b9b into godotengine:master May 4, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visual Profiler logs error messages about capturing timestamps during compute list creation.
3 participants