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

Implement draw calls per frame and add it to gapit/stats #2031

Merged
merged 2 commits into from
Jul 12, 2018

Conversation

sean-purcell
Copy link
Contributor

For Vulkan a dependency graph of the synchronization primitives is created and used to determine which draw calls are run when. For other APIs, it's assumed that the commands are executed synchronously. Since Vulkan annotates vkQueueSubmit with @draw_call, @executed_draw was added to indicate that a command is a draw call only when executed as a subcommand (e.g. for vkCmdDraw).

Copy link
Contributor

@AWoloszyn AWoloszyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Although you will have to rebase.

For Vulkan, it creates a dependency graph for the synchronization
primitives and uses that to determine which draw calls are complete.
For other APIs it just assumes that all commands are blocking and
executed in order.
@sean-purcell sean-purcell force-pushed the drawcalls-per-frame branch from 9a7e10e to 8a5d2c1 Compare July 12, 2018 00:40
@sean-purcell
Copy link
Contributor Author

Rebased

@AWoloszyn AWoloszyn merged commit 2268a1f into google:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants