Skip to content

Instantly share code, notes, and snippets.

@psql
Created November 15, 2022 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psql/e616f1a2f7e5b073d8ad37d4635ea835 to your computer and use it in GitHub Desktop.
Save psql/e616f1a2f7e5b073d8ad37d4635ea835 to your computer and use it in GitHub Desktop.
Set Target Frame Rate in unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetFrameRate : MonoBehaviour
{
void Start()
{
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 60;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment