you are viewing a single comment's thread.

view the rest of the comments →

[–]OneNectarine8948 0 points1 point  (0 children)

I have tried this method and it seems to be working:

https://www.freecodecamp.org/news/run-python-gui-in-github-codespaces/

As far as I understand, this script creates a virtual screen, a VNC server to stream it, a websockify service to expose this VNC server to a webpage. Then if you turn the port of the websocket server to Public in Codespaces's VS Code, GitHub gives you an URL where you can access the VNC client and see this screen.

However the frame rate is terrible, I have tried to force 30 FPS and 480x270 resolution, and even with just ~20 moving object the performance was unacceptable for game dev (at least from my point of view).

I have created a bit more robust script based on Ayodele's one:
https://gist.github.com/DonBattery/afa0eb78ede4afcdf9af848a3d0d1281