• Michael Murphy (S76)@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    2 days ago

    See the Ubuntu Summit 2024 talk: https://www.youtube.com/watch?v=bwrBKccfYws

    It’s not resources, in fact, this Alpha performs pretty poorly on its own vs Gnome

    I haven’t seen any benchmark where GNOME was more performant than COSMIC. Despite alpha status, it is already much more responsive than GNOME.

    GNOME uses a single thread to render all displays in a multi-display configuration. This is often so slow that they need to rely on double or even triple buffering when the frame rate lags behind the display’s refresh rate. Meanwhile in COSMIC, thanks to the thread safety features of Rust, it was easy to implement thread-per-display multi-threaded rendering. This means that each display is rendered and composited independently on their own respective threads.

    GNOME’s compositor also has an entire JavaScript runtime bundled inside of it, which it uses for drawing interfaces and handling application logic for those interfaces. All within the same process as the compositor, slowing down its event loop. COSMIC instead keeps the compositor process very lean, with all desktop interfaces running in their own isolated processes outside of the compositor via wayland’s layer-shell protocol.