That would depend on the game, more then Windows. Your best bet is to look on the web and see what game tweaks are out there for games.
Here's a good site for some gaming tweak guides -
TweakGuides.com
Also, have a look at my guide -
Tips on Troubleshooting Game Issues
I personally don't do any "Windows" tweaks so I have no advice there.
Good luck.