syncobj: restore SHM buffer reset (#9675)
reset shm buffers early to mitigate stuttering animations, also reuse the monitors eglSync and store the eglsync per monitor. this however reintroduces flickering in dbeaver nonsyncobj application.
This commit is contained in:
parent
155eba57d8
commit
f6ca4bac51
3 changed files with 11 additions and 13 deletions
|
|
@ -471,12 +471,10 @@ void CWLSurfaceResource::commitPendingState(SSurfaceState& state) {
|
|||
nullptr);
|
||||
}
|
||||
|
||||
// release the buffer if it's synchronous as update() has done everything thats needed
|
||||
// release the buffer if it's synchronous (SHM) as update() has done everything thats needed
|
||||
// so we can let the app know we're done.
|
||||
// if (!syncobj && current.buffer && current.buffer->buffer && current.buffer->buffer->isSynchronous()) {
|
||||
// dropCurrentBuffer(); // lets not drop it at all, it will get dropped on next commit if a new buffer arrives.
|
||||
// solves flickering on nonsyncobj apps on explicit sync.
|
||||
// }
|
||||
if (current.buffer && current.buffer->buffer && current.buffer->buffer->isSynchronous())
|
||||
dropCurrentBuffer();
|
||||
}
|
||||
|
||||
void CWLSurfaceResource::updateCursorShm(CRegion damage) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue