Skip to content

improving game_ai rendering code on Linux platforms #7

Description

@Netherquark

currently if we try to multithread the train() function in train.py, the game attempts to instantiate multiple xservers, or something similar. SDL is using Xserver as a renderer by default, we can change this but Wayland is a different headache. Currently the single threaded X version should work on any/all Linux platforms via native X11 or XWayland.
Logs:

pygame 2.5.2 (SDL 2.26.5, Python 3.12.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
X connection to :0 broken (explicit kill or server shutdown).
[xcb] Unknown sequence number while processing queue
[xcb] You called XInitThreads, this is not your fault
[xcb] Aborting, sorry about that.
python: xcb_io.c:278: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 92 requests (92 known processed) with 0 events remaining.
X connection to :0 broken (explicit kill or server shutdown).
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 92 requests (92 known processed) with 0 events remaining.
XIO:  fatal IO error 2 (No such file or directory) on X server ":0"
      after 93 requests (93 known processed) with 0 events remaining.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions