• 0 Posts
  • 20 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle


  • Writing graphics code in a unified model is quite a bit different from the conventional x86 model.

    It isn’t. The difference is pretty small, and it’s just optimizations for when copies can be skipped and not a radical change in the approach of how rendering is done.

    Intel would need their own equivalent to Metal if they wanted to do a similar move.

    Not at all. If big-ish changes were required, they could be exposed as Vulkan extensions.

    I don’t know enough about Vulkan to say if it’s compatible with this kind of approach

    Of course Vulkan, the graphics API used on all modern phones except Apple’s, supports using integrated graphics efficiently.


  • It is closed in the sense that all the ISO specs are closed - you have to pay a decent sum of money to see the specs, and you’re not allowed to just copy them and show them to people that haven’t bought access.

    They are not closed like HDMI though - if you implement them, copy constants from the specs into the Linux kernel for example, that’s fine. Having actually open standards like Wayland would be a lot better though ofc…




  • Zamundaaa@discuss.tchncs.detoLinux@lemmy.mlSwitched from Ubuntu to Debian yesterday
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    2
    ·
    edit-2
    9 months ago

    Unfortunately Debian stable doesn’t ship our bugfix releases after the major Debian version gets tagged - KDE Plasma in Debian is currently at 5.27.5, and 5.27.10 was released upstream two months ago.

    In other words, you’ll be experiencing bugs that have long been fixed… I’d advise to stay away from Debian for KDE Plasma because of that. If you want a Debian based distro with a good KDE Plasma experience, KUbuntu is likely a better choice, even with forced snaps. If you don’t need Debian though I’d recommend taking a look at Fedora KDE or Arch (derivatives).



  • The 1 second present timeout still only works for XWayland

    Oof, I thought the corresponding MR for Wayland was merged… But it was from Sebastian and after he got into a heated discussion again and started cursing, the MR got closed by someone else :|

    realistically unless SDL2, GLFW or whatever engine a gamedev is using handles it for them they just don’t have the time to worry about what GTK, Qt, or XDG shell does

    SDL does handle it, but only for OpenGL; it can’t do anything about Vulkan. GLFW doesn’t do anything about it either, so that is pretty annoying.

    I believe in the glorious Wayland future… I just wish it would get here a bit faster

    Don’t we all. Let’s hope the current upstream approach to fix this issue gets somewhere sooner than later…







  • What are the not-a-bugs? Things like covering up a Wayland window will block it’s rendering thread indefinitely with no way to detect it happens to handle it. This can lock up some games, or cause you to time out in a networked application. Some Wayland core folks don’t want applications to know if their window is visible or not because it’s mild information about a user’s attention that should be private. Every game dev on the other hand is asking “WTF!?” as it causes their games to break randomly

    Please don’t make up what “Wayland core folks” think. You don’t know it, and your claims are waay off.

    It’s not about security. It was intended to allow the compositor to throttle apps to improve efficiency… Which of course in practice doesn’t work like this at all, because OpenGL swap buffers and Vulkan FIFO presentation modes were never intended to be used this way.

    As for why that hasn’t been fixed yet, it’s not as big of a problem anymore:

    • Mesa (at least for Vulkan) and Xwayland gurantee one frame per second as a minimum refresh rate
    • toolkits and libraries use mailbox presentation internally and check frame callbacks themselves for when to render
    • xdg shell now contains a flag for apps to know to inhibit rendering because they’re hidden. That doesn’t guarantee that presentation won’t otherwise block though
    • a (set of) protocol(s) is being worked on to replace frame callbacks with a mechanism actually suited for OpenGL and Vulkan

    Another mild example is that windows cannot be raised except by the user or by launching them. This is supposed to be a mild security precaution so a program can’t pop up a legitimate looking dialog over another application and trick the user. Realistically it means that applications can’t open and focus URL in your web or file browser. Instead they have to give you a notification telling you “Firefox is Ready” and make you do it manually.

    That’s not even close to how activation works on Wayland, and no, it’s not just a security thing, it’s a usability thing. Apps can only raise themselves if the currently focused app gives them focus, so that random apps can’t cover up what you’re working on just cause they need to show you an ad or an “important” pop up question or whatever. If it doesn’t work for a specific app, make a bug report about it to the app.