Skip to content

Comments

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

Merged
AWoloszyn merged 2 commits intogoogle:masterfrom
sean-purcell:drawcalls-per-frame
Jul 12, 2018
Merged

Implement draw calls per frame and add it to gapit/stats#2031
AWoloszyn merged 2 commits intogoogle:masterfrom
sean-purcell:drawcalls-per-frame

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