Camera very fast on init

Hi there,

I have the issue that (without any specific scripts) the camera will run at an insane FPS in the circuit. I have then somewhere here found the hint to add this code to a script attached to camera:

using UnityEngine;

public class SmoothCamera : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
       Application.targetFrameRate = 70;
    }

    // Update is called once per frame
    void Update()
    {
        Application.targetFrameRate = 70;
    }
}



It works perfectly fine but at the very beginning it is very fast at insane FPS and gets exponentially reduced to target FPS. Is there a solution to this that the camera is floating at always the same value?

Thank you for digging into this

Best

J

Camera Settings

Hi JohnnyDerpo,

Good job on fixing this issue, and thanks for sharing your code. Unfortunately, we haven’t found a “real” solution in the past years.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms