// bind "Vsync on and off"
set vsync_on "r_swapinterval 1; set vsync vstr vsync_off;vid_restart
set vsync_off "r_swapinterval 0; set vsync vstr vsync_on;vid_restart
set vsync "vstr vsync_on"
bind F9 "vstr vsync"
Note - Your key to bind may vary.
Save the file as text named as:
custom.cfg
Save it in your 'main' directory.
Your autoexec.cfg has a command:
// execute custom binds and commands
exec custom.cfg
It will automatically run the custom.cfg file.
*What will this do?*
It'll let you toggle between vsync on and vsync off.
You'll notice an immediate FPS boost with vsync off but you may notice texture tearing indoors. In this case I recommend turning it on. With mostly outdoor maps you may notice a performance hit with vsync on. I recommend toggling vsync off when you play those.
To show the FPS counter, add the following to your MOH:AA shortcut and run it - you will only need to do this once per installation: