![]() Of course I can't rule out that there's just a bug in my code, but that doesn't seem to be the case. So my game is probably setting vSyncCount incorrectly and/or bypassing the spinlock mechanism. My guess is that the OS or Unity don't always report the refreshrate correctly, possibly due to some weird driver settings. It's rare, but for some people the game runs way too fast. This all works well - except when it doesn't. The sleeping/spinlock is based on this article : īut I fixed a couple of issues with that where the game would behave strange when it's either ahead or behind schedule. If vsync is enabled and the refreshrate is not a multiple of 60, I use a combination of thread.sleep and spinlocking to get as close to 60fps as I can. If vsync is enabled and the refreshrate is a multiple of 60 (more or less), I rely on QualitySettings.vSyncCount If vsync is off, I rely on Application.targetFramerate, which seems to work well enough ![]() It's a deterministic pixel-perfect precision platformer, and for games like that, a locked framerate is pretty much required. exe to use the Nvidia GPU but it gave some "duplicate" error and crashed.For my game, I want Unity to run at a steady 60 fps. Sunshine seemed to be using my Intel UHD 630 as the encoding source according to the Sunshine console. Switching back to the native NVidia gamestream didn't exhibit these issues. ![]() The fps sometimes jumped to 60-70fps but only for a second, but dropped as low as 1fps and was mostly around 25-35fps. Even though "Frame drops by your network connection" was at 0%. Did you run Sunshine under Windows or Linux? It kept giving "Slow connection to PC Reduce your bitrate" warnings from Moonlight PC client. I just tried Sunshine and got much worse results. Nvidia is the one that has conflicts with iGPU on laptops Trying to minimize Big Picture, minimizes the actual Steam Big Picture but through Moonlight it still displays Big Picture as if it was running full In remote desktop mode (mstsc) and go to Steam then go to Big Picture mode the fps jumps to 60, but that's of no help. Nvidia GTX 1070 8GB GPU and Intel UHD Graphics 630 (NVidia Optimus) MSI GP73 Leopard-636 Laptop with 32GB of Memory (120hz Monitor) Windows 10 Home Edition Version 1909 Build 18363.815 Dell Inspiron 5591 2n1 Laptop with 32GB of Memory Tested with Optimize game settings on/off Video bitrate: 70.5 Mbps (also tried adjusting with no difference) Resolution 1080p at 60fps (tried lower resolution with no difference) In all cases the stats overlay shows no dropped frames. However some games, like Borderlands 3, do run 60 fps when running outside of Big Picture. When running in desktop mode (mstsc.exe), it hovers 25-40fps. When run without Steam Big Picture, directly, those games hover at 25-40 fps. ![]() If I run through Steam (which launches Big Picture) I can get a consistent 60 fps in games like BlurĪnd Left4Dead 2 but whenever a game is streamed from Steam Big Picture it's a flickering unplayable mess. Can't get to 60 fps most of the time, when I bring up the stats (Ctrl-Alt-Shift-S) it hovers around 25-40 fps.
0 Comments
Leave a Reply. |