DEV Community

GameOptim
GameOptim

Posted on • Edited on

How to Optimize Bloom and Depth of Field (DOF) in Unity URP Without Sacrificing Visual Quality

🌐 Website: www.gameoptim.com

Bloom and DOF are often the biggest GPU performance killers

When profiling mobile games, Bloom and Depth of Field (DOF) frequently appear among the most expensive post-processing effects.

A recent GOT Online performance report revealed that both effects were generating unnecessary GPU workload and increasing power consumption on mobile devices.

Here are several practical optimization strategies.


Optimize Bloom

According to the performance report, the majority of Bloom's GPU cost comes from the multiple downsampling and upsampling passes performed on high-resolution render textures.


In this case, the game renders at 1920 × 958, which is already a reasonable high-quality rendering resolution.

However, Bloom is currently using a 1/2 downsample ratio.

A better option is to switch to 1/4 downsampling whenever the scene contains relatively few bright highlights and the slight quality difference is acceptable.

This optimization provides several benefits:

  • Reduces high-resolution render texture read/write operations
  • Lowers GPU memory bandwidth usage
  • Decreases render target cache pressure
  • Reduces overall GPU power consumption

After changing the Bloom settings, compare the results using GOT Online by checking both the power consumption curve and the visual output on real devices. If image quality remains acceptable, keep the lower downsample ratio.


Optimize Depth of Field (DOF)

Depth of Field is one of the most expensive post-processing effects on mobile GPUs because it consumes both GPU compute resources and memory bandwidth.

A practical optimization strategy is:

1. Determine whether DOF is really necessary

Many games enable DOF by default, but in gameplay the visual improvement can be minimal.

If the effect doesn't significantly enhance the player experience, disabling it entirely often provides the largest performance gain.

2. Prefer Gaussian DOF over Bokeh DOF

If DOF must remain enabled, choose Gaussian DOF whenever possible.

Compared with Bokeh DOF, Gaussian DOF produces a much lower GPU workload while still providing acceptable visual quality for most scenes.

3. Disable DOF on lower graphics quality presets

Mid-range and low-end mobile devices generally benefit more from stable frame rates than from cinematic blur effects.

For Low and Medium graphics presets, disabling DOF is usually the recommended approach.

4. Don't use DOF to darken screen edges

Some projects use DOF to create a subtle edge-darkening effect.

Instead, use URP's built-in Vignette post-processing effect.

Vignette produces a similar visual result with significantly lower rendering cost.


Recommended Graphics Quality Configuration

A practical graphics quality strategy could look like this:

Quality Level Bloom DOF
High Enabled (1/4 Downsample Recommended) Gaussian DOF
Medium Enabled (1/4 Downsample) Disabled
Low Optional Disabled

This approach maintains image quality on high-end devices while significantly reducing GPU workload and power consumption on mid-range and entry-level hardware.


Conclusion

Bloom and DOF can greatly improve visual quality, but they are also among the most expensive post-processing effects in Unity URP.

Rather than simply disabling them, developers should adjust their quality based on device capability:

  • Reduce Bloom downsampling resolution when possible.
  • Use Gaussian DOF instead of Bokeh DOF.
  • Disable DOF on lower graphics presets.
  • Use Vignette instead of DOF for simple edge-darkening effects.

Small changes like these can noticeably reduce GPU load, memory bandwidth usage, and battery consumption while preserving a consistent visual experience across a wide range of mobile devices.

Top comments (0)