Hello,
Bit of a weird one - anti-aliasing is working fine in-editor in the Game view, but when I build and run the game there is very obviously no anti-aliasing. And here’s where it gets weirder:
If I de-focus the window (alt-tab) I can see that anti-aliasing kicks in only when the game isn’t in focus. As soon as I re-focus on the game, anti-aliasing disappears again and its back to jagged edges. This is the weirdest part to me - clearly it hasn’t broken anti-aliasing entirely, but why would it only work when the game isn’t focused? And it still works 100% fine in editor
Any ideas or thoughts would be appreciated!
Cheers.
1 Like
Bump - anyone got an ideas on this?
Some additional info:
URP 14.0.9
Unity 2022.3
Anti-aliasing is SMAA, High Quality attached to the main camera
Camera is using Cinemachine.
Build runs in maximised window, and when tabbed out the SMAA applies perfectly, but when in focus the anti-aliasing disappears.
Welp, after long pain and debugging, I found the issue was not Unity/Game related at all - but the dumb Nvidia Image Scaling
setting on my graphics card which was enabled - when in focus, it was ‘sharpening’ the game’s visuals, and when not on focus was not being applied - hence the difference. Turning off this setting fixed my issue. I’m so annoyed, but glad it was sorted.
Leaving this comment here for anyone that has a similar issue in the future as a possible solution!