

Alyssa Rosenzweig 💜: "What's this? Minecraft running…" - Treehouse Mas...
source link: https://social.treehouse.systems/@alyssa/109378606742926582
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Alyssa Rosenzweig 💜: "What's this? Minecraft running…"
@yuka As usual, my Mesa (OpenGL) driver in concert with @lina 's Linux (kernel) driver. With the needed OpenGL drivers in place, getting Minecraft working on Asahi was @yuka 's work... apparently there was some "fun" with a bundled jemalloc assuming the system used 4 KiB page, whereas Asahi uses 16 KiB pages. But I'll let her tell that story ^.^
@daeken @marcan it’s a hack IIRC. I believe Hector has a patch to fix it, but has made the explicit choice not to upstream because it’s about time software stops relying on silly assumptions like this.
Same as when FSs assumed that HW blocks were always 512 or 4096 and would die if you used enterprise SAS drives with 520 sectors (or the inverse for assuming everything was 512 and 4096 would never be a thing)
@daeken It can work on bare metal, however, the kernel cannot handle mixing different page sizes without significant changes (page sizes are treated as a constant in the kernel). The Asahi project may provide 4k kernels in future. But IMO it's not that necessary as the only real benefit I see is the ability to run Android apps natively (well, with Waydroid vs going via KVM). FEX has page table emulation in their roadmap for this year. You would probably get better performance operating in 4k native than with page table emulation (Rosetta uses 4k pages). Though from what I've heard, the way macOS switches between 4k and 16k pages are quite hacky.
@catlover999 Oh, interesting! Makes sense, thanks. My stuff on Apple Silicon (outside of the macos userland) has all been virt, so I just must've assumed at some point and forgotten it was an assumption haha
@daeken It works bare metal, but it's measurably slower in benchmarks (simply due to higher TLB/page walk overhead), and since the IOMMUs are 16K only, there are a pile of caveats and Linux needs hacks/patches to be able to handle the CPU/IOMMU page size mismatch.
It's doable and we will support it eventually, but I am deliberately not doing so right now to encourage people to fix broken software (and because it's not really ready yet). The only software with a valid excuse to use 4K pages is emulators/JITs. Everything else needs to be fixed, and I don't want the availability of 4K kernels to be an excuse not to.
@saagar @daeken @marcan note that lightweight virtual machines* (see especially libkrun) can fulfil the gap quite convincingly. Even the missing vGPU infrastructure part is getting sorted out. :)
Tbh I really don’t see a point to running 4KB page size kernels on those, the perf overhead makes it quite clear that it isn’t the mode that they were designed to run in.
* also TSO bit, upstream KVM is quite unlikely to accept custom vendor extensions tho.
@clamchowder @alyssa The CPU yes, but not the GPU nor the rest of the hardware, which makes supporting it tricky. We'll support it some day, but for now lots of things break with 4K pages (including the GPU).
@WaterSword @alyssa @lina it’s not great either way. I tried with various settings and performance-enhancing mods. Especially in full-screen resolution it drops again. But that is fine to be honest, we are at the very beginning of this development.
@orowith2os @alyssa @yuka Yes. But for Minecraft it's really hard to tell if it's the game or the driver that causes that low FPS. I think it's more the game so I am curious if something can be done to improve the FPS.
To get 1.19.2 running:
- Set appropriate GL/GLSL version overrive variables to 3.3 and 1.50 respectively
- replace jemalloc natives with fixed ones
- make sure it runs as a native Wayland client -> replace glfw natives with ones that are built with wayland support and have patches, I stole from some AUR packages
- I had the best results using weston as a compositor
Keep in mind that this is not supported, as in don’t bother the devs ;)
@alyssa @yuka Hello.
With your hardware experience, is it possible to gain your input with ToRpedo LTE on Ubuntu or Kali ? I have a few working Beta's in Python, a bit bugged out, but essentially working. Bearing in mind what Is happening in Eastern Europe and will probably happen in Taiwan, this could be very useful ! Hardware = various laptops + Ettus 210B + Ubuntu 22.10 or Kali.
Thanks in advance.
Recommend
-
8
Alyssa Nicoll: A love story — The Web & IGoogle Developers Experts is a community of passionate developers who love to share t...
-
8
Alyssa Rosenzweig on Twitter: "Debian GNU/Linux running bare metal on the Apple M1 with a mainline kernel. https://t.co/GWAtwGjqFx"Don’t miss what’s happeningPeople on Twitter are the first to know.
-
5
Alyssa Rosenzweig on Twitter: "LLVMPipe, my shoddy display controller, and hours of @svenpeter42's patience presents.... GNOME Shell on the Apple M1, bare metal. No, it's not GPU accelerated. Yes, I'm sending this tweet from it. https://t.co/P4Y...
-
8
Alyssa and Layla attempt F#!!8 days agoAlyssa and Layla attempt F#!!
-
4
Alyssa Rosenzweig on Twitter: "Anyway, with those changes we're up to a 94% pass rate for dEQP-GLES2 🙂 Pass: 13392, Fail: 642, Crash: 134, Warn: 20, Skip: 29, Timeout: 10, Flake: 39, Duration: 10:40, Remaining: 0"Don’t miss what’s happening...
-
6
Conformant open source support for Mali-G57 [LWN.net] User: Password: | |...
-
7
'the View' Co-Host Alyssa Farah Griffin Slams Trump's 'Racist' Remarks ...
-
1
-
14
The 2023 competition for the AHA’s Roy Rosenzweig PrizeThe American Historical Association is
-
7
Hector Martin: "And while we're stirring up ho…" Hector Martin@[email protected] while we're stirring up hornet's nests, I...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK