Skip to content

BedrockOnLinux 2.2.8

Choose a tag to compare

@github-actions github-actions released this 04 Oct 14:22
· 1 commit to 312b2ae297f149a3ffe6dcc75df2337ebbe32646 since this release

Added

  • Experimental OptiScaler integration for Minecraft RTX
    (#276).
    bedrock-on-linux optiscaler install downloads a pinned, checksummed
    OptiScaler v10 build — nothing is bundled — and attaches it to the active
    Minecraft build, so the game's own DLSS input can feed XeSS or FSR, and
    OptiFG frame generation, on GPUs that are not NVIDIA's. It copies the
    game's own nvngx_dlss.dll to nvngx.dll, which is what makes Minecraft
    offer its Upscaling switch under Wine. Off unless installed; optiscaler disable and uninstall take it back out. See
    docs/OPTISCALER.md. Contributed by
    @darrenintr.

Fixed

  • Minecraft's own Max Framerate no longer holds a whole CPU core
    (#173). The
    game waits for each frame's deadline by polling for window messages, and
    under Wine every empty poll is a sched_yield between two getrusage
    calls. Measured in a loaded world at 60 FPS, vsync on, on a 144 Hz display:
    the main thread, the one that builds every frame, sat at 99% of a core,
    about 70 points of it in the kernel. The launcher used to warn about this
    only with vsync off, on the assumption that vsync makes the game wait in
    its present call instead. It does not while the cap is below the display's
    refresh rate. The launcher now holds the player's own limit through
    vkd3d-proton, whose limiter sleeps. For the
    length of a session the setting reads Unlimited in game, and the
    player's value goes back into options.txt once the game has exited. A
    value chosen in game during the session is kept instead. The frame rate
    is the player's, only the wait is cheaper. BOL_FRAME_RATE=0 leaves the
    game to pace itself.

  • The game's memory stays in RAM while it runs. A desktop that runs short
    of memory pages out what was touched least recently. In a game, that is
    the world behind the player, and the whole game while its window is in the
    background. Every page then comes back through a major fault on the thread
    that needs it. Measured on a 16 GiB desktop with 13 GiB already in swap,
    with the GPU at 7-20% throughout:

    • 27,203 major faults in three seconds after coming back to the game;
    • frames of up to 983 ms;
    • one stretch of about 30 seconds without a single presented frame.

    Where the user's systemd can enforce it, the launcher now starts the game
    in a scope that may not use swap at all (MemorySwapMax=0, no privilege
    needed), so reclaim falls on the page cache and on other programs. Whether
    that works is probed at every launch through the game's own environment.
    A Flatpak, a host without systemd, or a memory controller that is not
    delegated starts the game exactly as before. BOL_ALLOW_GAME_SWAP=1 turns
    it off.

  • A controller that Steam Input drives moves the launcher's highlight once
    per press
    (#288).
    With Steam Input on — Game Mode on a Steam Deck, Big Picture anywhere — a
    PlayStation controller reached the launcher twice: as itself, Wireless
    Controller
    , and as the virtual Microsoft X-Box 360 pad Steam feeds on its
    behalf. Every press counted twice, and turning Steam Input off fixed the
    launcher only to lose the controller in the game. Steam names the
    controllers it has taken over in the environment of everything it starts,
    SDL_GAMECONTROLLER_IGNORE_DEVICES, so that programs keep its virtual pad
    alone; the launcher now reads that list the way SDL does. Started outside
    Steam, nothing changes.

  • A licence Microsoft refuses at PLAY is shown in a dialog
    (#280). When the
    account had reached its limit of ten Microsoft Store devices, the game did
    not start and the launcher said why only in its activity log, so PLAY
    looked as if it had done nothing. The launch now ends as Minecraft could
    not start
    , with the reason and the page where devices are removed,
    https://account.microsoft.com/devices/content; a shortcut that starts the
    game without the window shows it as a desktop notification.

  • Exporting works: structure blocks, worlds, the album
    (#167). Every
    export Minecraft offers asks Windows for its save dialog,
    Windows.Storage.Pickers.FileSavePicker, and the engine had none: the
    request failed as a class that is not registered, and a structure block's
    export — like Export World — stayed on its loading screen for ever, with
    no file written. The engine (native19) now implements it: the dialog opens
    where the game suggests, with the file name and the file type it asks for,
    asks before replacing a file, and hands the chosen file back to the game.
    The launcher registers the class in the Wine prefix before every launch,
    since Wine would not add it to an existing one. Checked with a program that
    asks for the dialog exactly the way Minecraft does: the file is created and
    its path handed back, an existing file is left intact, and a dismissed
    dialog returns nothing.

  • A Microsoft Store sign-in that was only half kept is asked for again,
    instead of ending the download on NotFound

    (#260). The
    downloader keeps the Store session in a keyring, and a license request
    reads the account from it as well as its tokens. The launcher counted the
    tokens alone as a sign-in, so a keyring holding them without the account
    started the download anyway, which died at 0 % on called
    Result::unwrap() on an Err value: NotFound
    , on every mirror in turn.
    Reproduced by deleting that one entry from a copy of a working keyring. The
    launcher now requires both, and offers the Store sign-in when either is
    missing.

  • The Minecraft downloader follows Xodus upstream again. It moves to
    xodus-gaming/xodus@64d39eb, 24 commits past the one it was pinned to:
    malformed and oversized licensing replies are handled instead of taking
    the download down, a length underflow in the licence parser is guarded,
    DisplayCatalog replies it could not parse are read, and the MSIXVC reader
    behind every download and launch was reworked. The launcher's patches are
    carried on top, and a fifth joins them for
    #260: a keyring
    missing any part of the Store session — the device's or the account's —
    now ends the download on not logged in: … sign in again, which the
    launcher answers with the Store sign-in, instead of a panic. Checked here
    end to end: licensing, a full download of 1.26.52.3, and the decryption
    every launch goes through, which gives the same executable, byte for
    byte, as the previous build. Xodus now needs Rust 1.98 to build.

  • The launcher gives back disk space it never used again
    (#289,
    #295). Two kinds
    of leftovers went unnoticed. Launchers before 2.1 downloaded every
    Minecraft version as a zip of about 1.3 GB and kept it in their cache once
    it was extracted; nothing has read one since Minecraft comes from Microsoft
    through Xodus. And the first engine update set aside a copy of every
    system DLL of the Wine prefix it refreshed — some 1,100 of Wine's own
    files, 1.1 GB on the machine this was measured on — which nothing ever put
    back. Both go at the next PLAY. Copies of DLLs that did not come from the
    engine, such as DXVK's and vkd3d-proton's, are kept, and no world, pack or
    setting is touched.

  • The password prompt of the first Store sign-in is explained before it
    appears
    (#297).
    Xodus registers the PC as a Microsoft Store device the first time, as
    Windows does, and reads the firmware's system information for it
    (manufacturer, model, serial number and UUID). Only root can read that
    record, so it asks through pkexec, and the desktop showed a password
    prompt for cat /sys/firmware/dmi/entries/1-0/raw that nothing explained.
    The launcher now says what the prompt is and that cancelling it is fine:
    the PC is then registered without that record, as it always is in the
    Flatpak.

  • The graphics-safety block says how to apply its override
    (#301). It ended
    on a bare BOL_ALLOW_UNSAFE_GPU=1, which only works in the launcher's own
    environment: flatpak run passes nothing from the calling shell into the
    sandbox, and the custom environment variables in Settings only reach the
    game. Typed into either, it changed nothing. The message now gives the
    command line for the installation it runs from, such as
    flatpak run --env=BOL_ALLOW_UNSAFE_GPU=1 io.github.wyze3306.BedrockOnLinux.

  • GameInput follows the Minecraft build it serves
    (#300). The
    camera's mouse movement and every controller reach Minecraft through
    Microsoft's GameInput, which the launcher installs into the Wine prefix
    from the game's own package. It did that once: a prefix kept the GameInput
    of the build it was made for, through every Minecraft update after it,
    where Windows brings GameInput up to the version each build ships. At PLAY
    the launcher now compares the two and installs the game's when it is the
    newer one. A newer GameInput than the game's is kept.

  • A launch whose launcher was killed with its Flatpak or container is no
    longer reported as still running

    (#299). The
    graphics-safety record of a launch names the launcher by its process ID,
    and a Flatpak or a container gives every session a namespace of its own, so
    the next session's launcher usually has the very ID the last one recorded.
    The launcher then took itself for the session it was blocked by, and asked
    for it to be closed or force-stopped when nothing was left to stop. The
    record now carries the process's start time as well, so that session reads
    as what it is: interrupted during this boot.

  • The launcher refuses to run through sudo
    (#299). As root
    it read root's copy of the game, the sign-ins and the safety records:
    sudo bedrock-on-linux doctor --acknowledge-gpu-crash found no incident to
    acknowledge, because the incident was recorded in the user's data. Where
    sudo keeps HOME, it left files that only root can change in the user's
    data instead. Nothing in the launcher needs root, so it now says to run it
    without sudo. BOL_ALLOW_ROOT=1 overrides this.

  • A Minecraft download that stops moving says so, and is retried
    (#304). A stalled
    download looked like one about to finish: the bar sat on its last value
    while xodus-cli asked Microsoft for the same data again without a word, or
    waited on a disk it could not write to. A write error is now shown the moment
    it happens, with what to do about a full disk; after 90 seconds without any
    data the launcher says the download is waiting; after 10 minutes it stops that
    attempt and starts again from Microsoft's other mirror.

  • ChromeOS: the launcher window opens, and a crash on a virtual GPU points
    at the setting that fixes it

    (#302). In
    ChromeOS's Linux container, Qt's Wayland backend crashed the window on
    ChromeOS's compositor; the launcher now draws it through XWayland there,
    unless QT_QPA_PLATFORM says otherwise. And a game that dies of an access
    violation on a virtio-gpu device, as Minecraft did on a Chromebook's Venus
    driver ("Game closed (exit 84)"), is now diagnosed with the fix that worked
    there: Settings ▸ Advanced ▸ Legacy compatibility renderer.

  • An Intel GPU that recovered from a hang no longer blocks every launch
    until a reboot
    (#301).
    The graphics-safety check read any "GPU HANG" from Intel's driver in the
    kernel log as a fatal fault. The driver logs one for every hang it then
    resets its way out of, and a laptop with a UHD 610 was refused with every
    setting until it rebooted. A hang the driver recovered from is now a warning
    at PLAY and in Doctor. A GPU the driver gave up on ("wedged", a failed
    reset) still blocks, as do NVIDIA and AMD faults.

  • The README says how to remove everything
    (#295). Removing
    the app left the game, the Wine prefix, the engine and its runtime behind,
    more than 8 GB for one reporter, and nothing said where they were. The new
    Uninstalling section lists each location, what to save first (the worlds)
    and the one Flatpak command that does it all.

  • The mouse wheel no longer closes the game under the Wayland driver
    (#296). With
    BOL_INPUT=wayland or PROTON_ENABLE_WAYLAND=1, the first turn of the
    wheel ended the game with "listener function for opcode 9 of wl_pointer is
    NULL". Wine's Wayland driver asked the compositor for the newest seat
    version, whose wheel event its pointer handler has no place for when it is
    built against the libwayland the engine is built with. The engine (native20)
    now asks for the version before it, which delivers the wheel the way the
    driver already handles.

  • A launch interrupted by its launcher no longer blocks PLAY until a
    reboot
    (#299).
    When the launcher was closed with its terminal, its Flatpak or its
    container while the game ran, its safety record stayed "running", and every
    launch was refused until the machine restarted; one Guix user deleted the
    file by hand. PLAY now clears that record itself when its launcher is gone,
    nothing of the session is left running and the boot is the same one, then
    runs the kernel and display checks as before. A session whose launcher is
    still alive, and one interrupted by a reboot, are handled as they were.

  • The test suite passes in a packaging sandbox
    (#303). Guix
    builds without /bin/sh, /usr/bin/env or a network, and with a long
    temporary directory. Stand-in programs written by the tests relied on the
    first two, so some tests reached out to GitHub and one waited forever; the
    suite now runs to the end there.

Build provenance

Application artifacts built from source, consuming this
fork's attested, pinned engine and OpenSSL-XCurl set.

Bill of materials (pinned + reproducible):

  • Managed engine: wow64-archs-native20 (sha256 2f30533b249954438bf6b425631539c8d8036261ce25cffa0d1ea5d30f1d3e27)
  • WineGDK source: 75637b674e1f191e65753663c4c0c32bea05ba6e (prefix sha256 e76d21e706dec9775a41b176b48e69dade034a8248b6f4b9a169dc4c336e2600)
  • vkd3d-proton: 3.0.1-nv-dgc (output-hashes sha256 09d22ca93ae4b0a2f99294a43cec6a89a2bd92b96dffb14f2fcc5cf66685b3df)
  • OpenSSL-XCurl set: 504bb166e4e7

Verify any file with:

gh attestation verify <file> --repo Wyze3306/BedrockOnLinux

What's Changed

New Contributors

Full Changelog: v2.2.7...v2.2.8