MatPoliquin/stable-retro

Using multiple emulators per process [enhancement]

arvganesh opened this issue · 3 comments

Relevant: openai#64, https://github.com/MaxStrange/retrowrapper

I wanted to make this issue to discuss adding support for running multiple emulators at once. This will improve training efficiency when using the library. I'm not totally familiar with how multi-process code is written, but I understand that one of the limitations of libretro, the emulation back-end, is that it only allows a single emulator running per process.

Thanks for the suggestion, have you tested the actual performance difference in practice? If so I would be interested in knowing the results

I opened this issue because I was running into issues running multiple emulators in a single process, but I realized that I can use subprocess environments to get around the limitation. I do know that other environments support multiple instances per process, but I'm not sure how that impacts performance.

@arvganesh stable-retro has moved to Farama fondation:
https://github.com/Farama-Foundation/stable-retro

Can you recreate your issue there so that it's under your user name? I will continue to follow over there