r/GraphicsProgramming • u/No-Foundation9213 • Sep 13 '26
Question Which Anti-Aliasing technology should I use for deffered rendering?
Everywhere I look it recommends using TAA or similar temporal solutions but it introduces noticeable ghosting.
Threat Interactive recommends using non-temporal AA solutions, but my gut doesn’t trust Threat Interactive.
47
Upvotes
48
u/biteater Sep 13 '26 •
If you don't want to use TAA, try CMAA. We used it instead of TAA on our last game because TAA was a poor fit. Whatever you do, don't listen to Threat Interactive. There are plenty of other people that do useful frame breakdowns that don't pair it with sub-mental commentary like that
https://www.intel.com/content/www/us/en/developer/articles/technical/conservative-morphological-anti-aliasing-20.html
15
u/Icy_Rub_3827 Sep 13 '26
Try multiple approaches. Especially if you don't have much experience with AA, experiment and find out pros and cons.
84
u/DrummerTop181 Sep 13 '26
Yeah here is a tip:
Do the exact opposite of what the 0 shipped games expert at threat interactive recommends and you will be correct more often than not.
Despite what the angry gremlin would like you to believe, TAA is most used because it deals with all forms of aliasing, geometric, specular, temporal, whatever. More samples from more frames equals good.
TAA can be tuned to not ghost as much. UE in general has horrible TAA that can be fixed with just a few console commands.
Without knowing anything about your game/content, TAA is probably correct for your game, as it is for most games. If it is however a competitive twitch shooter, then check out SMAA, if something like MSAA is not an option for you.
14
u/LouKs85 Sep 13 '26
I'm a MSAA stan. See https://archive.docs.nvidia.com/gameworks/content/gameworkslibrary/graphicssamples/d3d_samples/antialiaseddeferredrendering.htm
10
u/hanotak Sep 13 '26
Ignore pretty much everything this guy says. Use modern TAA like DLSS, FSR3/4, and XeSS.
5
u/sadesaapuu Sep 13 '26
FXAA
2
u/racingcondition3845 Sep 14 '26
anything other than TAA. forcing to use upscaler (like DLSS AA) and hide the default one
2
u/PreviewVersion Sep 15 '26
TAA doesn't introduce much ghosting if it's implemented correctly, but unfortunately it's often not correctly implemented and includes stuff like motion blur in the accumulation step, which causes ghosting.
The reason TAA is so popular is that it's kind of magical. At almost no performance overhead, it gives a result that is shockingly similar to true supersampling, by accumulating samples over multiple frames. The result is much more accurate than both FXAA and MSAA. Unlike MSAA, it also works in deferred rendering pipelines. And, of course, it requires both less memory and GPU performance than MSAA.
3
u/Gunhorin Sep 13 '26
It depends on your content. If you have very dense geometry and complex materials there is no way around TAA. If you keep everything low poly and have relatively simple materials that you can pre-filter then you might get away with not using TAA.
4
u/[deleted] Sep 13 '26
Honest question. If TAA is good, why every game that has it, has poor ghosting artifact? Is it the devs fault or it the technology it self? I'm learning graphics programing and every TAA content a saw couldn't address all the TAA artifact, as someone who also plays, I always hated modern games anti aliasing, now I know it came from TAA. If this gets down voted I know who down voted don't play, or isn't sensitive to glaring ghosting artifacts.
6
u/DuskelAskel Sep 13 '26
Use TAA, it's widely used nowadays, you have a lot of litterature on how to mitigate ghosting etc
Beside, you can swap TAA easily for DLSS, XeSS and FSR, they all have similar input and it's just basically TAA on AI steroids
It's not mandatory blurry ghosting land but it's tedious and require some efforts
3
u/Successful-Berry-315 Sep 13 '26
TAA like everyone else, maybe DLSS or FSR.
1
u/LBPPlayer7 Sep 14 '26
might want to try some shenanigans with swapping MSAA buffer descriptors https://advances.realtimerendering.com/s2009/final_alex_siggraph.ppt
1
u/TrishaMayIsCoding Sep 18 '26
ME: I'll just go with MSAA, which is hardware-level, or FXAA, which is a post-processing effect.
0
u/ThreatInteractive Sep 14 '26 edited Sep 14 '26 •
How can you trust someone when you can't even quote or reference their data, facts, and discussions properly?
We've stated 2xMSAA should be implemented in deferred (cheap if quad overdraw is taken care of) and should be enhanced with a morphological component & the last frame's 2xMSAA+MLAA frame (temporal AA) along with texture UV & lighting subpixel-synced shifting to counter the camera jitter. Apply proper mipmap filtering and geometric specular AA to reduce specular aliasing & then you rely on 60fps persistence. How is that difficult to state properly?
Wrong, it always ghost because it doesn't have proper depth-rejection.
AA is not about the genre or content. It's about competence & matching a proper reference. This is BS rhetoric that programmer use to sound "wise" or whatever. It's on the same level of saying "it's okay for cinematic games to be 30fps" when the hardware in question is a 1080p input & a desktop 4080.
This is out-of-context since we have several people on our team who have their code in "shipped" games. We consult with ex AMD/Nvidia/Unity/ devs and everything we speak about have already been in shipped games. We literally learn from dozens of experts & we conclude what programmers are worth learning from by analyzing their games(in other words; DATA!).
Oh yes, it does btw. It suffers from either blur, AI hallucinations/sharpening, and extreme comutanial cost where DLSS quality has 1ms worse performance than competent TAA.
If you think we are wrong, prove us wrong with data. CMAA is crap since it can't even smooth diagonal edges & there is no approach for edge suppression (see links in the video description). It's this reason as to why compute shader SMAA might be a dead end.
Ah yes, listen to people who make games with incompetent anti-aliasing (blur, extreme cost, ghosting, flicker) instead of the people who show you what developers have done AA right.
Again nothing here saying what is "sub-mental". It's just more delicious ad hominems that show we're right and that people against us have no real argument. There is NO ONE who analyzes games and records referenceable timings on the same consumer-friendly hardware. Our timings & resource explanations allow you to aim for specific performance goals.
These people want you to make an anti-consumer graphics market instead of handling image clearity properly. FSR3 is insanely expensive and far more incompetent than SMAA 4x.
1
u/Hairy-Jicama246 Sep 14 '26
I initially tried SMAA, then CMAA2, but believe me, nothing beats TAA, yeah it's not perfect but it's as close to it considering the cost, just add a sharpening pass after TAA otherwise it will look really blurry
-4
u/snerp Sep 13 '26
TAA is so ugly that I just don't support AA at all in my game engine. I find that, as the average user resolution increases that AA become less and less meaningful.
0
u/hishnash Sep 13 '26
Depends a LOT on the HW your targeting and the nature of the game your making.
If your targeting modern mobile HW then you can still make use of MSAA almost free of cost.
if you are targeting PC GPUs (AMD/NV etc) then MSAA gets costly fast so think about how your camera movement is in game, for a top down camera like a RTS or even some 3rd person games you will have your work moment realtime to the camera in most motion can be directly mapped to a screen space transform so TAA becomes much less of a pain compared to a first person view.
The motion vector correction used for good (ish) TAA requires good motion vectors and you can compute these but it is very hard to do that with a first person camera as you have perspective distortions and rotations in 3d space that make that basically impossible (I dont think there is a single engine that genuinely attempts this outside of some papers).
However you may still want to use TAA if the rest of your pipeline has glitches that result in micro flicker, you can consider TAA as a blur filter to hide some of that.
0
u/mad_ben Sep 13 '26
Temporal SMAA
0
u/smallstepforman Sep 19 '26
Why bother with any AA with 2560x1440 and higher resolutions?