GithubHelp home page GithubHelp logo

sr4dev / unity-renderinterval Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 51 KB

Adjusting camera update Interval using Renderer Feature of URP.

License: MIT License

C# 70.03% ShaderLab 29.97%
camera interval renderer rendererfeature unity urp

unity-renderinterval's Introduction

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

unity-renderinterval's People

Contributors

sr4dev avatar

Stargazers

Dongwoo Jeong avatar HookSSi avatar Lee Seung Hu avatar Ruman Kim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.