I'm writing a game with two processes. One for rendering with OpenGL. The other is for Collision detection. This is so I can use more than a single core.
However I can't use any pygame surfaces without the display open. So I can't use bitmasks to do pixel perfect collision or any other collision for that matter.
I've tried to simply open another window just to see if I can the Surfaces to work but I can't open a second pygame window without getting an OpenGL function error.
You can open two non-OpenGL windows with pygame in two separate processes but I'm using OpenGL.
I figured there might be somewhere I can insert a pointer to the display to get the surfaces to stop saying Dead Display. Some kind of SDL variable I can manipulate in the second process to say "its not Dead its here". Or some other way to use the pixel perfect collision.
I'm open to pixel perfect alternatives that don't use pygame.
I'm going to use pymunk. The python port of Chipmunk.
I did a silly experiment with it little over a year ago when I first started programming. It was pretty easy. I just totally forgot about it.
I couldn't get pybox2d to work in any python version.
Using pygames Collision module without initializing display