Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Cam Resolution

Discussion in 'General Graphics' started by Armend, Nov 7, 2015.

  1. Armend

    Armend

    Joined:
    Aug 8, 2015
    Posts:
    10
    Hi everyone,

    i'm using Unity 5.2.2 and i have a question regarding the resolution of the cameras.

    When my canvas has a resolution of 1280x720, did the cameras have the same resolution? I mean, it's streched very well and it's allright. But i am thinking, if it's possible, to improve the performance by changing the game-camera resolution to a lower one.

    Thank you.
     
  2. StevenGerrard

    StevenGerrard

    Joined:
    Jun 1, 2015
    Posts:
    97
    The "Frame Buffer Size" which influence video memory usage and gpu bandwith, is the key factor to performance.
    Not sure if this is exactly equal "Camera resolution" you mentioned above.

    => So if you want improve performance, you could try to use a smaller resolution framebuffer ( default back framebuffer, or render target ).
    => However you will get a more mosaic with lower resolution. You have to made a decision between performance and quality.
     
  3. Armend

    Armend

    Joined:
    Aug 8, 2015
    Posts:
    10
    Thank you very much for your reply. Could you tell me please, where i can change the Frame Buffer Size?
     
  4. StevenGerrard

    StevenGerrard

    Joined:
    Jun 1, 2015
    Posts:
    97
    If you are developing with native graphic API, you get full control of default frame buffer size.
    But in unity you have to use a more trick approach to achieve this goal...

    The setps will be
    => Create a 1/2 or 1/4 render target and attach to your main camera.
    => Execute normal rendering to this render target.
    => Stretch blit this small render target to default back frame buffer.