x


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

more ▼

asked Apr 20 at 02:13 PM

Jonas\'s gravatar image

Jonas Nielsen
88 3 3 11

(comments are locked)
10|3000 characters needed characters left
 moderation talk

1 answer:

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.

more ▼

answered Apr 20 at 02:19 PM

Duck\'s gravatar image

Ben Pitt ♦♦
34.4k 77 133 388

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.

Apr 21 at 07:22 AM Jonas
(comments are locked)
10|3000 characters needed characters left
 moderation talk
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x662
x56
x30
x26
x19

Asked: Apr 20 at 02:13 PM

Seen: 7218 times

Last Updated: Apr 20 at 02:13 PM

powered by Qato - Enterprise Q&A