Currently, I am in the process of making a plugin for Unity that relies heavily on a runtime that exist in a native DLL that will handle most of the processing. The Native DLL will make and manage it’s own allocations using a specialized memory allocator. The Native DLL however, does not handle any rendering, so that must go to the Unity’s side.
Going to the Unity side, I would like for this data to then be rendered in a preview port of a custom renderer. As well as allow the Main editor to preview the result after it’s attached to an object. The problem the comes to whether or not Unity is able to make a difference between the Game’s Memory space, and the Editor’s Memory space.
Is the memory allocated by the DLL shared between Unity’s Editor and the Game? Or are the game mode, and the Editor treated as separate pocesses? Thus have their own memory spaces?