On unity versions 2022.3 through to 2023.2.0b1 I am hitting an issue in URP. If a cameras targetTexture is set, it seems to recreate every RT relating to the camera. This ends up causing the game to run very slowly.
I have submitted a bug (waiting on reply) and created a small test project (included in this post)
Has anyone else seen this issue / does anyone have a potential work around?
9166547–1275695–TargetTextureIssue.zip (80.7 KB)
Does it not happen on 2021? I have also noticed some rendertexture weirdness, but I haven’t narrowed it down. I’m on 2021 and using built-in.
From what I can tell from debugging, this is specifically an URP issue that I am seeing. When running my script on 2021 it does not seem to have the performance impact.
I think it might tie in a bit with the general performance degredation I have been seeing from URP 2020 → URP 2023 but can’t say for sure.
1 Like