Closed mcuadros closed 3 months ago
Problem solved. It looks like ebiten needs access to /dev/dri
docker run -it --rm \
--device /dev/dri \
--net=host \
--env="DISPLAY" \
ghcr.io/mcuadros/ebiten-environment:1.22-bookworm \
go run github.com/hajimehoshi/ebiten/v2/examples/2048@latest
Ebitengine Version
v2.7.8
Operating System
Go Version (
go version
)1.22
What steps will reproduce the problem?
You can run the 2048 example inside a docker container executing this command (in Linux):
If, for security reasons you rather not use a docker image, you can generate it using this docker file:
What is the expected result?
Normal CPU usage, the same when its running directly on the host
What happens instead?
When ebiten engine runs inside of a docker container, the CPU usage is extremely high close to 100% in all the CPUs.
Anything else you feel useful to add?
No response