Multiple worlds in multiple threads

Topics: User Forum
Aug 16, 2012 at 9:41 PM

Hi,

Let's say i write a platformer and I have a foreground layer and a background layer. objects from those layers don't interact with each other. Would it be reasonable to use two worlds and simulate the in two different threads?

Coordinator
Aug 28, 2012 at 12:36 AM

Indeed it would. If there are absolutely no interaction between the two, I would recommend you implement the background in a separate thread.