Depends on the game and the platform its on.
For example, every steam game will use the name you have set on steam (which you can change whenever you want, however often you want, to whatever you want).
Other services, like Origin, require you to set a name for their games too.
Games with their own launchers (blizzard games/world of tanks/warframe, etc) are on a per game basis.