-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Diagnostics Visual Profiler Improvements #4388
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
Diagnostics Visual Profiler Improvements #4388
Conversation
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.
Looks good! Looks like there's a merge conflict though.
…RealityToolkit-Unity into mrtk_development_visual_profiler
Thank you Kurtis! Just fixed the merge. |
/azp run mrtk_pr |
Azure Pipelines successfully started running 1 pipeline(s). |
/// </summary> | ||
bool ShowProfiler { get; set; } | ||
|
||
/// <summary> |
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.
@wiwei FYI this is a breaking change technically, since anybody implementing the MRDiagnosticsSystem would now need to implement these two properties. I think it's fine, but we should add it to the release notes.
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.
Nice catch, thank you Julia!
Overview
The Visual Profiler now supports user defined colors for performance thresholds on the frame info panel. Defaults to green when at 95%+ of the target framerate, yellow when at 75%+ of the target framerate, and red otherwise. (A request from multiple users.)
Portions of the profiler can be dynamically toggled on/off, such as the frame info panel and memory stats.
Verification
Verify the Visual Profiler displays in editor and player .
Fixes: #4414