Generic Depth Ex – resolution-range filter + auto-refresh (built for PCSX2 / DX1

  • Berlint
  • Topic Author
More
1 day 19 hours ago - 1 day 18 hours ago #1 by Berlint Generic Depth Ex – resolution-range filter + auto-refresh (built for PCSX2 / DX1 was created by Berlint
Hi all,I play ENTHUSIA Professional Racing on PCSX2 (DX12 renderer) and the stock Generic Depth add-on kept losing the depth buffer: the correct buffer changes resolution between menu and race, so auto-detection kept jumping (lowest/highest vertices, reversed/not-reversed) or went dark until I re-pinned it manually.So I forked 
examples/09-depth/generic_depth_addon.cpp
 into a standalone 
generic_depth_ex.addon64
 (no ReShade recompile needed). Everything the built-in does, plus:
  • Draw stats heuristic: 
    Lowest vertices
    , 
    Lowest draw calls
     (empty stats always lose)
  • Filter by reversed depth: 
    Any / Prefer reversed / Exclude reversed
     (
    [DEPTH] FilterReversed
    )
  • Aspect ratio heuristic → 
    Match custom width and height range
    : min–max filter for width and height (
    [DEPTH] FilterResolutionMinWidth/MaxWidth/MinHeight/MaxHeight
    , 
    0
     = no limit on that side). This was the key fix for PCSX2 – e.g. min 
    3000×720
    , max 
    3400×1350
     keeps the right buffer while the height moves around.
  • Auto refresh every N frames (
    [DEPTH] AutoRefreshFrames
    , default 600, 
    0
     = off): restarts detection from scratch so a selection stuck after a scene change (menu → race) gets re-picked automatically. Skipped while a manual override checkbox is active.
Install: put 
generic_depth_ex.addon64
 next to 
ReShade.dll
 (or your 
AddonPath
) and disable the built-in one in 
ReShade.ini
, otherwise two detectors fight over the same data and it crashes on startup:
[ADDON]
DisabledAddons=Generic Depth
It shows up in the overlay as Generic Depth Ex. Source + CI build (Windows x64, generated from clean upstream, no vendored binaries): [link your TEST repo / release with the .addon64].Tested on RTX 4080, ReShade 6.8.0, PCSX2 DX12. Feedback welcome – especially if the range filter / auto-refresh helps other emulators too.

berlint-hub/Depth-buffer_extended: Extended depth buffer addon for reshade

imgur.com/a/PyWQeuA
Last edit: 1 day 18 hours ago by Berlint.

Please Log in or Create an account to join the conversation.