Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by TMaow · Feb 20, 2019 at 01:55 PM · scripting problemmobilecamera-movementlagprofiler

fps goes down when moving the camera

i have this weird issue when i try to move the camera with RigidbodyFirstPersonController script, when i stand still my fps is 120 but when i move the camera or the player it goes to 60-80 fps

and in the profiler the script usage goes high when moving too.

this is my first time asking a question in this forum, sorry for my bad english.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image xxmariofer · Feb 20, 2019 at 02:15 PM 0
Share

you need to share the code you are using for us to know what is happening

avatar image RobAnthem · Feb 20, 2019 at 02:44 PM 0
Share

Of course FPS drops on movement, that's because of how everything works. Animation culling, occlusions, lighting calculations, sound calculations, etc. There's a lot going on when you "move" the camera. It's normal for FPS to be greater when stationary. Especially if you're staring at a less complex situation then perhaps is to the left or right of the viewing area.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Nocktion · Feb 20, 2019 at 03:14 PM

It's pretty normal that your fps drops on camera movement. Unity has to redraw the whole screen, collect objects to draw, do culling, calculate a crowd of things so it's normal. When you stand in place and don't move anything not even the camera the fps is likely to stay still (except a few changes, but that should be about a few fps) .

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RobAnthem · Feb 20, 2019 at 03:18 PM 0
Share

Which could literally be anything if that's the cause and he'd need to look at the profiler and frame debugger to figure it out. I mean it could literally be anything lol, considering how frames work. The funny part is, frame rate lag is most often caused by processor bogging, and less about graphics calls, considering the graphics card never receives rendering instructions until the CPU packages it all up and send it to the pipeline.

avatar image zereda-games RobAnthem · Feb 20, 2019 at 03:21 PM 0
Share

hey could you tell us how to get there i actually have never used that feature of unity in the 3 years ive worked with it >.< yeah i know, sad.

avatar image zereda-games zereda-games · Feb 20, 2019 at 03:23 PM 0
Share

i looked at it a few times but didn't have the patients to play with it yet.

Show more comments
avatar image TMaow RobAnthem · Feb 22, 2019 at 11:45 AM 0
Share

when i used the profiler it said the lag issue was from the RigidbodyFirstPersonController script and Specifically the update function so i'm not sure if it was the camera or the renderer fault but thanks for the reply

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

222 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rotate camera around object using touch 0 Answers

Insane EventSystem.Update lag spike, no graphic raycasters in scene 3 Answers

Error in roll a ball script: unkown where to address [ATM] 0 Answers

How to keep Auto Cam above an object 0 Answers

How to get real-time AO for mobile platforms? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges