• Show log

    Commit

  • Hash : 34c8778b
    Author : Roman Lavrov
    Date : 2023-09-26T13:45:06

    Use atomic counters early in perf warning macros
    
    Before this CL, snprintf was called repeatedly to format the warning
    message which was then discarded after 4 logs. snprintf showed up in
    profiling at ~2% and this CL appears to yield an ~8% power
    improvement in one of the traces (egypt_1500).
    
    A mutex was previously used to avoid the race condition on the static
    sRepeatCount variable. This CL avoids the need for that by using static
    atomics instead.
    
    Also updated the Debug macro to use the VK macro vararg approach so that
    formatting only happens when the message is actually logged.
    
    Bug: b/302112423
    Change-Id: Ia8a18361cfb5a9f2aa19ff939499754ba861efb7
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4886388
    Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: Charlie Lao <cclao@google.com>
    Commit-Queue: Roman Lavrov <romanl@google.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags