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

Cannot disable GUI for FCEUX #9

Open
nbopardi opened this issue Aug 13, 2017 · 19 comments
Open

Cannot disable GUI for FCEUX #9

nbopardi opened this issue Aug 13, 2017 · 19 comments

Comments

@nbopardi
Copy link

I am trying to run the FCEUX emulator on AWS without rendering so that training can occur faster. So far I have tried setting no_render to False, and adding --nogui 1 to cmd_args in nes_env.py, but have had no luck. Any help is appreciated.

@MarvinYeh
Copy link

I have same problem too. My server doesn't support GUI so is there anyway can get the observation without calling FCEUX?

@shinshiner
Copy link

I have the same problem too. Have you found any way to solve it?

@ppaquette
Copy link
Owner

ppaquette commented Sep 16, 2017 via email

@shinshiner
Copy link

Hello Pcpaquette, by the way, this environment is written by you and uploaded to gym. If you can not disable the GUI, how do you train the RL model when you want to test some RL algorithms? Do you open the game windows all the time, or there may be some other ways?

@shinshiner
Copy link

If I can not disable the GUI, is there any ways to speed up the game?

@ppaquette
Copy link
Owner

ppaquette commented Sep 16, 2017 via email

@kolt-mcb
Copy link

Here is an example twitch.tv/koltafrickenfer, am obviously interested in this as well.

@shinshiner
Copy link

By now, I use your Tiles environment, which just return an array instead of image, and I can pass the level one within 2 seconds. From your point of view, if I disable the GUI support, will it become faster?

@kolt-mcb
Copy link

I think you can still use the image in my env/code, if that is broken it was not intended.

As far as disabling rendering, this is something you would have much more luck asking the developers of fceux, I know that theoretically it is possible, the Atari emulator is capable of this exact feature, but that doesn't mean anything about fceux.

@shinshiner
Copy link

I compile a no GUI version of fceux, but it run slower than my oringinal version...

@kolt-mcb
Copy link

wow interesting, I thought this would be so much work I never even tried. I'l give it a go as well. can you let me know what os/hardware you attempted this on? I run most my stuff in docker for testing.

@shinshiner
Copy link

I run most of my codes in Ubuntu14.04 and my cpu is Intel i5-5200U

@kolt-mcb
Copy link

I have compiled fceux on ubuntu 17.04 (I think might be 16.xx) and disabled gtk2 and 3, I dont know what else I would do to compile with out a gui but I can confirm it is not this. Fceux will still launch with a gui stating an error loading. How did you compile this for server rendering?

@shinshiner
Copy link

I download the 2.2.2 version from here and follow the instructions in README-SDL, the important thing is to setting GTK to 0 in the SConstruct build file.

@kolt-mcb
Copy link

hmmm thats what I tried, il give it another go tomorrow.

@MarvinYeh
Copy link

@koltafrickenfer Your Channel so coooooool!!!
Still have no luck in blocking GUI.

@kolt-mcb
Copy link

I have been doing some research. This is not as straight forward as described, im linking a pretty infamous project, this apparently has a modified fceux branch in the fceu folder, I haven't had time to try this but will in the next few days.

@kolt-mcb
Copy link

I have created a repo for this project here. It does not yet compile. I also have no idea what im doing.

@valiro21
Copy link

valiro21 commented Jan 23, 2018

You can try to run headlessly using Xvfb . I am currently doing so, with the following commands:

Xvfb :10 -ac -screen 0 1024x768x24 >/dev/null 2>/dev/null &
DISPLAY=:10 python3 train.py

Optionally, if you want to see how it is behaving, you can use x11vnc to stream the virtual display.

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

6 participants