MSAA not working in builds

Hello!

I have a problem in a project with using MSAA. For context, the project contains different hairstyles that are created using Unity’s strand-based hair demo package.

The problem:
I want to use msaa (e.g. x8) with the HDRP for Windows to improve the looks of the hair.
Msaa seems to work in the editor in play mode, but in builds the effect is gone.
We use Unity 2023.2.8.

Here is a screenshot of the hair in the editor:


And in the build:

A summary of what I’ve done so far:

  • HDRP Asset “Lit Shader Mode” set to Both or Forward only, in default frame settings it is set to forward, MSAA within forward set to “from HDRP Asset”. Scene Camera uses no custom frame settings.
  • Tried more recent Unity Version (6000.0.18)
  • Disabled by hand: SSR, Screen Spaced Shadows, Temporal Antialiasing (I use FXAA)
  • Disabled Global Illumination Screen Space (actually necessary, since otherwise this error occurs: “CopyTexture called with mismatching sample count per pixel (src 8 dst 1).
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)”)
  • Tried disabling post-processing
  • Tried default HDRP Asset and Volume Profile with only msaa relevant changes
  • New Project with HDRP Assets & Profiles of the old project → works in build (why?)
    • disabled msaa → still msaa in build (why?)
  • Tried building to new folders, tried deleting library folder
  • Tried enabling msaa only on the avater/hair rendering camera

I’m happy about any ideas and suggestions, thank you.