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

On-Screen Frame Counter for vkcube #672

Open
andrew-lunarg opened this issue Jul 22, 2022 · 4 comments
Open

On-Screen Frame Counter for vkcube #672

andrew-lunarg opened this issue Jul 22, 2022 · 4 comments
Labels
enhancement New feature or request vkcube

Comments

@andrew-lunarg
Copy link

andrew-lunarg commented Jul 22, 2022

Downstream tools such as layers which display overlays are able to paint the current frame number but it would be useful at least as a check on them or to simplify the layer stack for the vkcube app to print it's idea of the current frame number into the framebuffer.
This would mostly be of interest as a visual confirmation for authors of tools which are able to take actions over specific frame ranges such as trace capture and replay that those tools selected the correct frames to operate on.
Of course the big issue would be, does the frame count start at zero or one?

@charles-lunarg
Copy link
Contributor

charles-lunarg commented Jul 22, 2022

Are you suggesting a new vulkan layer which adds a frame counter overlay?

I imagine such a layer would be a lot of work to write while only printing a single number. The monitor layer already exists in LunarG/VulkanTools, which writes the frame to the titlebar rather than the window.

I do see the utility, especially in frame capture/replay tools. A big "Frame: 20" would be helpful while stepping through a frame in order to select the start/end frames.

As a side note, Renderdoc already has such functionality built into the capture layer. Maybe any layers that need such info could print it themselves? That way the version is internally consistent.

@andrew-lunarg andrew-lunarg changed the title On-Screen Frame Counter On-Screen Frame Counter for vkcube Jul 23, 2022
@andrew-lunarg
Copy link
Author

Are you suggesting a new vulkan layer which adds a frame counter overlay?

Apologies, I have updated the title to reflect my intent. The reason for doing it in vkcube is that that app seems to be used as a sanity check in discussions of capture issues. Another layer would be more complexity while debugging.

@charles-lunarg
Copy link
Contributor

Ahh that makes way more sense.
Yes, this is something that could be added to vkcube, and would be useful for anyone running tests which use vkcube.

@charles-lunarg charles-lunarg added enhancement New feature or request vkcube labels Jan 19, 2023
@sl1pkn07
Copy link

mangohud?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vkcube
Projects
None yet
Development

No branches or pull requests

3 participants