-
Notifications
You must be signed in to change notification settings - Fork 10
Gpu Time Correlation #396
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
Gpu Time Correlation #396
Conversation
f32aa6a to
f727229
Compare
a813d30 to
3d90f9f
Compare
deafb70 to
92e7b2f
Compare
|
I'm a bit confused by the PR description that says to start reviewing from 92e7b2f, it seems like there are important changes from before that point? Is this PR changes based off another pending PR? EDIT: I checked #389 and it seems like there are two additional commits in this change, so should I be reviewing beginning from 4f6b8ef? |
Sorry yes, please start at 4f6b8ef. Updated the description. This change is based on #389 |
7190a3e to
6233049
Compare
6233049 to
f2fec7f
Compare
|
I spent some time thinking about your proposed setup with
I think the issue here is step 4. If we are more sparing about clearing selection, then step 5 may not trigger a Please let me know what you think. https://doc.qt.io/qt-6/qitemselectionmodel.html#currentChanged |
706ebe4 to
53f511a
Compare
I have updated the correlation and removed m_gpu_time_correlation_from_command_hierarchy. I still think the signals should be blocked due to certain cases. For example, in the case where a gpu time node is selected after draw correlation has occurred. In that case the views would be cleared and if there is a corresponding begincmdbuffer/beginrenderpass node it would be selected, if not just the selected node would be highlighted. Without the signal blocking, the clearing of the pm4 command hierarchy selection would trigger CorrelatePm4DrawCall() which then clears the selection of the gpu time tab which is unwanted. I changed the use of booleans to QSignalBlocker on the selection models. It blocks the signal on the selection model until it falls out of scope. https://doc.qt.io/qt-6/qsignalblocker.html |
53f511a to
0d18154
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for discussing this with me, I think this PR is fine for now but we should definitely look into a refactor for the correlation stuff down the line.
bee1f0e
bee1f0e to
c7a6e12
Compare
Highlights corresponding VkBeginCommandBuffer, Frame, or VkBeginRenderPass node when item is selected in the gpu time tab.
gpu_time_correlation.mp4