I have this simple script i tried to set the framerate to 60 , it’s also set to 60 in the editor. and set the resolution to 500, 200 and when building it the set it to windowed.
using UnityEngine;
public class SetGameResolution : MonoBehaviour
{
void Start()
{
Application.targetFrameRate = 60;
// Set the resolution to 1024 width and 768 height, for example
// The third parameter is whether the game should run in fullscreen
Screen.SetResolution(500, 200, false);
}
}
the problem is when id rag around the game view window when running the build exe file, it’s kind of flickering hurting the eyes and not moving smooth enough.
i can create a small video clip to show the problem but what i did is to resize the game window in the build so i can drag it around when running the game.
how to fix it ?