NVidia Anti-Aliasing Guide (updated)

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by Cyberdyne, Jan 29, 2012.

  1. KainXVIII

    KainXVIII Active Member

    Messages:
    72
    Likes Received:
    0
    GPU:
    MSI GTX 970
  2. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Yep definitely working.
    Added that to the document.
    Can you check if MSAA works too? Probably does with that flag. And mind adding an A/B comparison with all 3 to that post? (4721#) I used that post as reference.

    Thanks for checking! Maybe some day we'll have all DX8/9 games tested. (Current list even with extra info cells is at 693!)
    Worth the effort even on a modern GPU it can still be taxing on performance. And with as much power as they need to push RT and modern high res rendering this allows more headroom for forced AA at high resolutions that can be an extra benefit of a high end current GPU that makes a huge visual difference. (Even 2xSGSSAA at 4k can look incredibly good and make a big visual difference compared to no AA or just MSAA)
     
    Last edited: Sep 19, 2020
    KainXVIII likes this.
  3. R1ddick

    R1ddick New Member

    Messages:
    3
    Likes Received:
    0
    GPU:
    GTX 1070Ti
    Hey there!
    Does anyone knows any working flag to force AA in League of Legends?
    This is a DX9 game but there are only low quality FXAA available via the video settings
    P.S. I've tried to force SGSSAA with such flags as : 0x000000C1, 0x080002C1 and 0x080022C1 but none of them seems to be working
     
  4. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    I'll download and give it a try
     
    R1ddick likes this.

  5. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Yeah works fine.

    League of Legends
    Make sure you disable the Anti Aliasing Behavior Flag (By default set to 0x00000005 which won't allow you to force AA)
    0x084012C1 works fine.
    No AA http://u.cubeupload.com/MrBonk/LeagueofLegends20200.png
    8xSGSSAA http://u.cubeupload.com/MrBonk/c88LeagueofLegends20200.png

    Few other screens
    http://u.cubeupload.com/MrBonk/f38LeagueofLegends20200.png
    http://u.cubeupload.com/MrBonk/182LeagueofLegends20200.png
    http://u.cubeupload.com/MrBonk/726LeagueofLegends20200.png
     
    R1ddick likes this.
  6. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    I've also discovered now with the NA release of Phantasy Star Online 2 that forced SGSSAA works well and performs well. As long as you use the "Standard Shader" setting. You occasionally get lines through hair but in general gameplay you can't see them much, and you can hide them with accessories.
    Using the high res shader works somewhat but breaks shadow map rendering and also has severe glitches on hair depending on the scene. (Which is a shame.) Futzing with all the settings doesn't change anything.
    Still the game looks nice with the Standard shader and man does it clean up well as there is still a ton of aliasing with the standard shader.

    0x004010C1 SGSSAA
    Use the AA fix
    HBAO+ still works with 0x00000034 although it can get a little glitchy/cloudy here and there.

    No AA http://u.cubeupload.com/MrBonk/NoAAstandard.png http://u.cubeupload.com/MrBonk/1fbNoAAstandard.png http://u.cubeupload.com/MrBonk/pso22020082616245299.png
    8xSGSSAA http://u.cubeupload.com/MrBonk/8xSGSSAAStandard.png http://u.cubeupload.com/MrBonk/5448xSGSSAAStandard.png http://u.cubeupload.com/MrBonk/pso22020082616253746.png http://u.cubeupload.com/MrBonk/34HBAO8xSG11.png
    8xSGSSAA & HBAO+ http://u.cubeupload.com/MrBonk/8xSGSSAAStandardHBAO.png http://u.cubeupload.com/MrBonk/34HBAO8xSG12.png


    A few screens
    http://u.cubeupload.com/MrBonk/pso22020091823535048.png
    http://u.cubeupload.com/MrBonk/pso22020091823544493.png
    http://u.cubeupload.com/MrBonk/pso22020091900023710.png
    8xSG
     
  7. KainXVIII

    KainXVIII Active Member

    Messages:
    72
    Likes Received:
    0
    GPU:
    MSI GTX 970
    Added, very subtle difference between msaa and sgssaa..
     
  8. R1ddick

    R1ddick New Member

    Messages:
    3
    Likes Received:
    0
    GPU:
    GTX 1070Ti
    Yeah, your flag worked just perfectly! Many thanks
    As for behaviour flag - yes, I know that it should be set to none to force aa, but my previous flags didnt work anyways until you found the proper one
    Maybe it's also possible to force HBAO+ in LoL somehow?
     
  9. OrdinaryOregano

    OrdinaryOregano Master Guru

    Messages:
    433
    Likes Received:
    5
    GPU:
    MSI 1080 Gaming X
    Just want to mention that whoever is in charge of the AA doc on google to please add "Use AA fix" for Prince of Persia Warrior Within as it is not mentioned there and without it there are black lines, same as Sands of Time(it's mentioned for SoT).
     
    Tizoc likes this.
  10. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Thank you, I will add that. That title was tested originally before the AA fix existed I think. I appreciate you mentioning it.
     

  11. Tizoc

    Tizoc Active Member

    Messages:
    59
    Likes Received:
    7
    GPU:
    GTX970M
  12. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    I actually don't know. I didn't notice that was there lol.
    Probably should remove it.
     
    Tizoc likes this.
  13. xChrisCore

    xChrisCore New Member

    Messages:
    6
    Likes Received:
    0
    GPU:
    MSI GTX 970 4gb
    Hello guys i have a question what is more performance taxing? Enhanced SGSSAA or Override SGSSAA? or both just the same on performance tax??
     
  14. Tizoc

    Tizoc Active Member

    Messages:
    59
    Likes Received:
    7
    GPU:
    GTX970M
    The Moguri mod really helps FF9 look pretty, but there is still a little aliasing that needs smoothing out.
    Any chance of an AA bit or enhancing option to make some models look smoother?
     
    KainXVIII likes this.
  15. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Honestly it really depends on the game. But more often,Forced SGSSAA will require more performance. But often the quality is far superior to enhanced SGSSAA. Outside of a few cases, often Enhanced is sub optimal in quality and misses things forced would not. But you can create Hybrid solutions using enhanced SGSSAA and downsampling through DSR along with other things like FXAA on top to get the best performance to image quality ratio.

    A current example that I can bring up that i've been playing recently is Bayonetta.
    In Bayonetta enhanced SGSSAA is actually pretty good quality, even at only 2xSGSSAA. Forced SGSSAA is better at some some things but it can get tricky because the AA fix, what flag you use and what level of SGSSAA you use can greatly impact how it looks and performs.
    Enhanced SGSSAA looks good enough that if you are hurting for performance you can get away with enhancing SGSSAA and it will look pretty good on it's own. (Though there is a bug that will sometime cause enhanced SGSSAA to look softer/more blurry than normal. Usually occuring if you switch resolutions at some point or another. Setting the res you want and then restarting usually fixes it).

    The best solution though is to use enhanced 2xSGSSAA + DSR + Driver FXAA on top. 2xSGSSAA leaves some rough edges behind and FXAA will help clean up those edges nicely with no problems when downsampling. (Or if you are playing on a native 4k set, enabling FXAA on top still helps and doesn't impact image quality negatively.)

    On an RTX 2080 , it can handle forced 8xSGSSAA at 1080p at 60FPS without problems 99% of the time. But when bandwidth heavy things kick in, such as during certain boss battles it can and will drop frames under 60 either for a few seconds or momentarily.
    Or you can run the game at 3840x2160 + Enhanced 2xSGSSAA + Driver FXAA and downsample it with DSR and never drop a single frame and get comparable or better image quality. (It only uses on average 40-60% GPU at 4k) Having tested the same on a native 4k set too, it looks great there as well.
    Here's some comparisons of that , note that these were pulled from some video captures I did to compare the same scenes with different AA modes and the 4k captures went through two rounds of compression unfortunately because the device I was using to play them did not like 4k60 h264 videos and needed h265 so I had to re-encode the 4k captures. (Which have slightly more visible compression and some contrast loss) GPU usage is also higher than normal due to recording overhead. (Esp 4k)
    https://www.screenshotcomparison.com/comparison/6748
    https://www.screenshotcomparison.com/comparison/6749
    https://www.screenshotcomparison.com/comparison/6750

    Both look great (And will take care of the majority of the temporal aliasing problems that MSAA isn't good enough for)and are valid choices, and 8xSGSSAA does look sharper if you prefer that. But it will murder your GPU lol.

    Other Comparisons for Bayonetta AA
    https://www.screenshotcomparison.com/comparison/5806
    https://www.screenshotcomparison.com/comparison/5805
    https://imgsli.com/MTUwNDI
    https://www.screenshotcomparison.com/comparison/7169
    https://www.screenshotcomparison.com/comparison/7170 (Great example of the huge amount of texture aliasing present in the game.)
    https://www.screenshotcomparison.com/comparison/7171
    https://www.screenshotcomparison.com/comparison/7172

    IIRC FFIX either uses OGL or DX11, I don't think you can force AA in that release.
    If not you can try using 0x004010C1 as most Unity DX9 games will work with that.
     
    Last edited: Oct 17, 2020 at 8:57 AM

  16. Tizoc

    Tizoc Active Member

    Messages:
    59
    Likes Received:
    7
    GPU:
    GTX970M
    @MrBonk
    I'll try that bit thanks. I tried enhancing without bits but to no avail XP
     
  17. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Enhancing only works if the game supports MSAA out of the box :==(
     
  18. Tizoc

    Tizoc Active Member

    Messages:
    59
    Likes Received:
    7
    GPU:
    GTX970M
    So far nothing I tried managed to add SSGSS AA, and I am worried that overriding might screw up some stuff with the Moguri Mod's enhancements XP

    Ah well, if one can utilize DSR, they should be able to use it with the game to get some more AA applied I think
     
  19. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Overriding shouldn't screw up Moguri since AFIK it only does texture replacement of the backgrounds (And maybe reshade? And if it is, you have to have the depth bit 0x00400000 for forced AA to work).
    Enhancing won't do anything if the game doesn't already have MSAA.
    The game is currently 10$ on Steam. I'll rebuy it and check it out real quick. I bought it when it was released and was not at all impressed, way too many problems and hold overs from the mobile release.
    But i'll give it a shot real quick.
     
  20. MrBonk

    MrBonk Ancient Guru

    Messages:
    3,145
    Likes Received:
    144
    GPU:
    MSI RTX 2080
    Final Fantasy IX
    Ok, I can verify MSAA,SGSSAA,OGSSAA,HSAA all work fine with the vanilla game and Moguri Mod
    (Though SGSSAA,HSAA,OGSSAA all look identical and all trim off quite a bit of the high frequency content of the new character model textures. So it's a bit less sharp).
    AA fix will fix some black line issues.

    0x004000C1

    Vanilla
    No AA http://u.cubeupload.com/MrBonk/385noaa.png
    8xMSAA http://u.cubeupload.com/MrBonk/0x004000C18xMSAA.png
    8xSGSSAA http://u.cubeupload.com/MrBonk/0x004000C18xSGAAfix.png
    MSAA is the sharpest but it doesn't get the texture aliasing on models.

    Moguri
    No AA http://u.cubeupload.com/MrBonk/MogNoAA.png
    8xMSAA http://u.cubeupload.com/MrBonk/Mog8xMSAA.png
    8xSGSSAA (Fixes a lot of the added texture aliasing from the higher res textures) http://u.cubeupload.com/MrBonk/Mog8xSGSSAA.png
    http://u.cubeupload.com/MrBonk/FF920201006004434937.png

    I'm really impressed with this mod. While it's obviously still very upscaled looking in a lot of areas. It's clear there has been some effort to clean some of it up by hand. And the sound is much better than vanilla (Which sounds like garbage).
     
    Last edited: Oct 6, 2020
    Tizoc likes this.

Share This Page