What is the switch that says 115 and 230 on the back of my power supply supposed to do.?

I know that whenever I play a high end game, the computer spontaneously reboots whenever I switch it to 230, but doesn't when it's on 115
0