Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Low Fps if camera comes closer to surface(URP)

Discussion in 'General Graphics' started by vermaji, Nov 25, 2023.

?

How to fix fps if Camera is closer to the object

  1. Change Render Pipeline

    0 vote(s)
    0.0%
  2. Change Shader

    1 vote(s)
    100.0%
Multiple votes are allowed.
  1. vermaji

    vermaji

    Joined:
    Jan 7, 2020
    Posts:
    3
    Hi All,

    I have a rectangular shape room and I am showing complete room by placing camera at top of the room. If my camera is far from the room's floor then I get 60 fps but if I take my camera closer to room then room's floor will cover 75% area of the screen. In this closer view the fps is dropped to ~30. I am using URP and shader is "Universal Render Pipeline/Lit". How I can fix this? I Would really appreciate If I can get some help for fixing this issue.
     
  2. Sluggy

    Sluggy

    Joined:
    Nov 27, 2012
    Posts:
    938
    There is no where near enough information for us to tell you what to do. Are you CPU bound? GPU Bound? Bound by bandwidth? Bound by shader complexity? Bound by geometry complexity? Are you targeting mobile? Desktop? Once you collect all of this information it will be much easier to answer and likely you will already know what needs to be done anyway.
     
  3. vermaji

    vermaji

    Joined:
    Jan 7, 2020
    Posts:
    3
    I am targeting mobile device with 2GB Memory. There is no complex geomatry as I am using Unity's Quad. It's a simple scene having only one quad and a camera. No complex shader as I am using Universal Render Pipeline/Lit.
     
  4. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,571
    Ryiah likes this.
  5. Sluggy

    Sluggy

    Joined:
    Nov 27, 2012
    Posts:
    938
    Like kdgalla said, the profiler is the next best option to ensure you aren't CPU bound. But given the information so far I'm leaning towards GPU bandwidth, likely caused by overdraw. Are you using transparencies on your objects? They are known to cause a lot of issues on mobile platforms.