Copying Current Image to Shared Memory
We are creating an app where the Unity3D interacts with a python program. The python program plays the game and the Unity has to continuously provide the next image to the python program. We are currently using sockets but IPC cost is quite high. I want to know, if we can copy the pixels to a shared memory which can then be read by the python program. Is there some Unity3D support for it? Can I use C# memory maps:
https://docs.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files
Comment