HDRP Release Build Spam: Render Texture Dimension Mismatch Error (Depth vs. Color Buffer)

  • A* version: 5.4.6
  • Unity version: 6.1

There is a thread on the Unity forums regarding an error that gets spammed every frame in HDRP release builds only when using the A* pathfinding asset and rendering cameras to a render texture that is lower resolution than the screen size (common technique for certain art styles).

The error seems to be caused by the ALINE custom pass that is added on HDRP.

It shouldn’t be added at all in builds I think? Especially when we don’t have Show Graphs in Standalone Player enabled.

So this happens because ALINE wants to run a pass that uses both color and depth. But your render texture only provides color.

How does that even work when rendering? Will not all 3D effects be completely broken?

No, actually I think this is impossible for ALINE to handle.

HDRP seems to provide a screen-sized depth buffer, and a smaller color buffer in this case. And there’s nothing I can do about it.

I’ll make some changes to completely disable the render pass for cameras with render textures.

I believe this is a HDRP bug.

getConstrainedDepthBuffer should be handling this case and setting our depth buffer target to None.

1 Like

Yeah, HDRP potentially is bugged a bit there!

Ultimately, I would prefer if ALINE wasn’t doing anything with custom passes in our release builds. That’s a debugging thing right?

1 Like

It’s used for debugging for the A* pathfinding project, but many games use ALINE for in-game graphics too.

1 Like

Hi! Any update on this? We are using both ALINE and A* package and using ALINE for debug drawing in build for testers, but due to this error they cannot test it. Is there a workaround or patch coming?
Thanks

What version of ALINE are you on?

Hi

Unfortunately there is not much I can do to solve the issue. HDRP is a bit buggy for this case. :frowning:

1 Like

Could you give us a script define to prevent ALINE from compiling into release builds?

1 Like