Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 44

Thread: KWin Can Cause A Performance Hit Too

  1. #21
    Join Date
    Nov 2008
    Posts
    755

    Default

    Quote Originally Posted by mat69 View Post
    [...] most people probably don't have the knowledge to know that, since compositing is an additional pass, it cannot make things faster in general.

    That conflicts with some of the benchmarks Michael did.
    that's not generally true, though.

    IIRC, the framebuffer that drives your displays must have a linear memory layout, because the output needs to read it in a linear fashion. Otherwise the output would wildly jump between different memory locations and eat too much memory bandwidth.

    An offscreen buffer can be in any memory layout the driver desires, i.e. swizzled. Rendering to a swizzled buffer is faster.
    For applications that render a lot, it may well be more efficient to render to a swizzled buffer all the way, then do a single additional copy to the linear buffer.

  2. #22
    Join Date
    Oct 2009
    Posts
    111

    Default

    Just found that [1] blog entry by one of the compiz devs, not sure if it was posted in the comiz-benchmark-thread but either way I post it here.

    Especially interesting is the So how does this affect benchmarks? part.

    [1] http://smspillaz.wordpress.com/2010/...he-benchmarks/

  3. #23
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    174

    Default

    Quote Originally Posted by Xeno View Post
    May I ask you what's your distro?
    Here kwin suspends compositing just fine without tinkering with config files (Fedora12).
    Maybe that's another Ubuntu thing?

    Just done quick test with Glaxium on i915 no difference between composite and no-composite ~38 fps
    Yes it's kubuntu, it has always worked this way. Maybe there is some patching that it is applied to the original sources.

  4. #24
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    880

    Default

    Quote Originally Posted by Licaon View Post
    Is Ubuntu really messing up anything it touches ?
    What is UnredirectFullscreen= set to in ~/.kde/share/config/kwinrc for Debian Sid's KDE 4.4.3 / 64bit?

    If it's set to true then there's your reason for a performance difference.

    It would be nice for the KDE guys to make a user facing setting for this in their GUI at some stage.

  5. #25
    Join Date
    Jun 2006
    Posts
    342

    Default

    Quote Originally Posted by mugginz View Post
    What is UnredirectFullscreen= set to in ~/.kde/share/config/kwinrc for Debian Sid's KDE 4.4.3 / 64bit?
    there was no UnredirectFullscreen= in kwinrc by default.

    KWin/OpenGL/UnredirectFullscreen=true: 613 / 12.8 / 24.3 / 49.9
    KWin/Composition disabled in xorg.conf: 614 / 12.8 / 24.4 / 50.0

  6. #26
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    880

    Default

    Quote Originally Posted by Licaon View Post
    there was no UnredirectFullscreen= in kwinrc by default.

    KWin/OpenGL/UnredirectFullscreen=true: 613 / 12.8 / 24.3 / 49.9
    KWin/Composition disabled in xorg.conf: 614 / 12.8 / 24.4 / 50.0
    The KDE default is to unredirect full screen gl apps so I guess it makes sense to do it if there's no explicit setting made.

    The Ubuntu behavior for unredirect=false is because of screen corruption issues some people were having and is the more reliable default, just not the fastest. I'd say they made the right decision as well. It's better to have slower but working as apposed to faster but broken for the majority of their users.

  7. #27
    Join Date
    Jun 2006
    Posts
    342

    Default

    Quote Originally Posted by mugginz View Post
    The KDE default is to unredirect full screen gl apps so I guess it makes sense to do it if there's no explicit setting made.
    i don't know, there's little info on the web about this setting mostly bug reports that say one needs to enable this, so maybe it's not actually enabled by default

    i'll retest w/ & w/o unredirect and w/o composition as soon as possible in all 3 Unigine benches

  8. #28
    Join Date
    Jun 2006
    Posts
    342

    Default

    ...and color me surprised

    Looks like not having UnredirectFullscreen set in kwinrc means that is enabled by default at least in Debian Sid KDE 4

    KWin/OpenGL/UnredirectFullscreen=false: 555 / 11.0 / 22.0 / 46.1
    KWin/OpenGL/UnredirectFullscreen=true: 613 / 12.8 / 24.3 / 49.9
    KWin/Composition disabled in xorg.conf: 614 / 12.8 / 24.4 / 50.0

    NoCompos/Unredirect/NoUnredirect: 100% / 99.837% / 90.391%

    So that's about 9.609% performance difference and while this might not be a big deal looking at the numbers it is a big deal when running Unigine Heaven 2.1 'cause IT STUTTERS LIKE HELL every 2 seconds... simply horrible

    Now, about unredirectfullscreen i've read why is set to false in Kubuntu yet using it unknowingly set to true all this time i find it hard to remember how many times i've seen any corruption with composition, but i don't use all the bells&whistles like the cube and such and only have some animations and some transparency set up.

  9. #29
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    880

    Default

    Quote Originally Posted by Licaon View Post
    Now, about unredirectfullscreen i've read why is set to false in Kubuntu yet using it unknowingly set to true all this time i find it hard to remember how many times i've seen any corruption with composition, but i don't use all the bells&whistles like the cube and such and only have some animations and some transparency set up.
    Sadly, while doing my own tests in regards to this I had kwin completely bork after exiting Heaven with unredirectfullscreen=true so it would seen there's still some issues with it. I had to logout and back in again to get back to a usable desktop.

  10. #30
    Join Date
    Jun 2006
    Posts
    342

    Default

    Quote Originally Posted by mugginz View Post
    Sadly, while doing my own tests in regards to this I had kwin completely bork after exiting Heaven with unredirectfullscreen=true so it would seen there's still some issues with it. I had to logout and back in again to get back to a usable desktop.
    what distro?
    what KDE 4 version?
    what composition backend OpenGL or XRender?
    if OpenGL, with Texture from Pixmap or Shared Memory?
    what video card?
    did you change the resolution while inside the Heaven bench ?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •