eezstreet / SWATEliteForce

A modification for SWAT 4: The Stetchkov Syndicate
GNU General Public License v2.0
211 stars 35 forks source link

Suggestion: always enforce vsync in menu #208

Open kevinfoley opened 7 years ago

kevinfoley commented 7 years ago

Modern high-end GPUs are easily capable of rendering the menu at hundreds of frames per second. This can induce coil whine and probably puts unnecessary stress on the GPU. If possible, it would be great to force vsync for the menus but follow the user's setting during gameplay.

theengineertcr commented 7 years ago

Very obvious and noticeable bug. Wouldn't a FPS cap suffice?

jose21crisis commented 7 years ago

What happens with Low-end GPUs?

sandman332 commented 7 years ago

Or just use vsync or a frame limiter? I use both of those when playing older games that try to spit out hundreds of frames.

eezstreet commented 7 years ago

I'm unsure how this would be implemented with Unrealscript. You could maybe artificially throttle the game using a Timer action (see how the map lists are handled for a better idea of how timer actions are used) but you'd need to figure out whether a map has been loaded. Also, some UI elements use timers for other stuff (like the aforementioned map list) so it would be tricky to get that all working correctly.

But if someone has any ideas, that would be helpful.

kevinfoley commented 7 years ago

The game already has a vsync setting; just force it on during the menu and respect the user's setting when gameplay starts.