Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading in gym-rle #2

Open
abcp4 opened this issue Apr 12, 2017 · 3 comments
Open

Multithreading in gym-rle #2

abcp4 opened this issue Apr 12, 2017 · 3 comments

Comments

@abcp4
Copy link

abcp4 commented Apr 12, 2017

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)
@nadavbh12
Copy link
Owner

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 :-)

@abcp4
Copy link
Author

abcp4 commented Apr 14, 2017

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

@nadavbh12
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants