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
5
Question by Jonas · Apr 20, 2010 at 02:13 PM · fpstrackingframehardwarerate

Fixed frame rate

Hi Guys,

I'm involved in building a game, that moves objects according to tracking data of real-world objects. At the moment we're running the in-house tracking software and the game on the same machine. Unfortunately, that results in the game sucking all of the resources and thereby dropping the frame rate of the tracking software too much.

Is it somehow possible to configure the maximum allowed frame rate of the Unity application?

The game is graphically pretty simple, so visuals isn't of the highest priority.

Thanks, Jonas

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
12
Best Answer

Answer by duck · Apr 20, 2010 at 02:19 PM

You can use the Application.targetFrameRate to specify a particular target frame rate, or you can enable "Sync to VBL" in your quality settings, to have your framerate lock to the monitor's refresh rate. This also has the bonus effect of reducing screen tearing.

Comment
Add comment · Show 1 · 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 Jonas · Apr 21, 2010 at 07:22 AM 0
Share

Thanks, Duck. Just what I was looking for. Unfortunately, targeting to 30fps wasn't enough. We'll try running each software on its own machine.

avatar image
2

Answer by rgbDreamer · Dec 20, 2013 at 02:09 PM

In case anyone else is looking for this, Application.targetFrameRate() did not work for me, but this did:

     secondsThisFrame += Time.deltaTime;
     if(secondsThisFrame < 1.0f / FPS){
         return;
     }else{
         secondsThisFrame = 0;
     }
Comment
Add comment · 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
-1

Answer by jorgenbarnes · Feb 28, 2014 at 02:16 AM

You may refer to this step by step guide to change video frame rate at http://www.idealshare.net/video-converter/frame-rate-converter.html This guide applies to:

Change video frame rate from 1 to 60 especially among 23.97fps, 24fps, 25fps, 29.97fps, 30fps, 50i/p, 60i/p, 72p, 120p, 300p and etc; Change frame rate of video files of all variety like change AVI frame rate, change MP4 frame rate, change frame rate of MOV, Apple ProRes, R3D, AVCHD, WMV, MKV, VOB, DV, WTV, FLV, SWF, MXF, RMVB and more; Change video frame rate as well as keep the same video format; Change frame rate as well as convert video to other format;

Comment
Add comment · Show 1 · 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 Ar7ific1al · Oct 26, 2014 at 06:53 AM 1
Share

Completely and totally unrelated to anything being discussed here...

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

2 People are following this question.

avatar image avatar image

Related Questions

Which frame rate is correct? 1 Answer

Target frame rate between scenes 1 Answer

Very Low Frame Rate 2 Answers

minimum hw specs to run fps sample? 0 Answers

Rate of fire : explanation please 1 Answer


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