I’ve written some “universe” games, and the toroidal universe that you’re referring to is one of the easiest to implement...
What I was trying to say was that if a particular shape is confining the universe, shouldn’t the regions that are confining this universe also be a part of the universe? If yes, then there is no physical limit to the universe, is there?