-
Notifications
You must be signed in to change notification settings - Fork 90
chore: gate shader frame times #1429
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
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: alandtse <[email protected]>
Co-authored-by: alandtse <[email protected]>
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.
@copilot Draw calls can be shown to users. It's the frame times for those shaders that should be gated.
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.
@copilot Draw calls can be shown to users. It's the frame times for those shaders that should be gated.
Co-authored-by: alandtse <[email protected]>
You're absolutely right! I've updated the implementation to allow draw calls to be shown to all users while gating only the frame time performance data behind developer mode. Changes made in commit c8b690b:
This maintains the principle that basic draw call information is useful for all users, while the potentially confusing per-shader timing measurements remain developer-only.
Updated in commit c8b690b! Draw calls are now visible to all users, with only the frame time performance columns gated behind developer mode. Regular users can see shader types and draw call counts, while detailed timing data remains developer-only. |
Automated formatting by clang-format, prettier, and other hooks. See https://pre-commit.ci for details.
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
The performance overlay was displaying detailed per-shader frame time measurements to all users, but these were intended for developer use only. Regular users may misinterpret these results, and the per-shader frame times may also be inaccurate for general consumption.
This change refines the gating approach based on feedback: draw call counts are useful general information that all users can understand, while the detailed frame time measurements should remain developer-only.
Changes Made
Settings UI Changes
Overlay Display Changes
User Experience Impact
Regular Users:
Developer Users:
This maintains the principle that basic rendering information (draw calls) should be user-facing while detailed performance timing data should be developer-only.
Fixes #1428.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.