Try to start multi instance of ShowBase

Hi, I try to start multi instance of ShowBase in a process and keep get “Exception: attempt to spawn multiple showbase instances”. Is there any class could replace ShowBase, cause I don’t need to open window. Here is my code. Please help me. I’m new to Panda3D.

class myApp(ShowBase):
def main():
    bases = []
    for i in range(5):

Only being able to spawn a single instance is a known limitation for ShowBase. You could create multiple processes and have them communicate over some form of IPC (sockets, shared memory, pipes, etc.). However, it is worth taking a step back and looking at what you’re trying to solve by using multiple ShowBase instances; there may be a more straight-forward solution.