Announcement

Collapse
No announcement yet.

RADV Driver Enables Command Buffer Chaining, Boosts Dota 2 Performance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RADV Driver Enables Command Buffer Chaining, Boosts Dota 2 Performance

    Phoronix: RADV Driver Enables Command Buffer Chaining, Boosts Dota 2 Performance

    The RADV Radeon Vulkan driver has now enabled command buffer chaining "batchchain" by default in the name of performance...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Code:
    ws->batchchain = !!(perftest_flags & RADV_PERFTEST_BATCHCHAIN)
    I'm sure there's a reason for the double negation and stuff but it made me giggle.

    Comment


    • #3
      Originally posted by andrebrait View Post
      double negation
      Is usually used as a type cast to boolean

      Comment


      • #4
        Originally posted by andrei_me View Post

        Is usually used as a type cast to boolean
        Exactly, it's a way to cast to boolean.
        ## VGA ##
        AMD: X1950XTX, HD3870, HD5870
        Intel: GMA45, HD3000 (Core i5 2500K)

        Comment


        • #5
          Everytime I see a bang bang in code this music plays in my brain:

          Comment


          • #6
            Originally posted by andrebrait View Post
            double negation
            it is !=0 but one char shorter

            Comment


            • #7
              Originally posted by andrei_me View Post
              Is usually used as a type cast to boolean
              Originally posted by darkbasic View Post
              Exactly, it's a way to cast to boolean.
              no, it is not a cast to boolean. you don't need to do anything to cast to boolean, just return value or assign it to boolean. either for c++ bool, or for c _Bool.
              it is a conversion to integer with value of either 0 or 1 which is an eye-bleeding garbage here. it is an artefact from prehistoric world without booleans
              Last edited by pal666; 04 September 2017, 05:36 PM.

              Comment


              • #8
                Pretty sure Bas wrote those patches Michael

                Comment


                • #9
                  Originally posted by pal666 View Post

                  no, it is not a cast to boolean. you don't need to do anything to cast to boolean, just return value or assign it to boolean. either for c++ bool, or for c _Bool.
                  it is a conversion to integer with value of either 0 or 1 which is an eye-bleeding garbage here. it is an artefact from prehistoric world without booleans
                  It's still a good habit because you never know when someone is going to be stupid and write `value == TRUE` which will only match if an integer is actually set to `1`. And you don't always know if a field is a `bool` or an `int`.

                  Comment


                  • #10
                    Originally posted by illwieckz View Post
                    Everytime I see a bang bang in code this music plays in my brain:

                    Someone must make a geek parody version of it about that code stuff in Weird Al Yankovik style

                    Comment

                    Working...
                    X