[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Why custom flushBuffer code?
From:       Martin =?utf-8?q?Gr=C3=A4=C3=9Flin?= <kde () martin-graesslin ! com>
Date:       2010-12-01 19:14:47
Message-ID: 201012012015.01092.kde () martin-graesslin ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

can anyone explain me why we need the code in 
void SceneOpenGL::flushBuffer( int mask, QRegion damage )
for double buffering?

I just tried to implement it with ES and none of the used API calls is 
present. There is neither an equivialent to glxCopySubBuffer nor the 
glBitmap/glCopyPixel combo.

So my ES code is currently running without anything in paintBackground and 
without anything in flushBuffer except eglSwapBuffer. And it's working fine. I 
cannot notice any problems.

So if there is no reason for that code, I would dare to remove the flushBuffer 
and paintBackground code. This should improve the rendering quite a lot as 
it's many glScissor followed by single quad painting.

Cheers
Martin

["signature.asc" (application/pgp-signature)]

_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic