pyglet.info
pyglet.info records system, driver, and active graphics-context details
for bug reports:
python -m pyglet.info > info.txt
Use the isolated graphics probe to test the OpenGL and OpenGL ES versions supported by pyglet on that machine. It also compiles pyglet’s built-in startup shaders for each successful context:
python -m pyglet.info --probe-graphics > info.txt
Test one specific request with --backend and --version:
python -m pyglet.info --backend gles3 --version 3.1
Command-line options
python -m pyglet.info accepts the following public options:
Option |
Purpose |
|---|---|
|
Show the command-line help text. |
|
Include complete graphics and audio extension lists instead of shortened previews. |
|
Include full tracebacks when a diagnostic section fails. |
|
Use |
|
Explicitly request an OpenGL or OpenGL ES version for the main report. Requires |
|
Test pyglet’s supported OpenGL-family requests in isolated processes and print a recommendation. |
The --graphics-worker option is reserved for the probe’s internal subprocesses and is not part of the public CLI.
Get environment information useful for debugging.
Intended usage is to create a file for bug reports, e.g.:
python -m pyglet.info > info.txt
Graphics API and version support can be tested in isolated subprocesses:
python -m pyglet.info --probe-graphics > info.txt
One specific configuration can also be requested:
python -m pyglet.info --backend gles3 --version 3.1
- dump_backend(window: Any | None = None) None
Dump active backend details and selected surface config.
- Return type:
- dump_backend_platform_api(
- context: OpenGLSurfaceContext,
Dump platform-specific OpenGL details for the active backend.
- Return type:
- dump_gl(
- context: OpenGLSurfaceContext | None = None,
Backward-compatible wrapper for
dump_graphics_api().- Return type:
- dump_gl_platform(
- context: OpenGLSurfaceContext,
Backward-compatible wrapper for
dump_backend_platform_api().- Return type:
- dump_glx(
- context: OpenGLSurfaceContext | None = None,
Backward-compatible wrapper for
dump_backend_glx().- Return type:
- dump_graphics_api(
- context: OpenGLSurfaceContext | None = None,
Dump active graphics API info for the given context.
- Return type:
- dump_graphics_probe() None
Probe pyglet graphics backends and versions in isolated processes.
- Return type:
- dump_wgl(
- context: OpenGLSurfaceContext | None = None,
Backward-compatible wrapper for
dump_backend_wgl().- Return type: