mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 10:09:01 -06:00
With GPU rendering on and no graphics adapter at all (wgpu: "no GPU adapter among …", e.g. no Vulkan loader: a `cargo run` outside `nix develop` on NixOS), every render ran on the CPU, much slower, and only Settings ▸ Performance, Help ▸ System Info and `perf.gpuReason` said why. The desktop app now queues one start-up notice per session once the device has been tried (`gpu::ready()`, never blocking): "No graphics processor found: LightCraft renders on the CPU, which is much slower. Details in Help → System Info.", on Linux with "On NixOS, start it from `nix develop`." (→, not ▸: no installed font paints ▸.) `panels::notices::gpu_notice` decides from the reason: nothing when the GPU was turned off (preference, LIGHTCRAFT_GPU, LIGHTCRAFT_GPU_BACKEND=off), only a software adapter was skipped, or it failed later. Headless sessions and tests never show it (`app.gpu_notice` is set by the desktop app only). Translated in all nine catalogs; one README sentence in the Nix section. Co-Authored-By: Claude <noreply@anthropic.com>