Auto-adjusting settings to stay at a consistent framerate

Hello. I’ve been wondering if it is possible to get a working solution of graphics auto-adjusting to keep the FPS at a steady level. I have been targeting 60FPS, and I have tried implementing something to work out the FPS, and if it is lower than 60FPS, to lower the screen percentage in order to boost the frame rate, and when the frame rate is above 60, up the screen percentage to improve the graphics.

The only problem is, is that using screen percentage introduces stuttering for some reason, and this then causes the frame rate to drop, meaning that it just keeps going down until it reaches my lower set bound (of 50%) before going up a bit and falling back down again. Is there anyway to make this smoother, is there a better way of dynamically changing the graphics or is this just not a thing at all?

Thanks.

Bump. Anyone?

Second and my last bump. Nobody?

Hi there,

I’m not entirely sure, but you could try playing around with sg.ResolutionQuality instead of r.ScreenPercentage. As you mentioned, screen percentage will introduce a stutter when the value is changed but I’ve not noticed that with resolution quality.

It may be worth a try at least!

After finally getting an opportunity to take another shot at it - this is looking perfect for what I’m after. Thanks!

I think I may have jumped the gun a bit with my suggestion. There’s a chance that the reason there is no noticeable hiccup with sg.ResolutionQuality is because it isn’t actually doing anything. I wrote an answer to my own related question that has more info: