Running panda without rendering


I know this has been asked before, but I have searched the forums for a couple hours now and haven’t been able to find my answer, so here goes:

I am working on a client/server game. I am splitting the game engine tasks between the client and the server. Is there a way to have the panda engine running on the server, with socket servicing, without having to render the scene? The server doesn’t really need to display anything, just handle things like NPC movement, NPC collision detection, etc.

Also, would I do my socket servicing in a task that gets called every frame? I have tried some of the simple socket examples online (at devshed) that run their own endless loop, but I am thinking that since tasks get called after each render, I might want to service them there instead.




from pandac.PandaModules import loadPrcFileData

loadPrcFileData("", "window-type none")

before DirectStart, this will cause no rendering.

1 Like