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

[Merged by Bors] - Introduce detailed_trace macro, use in TrackedRenderPass #7639

Closed
wants to merge 1 commit into from

Commits on Feb 12, 2023

  1. introduce detailed_trace macro, use in TrackedRenderPass

    Profiles show that in extremely hot loops, like the draw loops in the
    renderer, invoking the trace! macro has noticeable overhead, even if the
    trace log level is not enabled.
    
    Solve this by introduce a 'wrapper' detailed_trace macro around trace,
    that wraps the trace! log statement in a trivially false if statement
    unless a cargo feature is enabled
    danchia committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    da6c2fb View commit details
    Browse the repository at this point in the history