Skip to content

Adjusting camera update Interval using Renderer Feature of URP.

License

Notifications You must be signed in to change notification settings

sr4dev/Unity-RenderInterval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-RenderInterval

Adjusting Camera Update Interval Using Renderer Feature of URP.

May-02-2024 12-34-45

This sample project is developed to assist in creating smooth UI while the world is rendered at a low FPS for cinematic effects. It is not developed with the intention of reducing rendering frequency, so there are no performance benefits to using RenderInterval. If the sole purpose is to reduce rendering frequency regardless of the world and UI, please refer to the documentation below. https://docs.unity3d.com/ScriptReference/Rendering.OnDemandRendering-renderFrameInterval.html

How to use

  • Add RenderInterval to the Renderer Feature.
  • Set up FPS and add a dedicated material for RenderInterval using shaders. (If the shader is not properly configured, the screen may not render correctly in the Metal API)
image

Note

Anti-aliasing is not supported. Anti-aliasing for the camera must be set to 'No Anti-aliasing' without exception.

image

UI (Canvas) should use either Screen Space - Overlay or Screen Space - Camera, but you must use a Camera that does not apply RenderInterval.

image
image

Separate URPRenderer into Default and Main, and RenderInterval should only be added to the RendererFeature of Main. Otherwise, flickering may occur in the Game, Scene, Preview Views.

image

About

Adjusting camera update Interval using Renderer Feature of URP.

Topics

Resources

License

Stars

Watchers

Forks