toggling vertical sync at runtime

Is there a runtime equivalent to the “sync-video” PRC setting?
I would like to allow users to toggle vsync within the game without having to restart it.

Yes, just change the configuration variable setting and then do anything that resets the GSG, ie, reopen the window or so.