nvml: add rtd3 memory workaround, fix slog imports (#1587)

* NVML: only read memory usage if utilization > 0% to allow rtd3, #1522

* logging: /x/exp/slog -> log/slog everywhere, fixes log instance inconsistencies
This commit is contained in:
crimist
2026-01-05 12:26:59 -08:00
committed by GitHub
parent 4547ff7b5d
commit 475c53a55d
5 changed files with 31 additions and 19 deletions

View File

@@ -8,7 +8,7 @@ import (
"strings"
"github.com/ebitengine/purego"
"golang.org/x/exp/slog"
"log/slog"
)
func openLibrary(name string) (uintptr, error) {