Comments (4)
Yes, you can. Using standard linux tools: Xvfb + DISPLAY + x11vnc (for example).
// In the commands below, I'm using ":1" as the display id - you can pick any number.
// This creates a "fake" framebuffer, where data will be rendered.
Xvfb :1 -screen 0 800x600x24 &
// This is "hosting" your framebuffer as VNC server (that you can use your client to connect to).
// WARNING: there are some additional options to set here, to have a secure connection.
x11vnc -display :1 -localhost &
// And then start the game - setting the DISPLAY variable, so that game is sending video to the right location.
env DISPLAY=:1.0 python3 -m gfootball.play_game
from football.
It works. 👍
But the video has a bit slower than local rendering. I guess it is related to network and VNC resolution.
Thank you very much, @cyfra .
Issue closed.
from football.
Yes, you can. Using standard linux tools: Xvfb + DISPLAY + x11vnc (for example).
// In the commands below, I'm using ":1" as the display id - you can pick any number.
// This creates a "fake" framebuffer, where data will be rendered.
Xvfb :1 -screen 0 800x600x24 &// This is "hosting" your framebuffer as VNC server (that you can use your client to connect to).
// WARNING: there are some additional options to set here, to have a secure connection.
x11vnc -display :1 -localhost &// And then start the game - setting the DISPLAY variable, so that game is sending video to the right location.
env DISPLAY=:1.0 python3 -m gfootball.play_game
Wow, thanks. Look nice.
I will try it in our local environment. :)
from football.
Hi @cyfra
With xvfb, it seems that the rendering is performed on CPU. Could we enable GPU-based rendering on remote server? Thanks!
from football.
Related Issues (20)
- Running problem
- How can solve RuntimeError: Dynamic linking causes SDL downgrade! (compiled with version 2.28.3, linked to 2.0.16)? HOT 1
- ImportError: /../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found HOT 3
- Rendering frame by frame (Headless: on a server without desktop)
- error: subprocess-exited-with-error python setup.py egg_info did not run successfully.
- Saving replay by rendering failed
- Football
- Football dates
- ImportError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0 HOT 2
- Colab example HOT 1
- working on small issues
- Error on colab
- Error: signal 11: HOT 2
- Compatibility with Pettingzoo
- Request for gfootball Installation Guide on Red Hat Linux
- Football game
- Football game
- Fotbal
- RuntimeError: This class cannot be instantiated from Python
- Example execution error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from football.