Hey guys I was wondering if it is better to have one instance of Box2d, or multiple instances of Box2d per channel. I know Box2d is a async physics library, but in a design, memory, and performance sense what would be better.
Here is how I have it set up:
Server > WorldFactory > GameWorld > ChannelFactory > MapFactory > MapLoader.
The Server object contains the Box2d instance, while the ChannelFactory has a list of MapFactory, which is the map objects themselves. All I have to do is call the map in ChannelFactory to generate the physics.