Sincewriting it to disk can be expensive, what you can do (requires Panda3D 1.10.13) is use copy.deepcopy(tex) to create a copy of the texture in that task, put that copy in a thread-safe queue, and have a separate thread pop textures off that queue to do the write() call.
Since writing it to disk can be expensive, what you can do (requires Panda3D 1.10.13) is use copy.deepcopy(tex) to create a copy of the texture in that task, put that copy in a thread-safe queue, and have a separate thread pop textures off that queue to do the write() call
One last question here. How can I inject base.win (the GraphicsBuffer object) with WindowProperties or FrameBufferProperties settings? For example, if I wanted the window size to be a different aspect ratio, or I wanted to disable the alpha channel?
3a8082e126