stable-retro icon indicating copy to clipboard operation
stable-retro copied to clipboard

Using multiple emulators per process [enhancement]

Open arvganesh opened this issue 1 year ago • 3 comments

Relevant: https://github.com/openai/retro/issues/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.

arvganesh avatar Mar 21 '23 19:03 arvganesh

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

MatPoliquin avatar Mar 22 '23 13:03 MatPoliquin

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 avatar Mar 22 '23 18:03 arvganesh

@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

MatPoliquin avatar May 17 '23 12:05 MatPoliquin