Skip to content

Commit 3d8f8ee

Browse files
Bot Updating Documentation
1 parent 6b0c74f commit 3d8f8ee

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/images/docker-baseimage-selkies.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,21 @@ curl -X POST http://localhost:8083/tokens \
252252
253253
Clients in this mode must connect with a valid token (`?token=...`) to establish a WebSocket connection.
254254
255+
### All GPU Acceleration - use sane resolutions
256+
257+
When using 3d acceleration via Nvidia DRM or DRI3 it is important to clamp the virtual display to a reasonable max resolution. This can be achieved with the environment setting:
258+
259+
* `-e MAX_RESOLUTION=3840x2160`
260+
261+
This will set the total virtual framebuffer to 4K, you can also set a manual resolution to achieve this.
262+
By default the virtual monitor in the session is 16K to support large monitors and dual display configurations. Leaving it this large has no impact on CPU based performance but costs GPU memory usage and memory bandwidth when leveraging one for acceleration. If you have performance issues in an accelerated session, try clamping the resolution to 1080p and work up from there:
263+
264+
```
265+
-e SELKIES_MANUAL_WIDTH=1920
266+
-e SELKIES_MANUAL_HEIGHT=1080
267+
-e MAX_RESOLUTION=1920x1080
268+
```
269+
255270
### DRI3 GPU Acceleration
256271
257272
For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using:

0 commit comments

Comments
 (0)