mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
st/nine: Bump num of backbuffers for tearfree thread_submit
Running some high fps benchmarks, thread_submit gets subpar fps with the option tearfree_discard. Increasing the number of backbuffers fixes it. Signed-off-by: Axel Davy <davyaxel0@gmail.com> Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
This commit is contained in:
parent
53f4766a3e
commit
062c4cc0b9
1 changed files with 3 additions and 0 deletions
|
|
@ -1314,6 +1314,9 @@ NineSwapChain9_GetBackBufferCountForParams( struct NineSwapChain9 *This,
|
|||
* the Xserver will hold 4 buffers. */
|
||||
else if (!This->actx->thread_submit && count < 5)
|
||||
count = 5;
|
||||
/* Somehow this cases needs 5 with thread_submit, or else you get a small performance hit */
|
||||
if (This->actx->tearfree_discard && count < 5)
|
||||
count = 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue