pdfcraft/docs
Reinhard Schuerer dc4b3eee84
Fix #378: draw on the GPU that drives the primary display on Windows (#631)
* Fix #378: draw on the GPU that drives the primary display on Windows

The low-power preference picked the AMD Ryzen integrated GPU on a desktop
whose monitors all hang off an NVIDIA card. Presenting from the headless
iGPU to a window on another GPU took the AMD display driver down, blacking
out every monitor for two minutes before PdfCraft exited.

Windows now gets the display-aware adapter choice Linux already had:
EnumDisplayDevices (through the safe `winsafe` crate, MIT) says which
adapter drives each desktop display and which is primary; `pick_adapter`
matches that to the wgpu adapters by PCI ids. The GPU driving the primary
display wins, as the built-in panel does on Linux (#8). The log names the
GPU chosen, the first question when a window stays black.

Synthetic tests cover the Windows device-id parser and the primary-display
rule; a live test checks the enumeration on the running machine. Verified
on a Ryzen 7000 + RTX 3090 desktop: the app now starts on the 3090.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XBMGuLLMhs1h8orSxcJXER

* 631: the winsafe feature comment says user (and kernel)

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-09 19:10:06 -04:00
..
brand Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
images Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
contributors.md Restore #196, #202, #203 and the macOS release-runner change, reverted by the i18n chain (#229) 2026-10-08 03:33:35 -04:00
development.md Fix #378: draw on the GPU that drives the primary display on Windows (#631) 2026-10-09 19:10:06 -04:00
editing-images.md M7: select and edit grouped PDF figures (Form XObjects) (#450) 2026-10-09 14:45:49 -04:00
localization.md i18n: complete the Japanese catalog (105 missing strings) and check it like fr/de/ru/zh-hans (#587) 2026-10-09 18:45:11 -04:00
mcp.md MCP: common command tools, session resources and client hints (#451) 2026-10-09 14:46:24 -04:00
releasing.md Refs #103: ship the OCR models in the desktop release packages (#630) 2026-10-09 18:42:23 -04:00