gym-rle icon indicating copy to clipboard operation
gym-rle copied to clipboard

Multithreading in gym-rle

Open abcp4 opened this issue 7 years ago • 3 comments

Hello, i would like to know if its possible to create multiple instances of the gym-rle env, something like in this code:

import gym
import gym_rle

envs = [gym.make('MortalKombat-v0') for _ in range(2)]
envs[0].reset()
while True:
    action = 0
    envs[0].step(action)

abcp4 avatar Apr 12 '17 18:04 abcp4

Generally RLE is mutlithread compatible. I haven't tested gym-rle for multithreading though. If nothing goes wrong, it should work. Please let me know if it worked :-)

nadavbh12 avatar Apr 13 '17 05:04 nadavbh12

Both in the gym-rle and the original RLE it caused the following problem:

[Based upon the Arcade Learning Environment (A.L.E)] [Powered by LibRetro] Use -help for help screen. [inf] Frontend supports RGB565 - will use that instead of XRGB1555. Sound buffer size: 128000 (32000 samples) Core loaded [inf] No ROM file header found. Map_LoROMMap PPU.RenderSub = 0 PPU.FullClipping = 1 Settings.Transparency = 1 Settings.SpeedhackGameID = 0 PPU.SFXSpeedupHack = 0 coldata_update_screen = 1 [inf] "MORTAL KOMBAT" [checksum ok] LoROM, 16Mbits, ROM, NTSC, SRAM:0Kbits, ID:____, CRC32:DEF42945 Running ROM file... Random seed is 393142296 [2017-04-13 21:51:11,828] Making new env: MortalKombat-v0 R.L.E: Retro Learning Environment (version 1.1.1) [Based upon the Arcade Learning Environment (A.L.E)] [Powered by LibRetro] Use -help for help screen. Failed to load core: /usr/local/lib/python2.7/dist-packages/rle_python_interface/snes9x2010_libretro1.so: cannot open shared object file: No such file or directory

abcp4 avatar Apr 14 '17 00:04 abcp4

Sorry, haven't looked into it yet. Hope to get to it soon.

nadavbh12 avatar Apr 20 '17 07:04 nadavbh12