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

Using VK_QUERY_TYPE_TIMESTAMP to get timing per drawcall #1991

Open
ramcn opened this issue Jan 26, 2025 · 0 comments
Open

Using VK_QUERY_TYPE_TIMESTAMP to get timing per drawcall #1991

ramcn opened this issue Jan 26, 2025 · 0 comments

Comments

@ramcn
Copy link

ramcn commented Jan 26, 2025

I am trying to use VK_QUERY_TYPE_TIMESTAMP profiling each draw call and get their timing. The summary of high-level code change is as below and attached is the patch. timestamp-patch.txt

But the time stamp values are all zero. Looking for some help to review the patch and if any suggestions on fixing the issue.

Part 1:
Create the querypool in Process_vkCreatePipelineLayout

Part2
Insert the timestamp before and after drawcall in Process_vkCmdDrawIndexed

Part3
Retrieve the timing in OverrideQueueSubmit and print them.

Problem
The timestamp values printed are all zero.

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

No branches or pull requests

1 participant