webgl stutters on full screen but have great fps
I created a very simple 2d game with corgi engine and deployed it to my website. Its running great on windows but as soon as i hit the fullscreen button when running it on a mac, the game stutters as if its skipping frames, the game doesnt slow down and the fps counter still shows it caps at 80fps.
i tried setting the targetframerate at 30 and turn off vsync but for some reason, it's not working.
Answer by dansopanso · Jun 03, 2019 at 03:11 PM
i' having the exact same trouble and still try to figure out how to solve this. It looks like it has something to do how webGL renders the frames. What I tried was to use a fixed framerate. this is not a perfect solution but at least it reduced the stuttering.
void Start()
{
Application.targetFrameRate = 30;
}
I also found this thread but don know if that helps: https://gamedev.stackexchange.com/questions/157982/unintended-stuttering-when-moving-camera