Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Seneral · Jan 17, 2015 at 06:57 PM · camerafpsinspector

FPS increase when selecting an Camera due to VSync

Hey there!

I just noticed a strange behaviour which increases FPS in my game by 40 FPS when selecting a camera - active or not, image effects or not, and nothing else, only when my Character moves.

So basically when two scripts of mine perform rather expensive operations. How? A glance on the Profiler clears me up a bit: It's VSync using half the cpu cost when I move...

Why does this increase in FPS by lesser cost of VSync when I move only appears when I have the Camera in the Inspector selected?

Comment
Add comment · Show 5
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 Seneral · Jan 23, 2015 at 01:56 PM 0
Share

any ideas?

avatar image meat5000 ♦ · Jan 23, 2015 at 01:58 PM 2
Share

Let me get this straight. Your FPS is increasing and you are complaining? :)

avatar image Fornoreason1000 · Jan 23, 2015 at 02:23 PM 0
Share

I think he just wants to know whats going on , so basically when your character moves while you have selected a camera?

VSync limits your FPS so your $$anonymous$$onitor/TV is refreshing at the same time each frame is drawn(well that's the idea of it anyway). any frames drawn in between that refresh rate is wasted, since it never makes it to your Display Usually to around 60FPS.

Just tested myself and find I get that too, i go from 80FPS, to about 130FPS

$$anonymous$$aybe Unity over compensates for the movement , and assumes you are about to move the camera via Scene View, thus created that drop in V Sync and that increase of FPS? ( i have a feeling unity dislikes moving objects that way)

well since you can only select things in the editor is doesn't really effect your game. And from what I've seen, the editor is what ios affecting the game FPS ( and a few things do). tried have the profile open at the same time as the game window, dropped it to about 100FPS. so yeah its the editor's fault

avatar image meat5000 ♦ · Jan 23, 2015 at 02:33 PM 0
Share

Best advice is to add in a proper FPS script and test this on device. You may find Unity editor is causing it.

avatar image Seneral · Feb 07, 2015 at 08:56 PM 0
Share

Sorry for the late response, I remember me updating the page for over an hour without seeing anything...

Anyway, thanks for the advice, and yes, a "proper" FPS script still shows very constant 60.35 FPS:/ Does that mean the stats are wrong? :O

alt text

As a comparision, left part shows me moving, right part not, both selecting the cam. But your right, it won't show ingame either way:)

screenshot3.jpg (27.5 kB)

0 Replies

· Add your reply
  • Sort: 

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

27 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

Related Questions

I want to change gun position with my camera joystick 0 Answers

How do I properly rotate an FPS camera with a joystick? 1 Answer

Switching to the player camera 1 Answer

Camera smooth transistion 2 Answers

Keyboard / Mouse control for FPS 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