Keywords: UE4, Anti-Aliasing, Temporal AA

The latest article: UE5 Anti-Aliasing Notes

How to change Anti-Aliasing method on desktop devices

Project Settings -> Engine -> Rendering -> Default Settings -> Anti-Aliasing Method.

Default Anti-Aliasing method is Temporal AA.

Post-process Anti-aliasing was removed from Post Process Volume.

How to modify parameters of Temporal AA at run-time
r.TemporalAACurrentFrameWeight 0.2
r.TemporalAASamples 4
r.Tonemapper.Sharpen 0.8 // Somewhere between 0.5 and 1.0 seems like a sweet spot.


Switch AA method using console command
//0 = none, 1 = FXAA, 2 = TemporalAA, 3 = MSAA
r.DefaultFeature.AntiAliasing 2

Changing AA Type via Console Command

How to enable Temporal AA on mobile devices

Using command:

r.MobileMSAA 1
r.DefaultFeature.AntiAliasing 2

r.MobileMSAA 1 means to disable MSAA, more details see the engine source SceneRenderTargets.cpp.

Or enable by project settings:
Project Settings -> Engine -> Rendering -> Default Settings -> Set Anti-Aliasing Method as TemporalAA.
Project Settings -> Engine -> Rendering -> Mobile -> Set Mobile MSAA as NO MSAA, and ensure that there’s no r.MobileMSAA=0 in DefaultEngine.ini.


  • There’s a bug in version 4.19 that Temporal AA can’t be enabled on mobile device. it works fine in version 4.18.
  • Default Anti-Aliasing method on mobile is Temporal AA.
  • TAA isn’t available on low-end mobile devices since imperfection of TAA at low frame rate.
  • If there’s an image blurring (ghost) on mobile devices while TAA was enabled on running at low frame rate, it’s caused by the poor performance. If there’re some overhead on rendering, image blurring would occurs on mobile devices.

MSAA Sample Count


static TAutoConsoleVariable<int32> CVarMSAACount(
    TEXT("Number of MSAA samples to use with the forward renderer.  Only used when MSAA is enabled in the rendering project settings.\n")
    TEXT("0: MSAA disabled (Temporal AA enabled)\n")
    TEXT("1: MSAA disabled\n")
    TEXT("2: Use 2x MSAA\n")
    TEXT("4: Use 4x MSAA")
    TEXT("8: Use 8x MSAA"),
    ECVF_RenderThreadSafe | ECVF_Scalability

static TAutoConsoleVariable<int32> CVarMobileMSAA(
    TEXT("Use MSAA instead of Temporal AA on mobile:\n")
    TEXT("1: Use Temporal AA (MSAA disabled)\n")
    TEXT("2: Use 2x MSAA (Temporal AA disabled)\n")
    TEXT("4: Use 4x MSAA (Temporal AA disabled)\n")
    TEXT("8: Use 8x MSAA (Temporal AA disabled)"),
    ECVF_RenderThreadSafe | ECVF_Scalability

——张嘉佳 《从你的全世界路过》