@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias RenderingPreference

    RenderingPreference: "auto" | "gpu" | "software"

    The user's saved rendering choice: "auto" (the player decides: the GPU where this system has a GPU renderer that is not ruled out, software elsewhere), "gpu" or "software". It applies from the next start.

    The plugin turns the saved choice into the words its settings page shows. preference is what the user chose, not what draws now: RenderingState.nextMode says what the next start will use.

    const { preference } = await plugin.rendering.state();
    // One word per choice; the Record type makes sure none is missing.
    const words: Record<RenderingPreference, string> = {
    auto: "Automatic",
    gpu: "GPU",
    software: "Software",
    };
    console.log(words[preference]);

    0.5.13

    1.5.35