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

Handle multiGPU Passes in ImGui Timestamp View #18500

Merged

Conversation

martinwinter-huawei
Copy link
Contributor

@martinwinter-huawei martinwinter-huawei commented Nov 22, 2024

What does this PR do?

This PR improves the handling of multi-GPU passes in the GPU Profiler -> TimestampView.

It does the following:

  • Report total frame duration per device
  • Show one timeline per device vertically
  • Split the pass runtime view per device horizontally

ImguiMultiGPU

One remaining issue is that multiple timelines are drawn and scaled independently at the moment.
Since there currently is no way to match/synchronize timestamps between devices, each GPU scales its own timeline to the full length of the window, instead of scaling all passes the same and shifting them along as needed.
This would require something like calibrated timestamps to handle better.
In the meantime, timelines are internally consistent but cannot be directly compared with one another.

How was this PR tested?

Tested with the MultiGPU RPI sample in ASV.

@martinwinter-huawei martinwinter-huawei self-assigned this Nov 22, 2024
@martinwinter-huawei martinwinter-huawei force-pushed the gpuprofiler_multigpu branch 2 times, most recently from cc913cc to e609b9d Compare November 22, 2024 18:19
@martinwinter-huawei martinwinter-huawei changed the title [WIP] Handle multiGPU Passes in ImGui Timestamp View Handle multiGPU Passes in ImGui Timestamp View Nov 22, 2024
@martinwinter-huawei martinwinter-huawei marked this pull request as ready for review November 22, 2024 18:50
@martinwinter-huawei martinwinter-huawei requested review from a team as code owners November 22, 2024 18:50
@byrcolin byrcolin added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Nov 26, 2024
@jhmueller-huawei jhmueller-huawei added sig/graphics-audio Categorizes an issue or PR as relevant to SIG graphics-audio. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Dec 4, 2024
@galibzon
Copy link
Contributor

galibzon commented Dec 5, 2024

@manon-traverse FYI.

@jhmueller-huawei jhmueller-huawei merged commit 9fc894c into o3de:development Dec 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/graphics-audio Categorizes an issue or PR as relevant to SIG graphics-audio.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants