Checkerboard Rendering in Dark Souls Remastered

Discussion in 'Console Technology' started by Globalisateur, Nov 16, 2021.

  1. Globalisateur

    Globalisateur Globby
    Veteran Subscriber

    Joined:
    Nov 6, 2013
    Messages:
    4,592
    Likes Received:
    3,412
    Location:
    France
    This is a summary of the talk about the checkerboard rendering used in Dark Souls Remastered on Pro and XBX. It's a work done by QLOC. It's a very interesting document about CBR rendering and a rare source of information about some specific hardware existing on Playstation Pro (Neo): ID Buffer and Gradient Adjust.

    https://www.slideshare.net/QLOC/checkerboardrendering-in-dark-souls-remastered

    Their tech is based on Pro reference code and they improved it. DS remastered runs at 1800p on Pro and XBX using CBR. Their CBR is so good few (or none?) knew it was CBR back then.

    When they reference specific hardware support they use 2 colors, blue and green. I assume based on the names of some of the functions the blue is for Pro and the green for XBX.

    We can see several references at Pro custom ID buffer used in their tech. Here setObjectId is in blue.
    setObjectId (and others like setObjectIdMode) is a function in Sony SDK to use ID Buffer on Pro. On XBX they use others ways (custom shader) to set those values. They probably do it manually (see @jlippo post) even if it's probably a bit more expensive as Xbox lacks dedicated hardware for that.

    Frame 12:
    [​IMG]

    Color pass:
    They use another custom function on Pro: setTextureGradientFactors (or gradient adjust) which is meant to improve the aspect of the texture, making it sharper in the process. On XBX they do it manually on the shader. We know Pro has specific hardware support for Gradient Adjust compared to notably PS4.

    Here we can see the improvements.

    Frame 23 without gradient adjust:
    [​IMG]


    Frame 24 with gradient adjust:
    [​IMG]

    Interestingly when we compare the results in the game we can actually see some textures looking quite sharper on Pro. That could be explained by the gradient adjust differences of implementation, using custom hadware on Pro and done manually in the shaders on XBX.

    Using Digital Foundry article, Pro, XB1, XBX. Textures are sharper on Pro at the same resolution (shoulder and grass):
    [​IMG]
    [​IMG]

    Frame 36 checkerboard resolve, spatial and temporal components of CBR:
    Spatial Component, frame 37:
    [​IMG]

    Results of CBR with or without IDs:
    Frame 38, without and with IDs:
    [​IMG]

    Frame 45: we can better see how IDs remove many CBR artefacts making it incredibly close to native rendering.
    [​IMG]

    Temporal component, frame 64:
    [​IMG]

    Removing (or reducing) ghosting using Object Ids, frame 70:

    [
    quote]Uncharted 4 uses stencil to distinguish objects[/quote]

    [​IMG]

    Frame 71 without Object Ids:
    [​IMG]
    Frame 72 with Object Ids:

    [​IMG]

    Results 1800p, frame 77:
    [​IMG]
    1800p with CBR, frame 78:
    [​IMG]

    CBR cost: it's actually quite expensive, only 27% saved compared to native. Interestingly the percentage highly depends on resolution. Here 1800p CBR being the most efficient.

    Frame 82:
    [​IMG]

    Checkerboard rendering when done right (notably using ID Buffer) can have oustanding results and with very few artefacts. But it's actually an expensive tech and must be used only in some resolutions as the cost is not linear with the resolution. We also learn the custom hardware stuff on Pro (ID Buffer and Gradient Adjust) can be done manually on Xbox even if it's probably more expensive as it's AFAIK done without dedicated hardware.
     
    #1 Globalisateur, Nov 16, 2021
    Last edited: Nov 16, 2021
    Rootax, Pete, techuse and 17 others like this.
  2. iroboto

    iroboto Daft Funk
    Legend Subscriber

    Joined:
    Mar 6, 2014
    Messages:
    14,834
    Likes Received:
    18,634
    Location:
    The North
    great post
     
  3. davis.anthony

    Regular

    Joined:
    Aug 22, 2021
    Messages:
    424
    Likes Received:
    148
    I still think Days Gone has the best CBR in any game, it's so good.
     
  4. cwjs

    Regular

    Joined:
    Nov 17, 2020
    Messages:
    373
    Likes Received:
    733
    Great post -- what clip was the grass side by side cut from?
     
  5. Globalisateur

    Globalisateur Globby
    Veteran Subscriber

    Joined:
    Nov 6, 2013
    Messages:
    4,592
    Likes Received:
    3,412
    Location:
    France
    davis.anthony likes this.
  6. Remij

    Regular

    Joined:
    May 3, 2008
    Messages:
    684
    Likes Received:
    1,267
    Yea, I was actually surprised to find out that Dark Souls Remastered was using checkerboard rendering. They did a really amazing job with it.
     
    jlippo and Globalisateur like this.
  7. SumoSaki

    Newcomer

    Joined:
    Jul 4, 2014
    Messages:
    130
    Likes Received:
    65
    Shadow of The Tomb Raider is also very good on PS5 now 4K CB 60FPS.
    Same for God Of War too.
     
  8. davis.anthony

    Regular

    Joined:
    Aug 22, 2021
    Messages:
    424
    Likes Received:
    148
    Seems PS5 does have Pro's ID buffer after watching Cerny's latest PS5 video.
     
  9. Shifty Geezer

    Shifty Geezer uber-Troll!
    Moderator Legend

    Joined:
    Dec 7, 2004
    Messages:
    44,106
    Likes Received:
    16,898
    Location:
    Under my bridge
  10. davis.anthony

    Regular

    Joined:
    Aug 22, 2021
    Messages:
    424
    Likes Received:
    148
    Here

    "We made a lot of customization's to the GPU, some of them are smaller, like when PS5 crashes it's a lot easier to track down the source of that crash then it was on PS4. Some of those customization's are giant, like backwards compatibility with PS4"

    "Backwards compatibility is difficult because there are hundreds of essential GPU features in PS4 that developers reply on, and for their games to run flawlessly on PS5 each of those features needs to be properly included"

    I take that as they have indeed added the ID buffer to PS5 so that BC worked properly.
     
  11. Johnny Awesome

    Veteran

    Joined:
    Feb 18, 2002
    Messages:
    2,806
    Likes Received:
    737
    Location:
    Windsor, ON
    That's a leap IMO.
     
    milk likes this.
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...