GPU switching

Sometimes Vivaldi switches from my integrated GPU to the dedicated one. For example if I watch something on TwitchTV it will switch (does not happen on other browsers). When this happens it will not switch back if I close the page that caused it to switch, I have to restart Vivaldi entirely.