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

monitor layer: problems after destroying a window #1590

Open
tracyliving opened this issue Aug 13, 2021 · 0 comments
Open

monitor layer: problems after destroying a window #1590

tracyliving opened this issue Aug 13, 2021 · 0 comments
Labels
Project - monitor layer Monitor Layer Issues

Comments

@tracyliving
Copy link

tracyliving commented Aug 13, 2021

Hello, I have a special use case to create a window and destroy it at runtime.
To be specific, it looks like:

xcb_create_window creates 'window 0'
vkCreateXcbSurfaceKHR creates 'surface 0'
...
xcb_create_window creates 'window 1'
vkCreateXcbSurfaceKHR creates 'surface 1'
..
vkDestroySurfaceKHR destroys 'surface 1'
xcb_destroy_window destroyes 'window 1'
...

Currently, the monitor layer always prints the FPS counter to the window last seen in the vkCreateXcbSurfaceKHR. As a result, it continues to print the FPS counter to the 'window 1', however, which has been destroyed already.
It might be better to remember the association between the surface and the window (push/pop after vkCreateXcbSurfaceKHR/vkDestroySurfaceKHR ), so the FPS counter can be printed to a valid window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project - monitor layer Monitor Layer Issues
Projects
None yet
Development

No branches or pull requests

2 participants