- Home /
What is max achievable frame rate in Unity 3D normally?
If I wanted to play a small video on screen then what is the maximum frame rate I could achieve in that small video? My personal experiments seem to indicate that 60-ish fps is fastest I can get. I would like 100+ fps. When I say small I mean perhaps 100 pixels by 100 and something like 3 or 4 seconds of play time (assuming size in pixels and play time have any affect). What if you don't assume you have the best hardware (a late-model GPU on system, a desktop. what if we're talking about a cellphone that is a couple year old?)? Is there some kind of plug-in you can add to Unity (that would be included in a distributable build) so I could boost up to 100+?
Answer by Happeloy · May 18, 2018 at 12:00 PM
There are a few things you can do to tinker with the FPS. One is to disable VSync, this will stop unity from trying to match the update rate of your monitor. You'll find this setting in Edit->Project Settings->Quality, go down to "Other" and on "V Sync Count", select "Don't Sync".
You can also set the target FPS in code, like this:
Application.targetFrameRate = 100; //For a target fps of 100.
The video you are trying to play, what framerate does that have natively?
You can set the frame rate of a video by referencing the Video Player.
public UnityEngine.Video.Videoplayer player; //Assign in inspector
void Start(){
player.frameRate = 100; //Play video at 100 fps.
}
Answer by Must_I_have_a_name · May 18, 2018 at 12:56 PM
I had created using Adobe Premiere a test video at 100. But...I'm not sure it really is 100. I am looking into finding a video editor which really does go up to and past 100 fps. You CAN set a slider in Premiere Pro to 100 but I found in forum/answers on Adobe/Premiere that there is actually a cap at 60ps. I had pretty much given up on this project a few weeks ago (so I'm starting to forget everything I did in initial investigation of going past 60 fps in Unity and elsewhere). But the idea of playing around with faster frame rates kind of nags at me. I did/do have a Unity test project where I was trying to get past 60fps (and couldn't at the time as near as I could determine). I could revisit. Am torn between my present project and this old experiment. Thanks for the tips!
I did a little more investigation (tardily) and now know that my monitor can't display that higher frame rate. I have a 60 Hz monitor so it just can't show that rate. Since many people will have a monitor with this Hz rate (some will have monitors with higher rates) then 60 fps is probably the lowest common deno$$anonymous$$ator. I.e. don't bother trying to work with higher rates for a program that is for broad consumer consumption, too many people will have monitors which can't display that fast. In the future, some years from now(5?), the Hz rate on the economy cost monitor will be 100 Hz or above, but not now. There IS I would guess plenty of monitors at 100 or above so you have a market but ....it's a higher end market. For me to continue I need 1)100Hz;+ monitor, 2)NVIDIA G-Sync or A$$anonymous$$D free-sync graphics card, 3)non H$$anonymous$$DI ports & cables, and 4)video editor designed for higher frame rates.
Your answer
Follow this Question
Related Questions
How can I improve frame rate without Pro? 1 Answer
Framerate Dependency 2 Answers
Is it possible to seperate render and input frame rate (iOS) 0 Answers
How to handle frame rate drop 1 Answer
Constant rate of Translate 1 Answer