mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
winsys/radeon: reduce BO cache timeout
1000 ms is an extreme value for typical interactive loads. A large cache has some disadvantages. Search for reusable BOs can take a long time and memory might get exhausted. Let's be rather conservative and use half of the old value, 500ms. This is beneficial to some loads on my test system and there are no regressions. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
29aaab2b5f
commit
390f94e358
1 changed files with 1 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ radeon_drm_winsys_create(int fd, radeon_screen_create_t screen_create)
|
|||
if (!ws->kman)
|
||||
goto fail;
|
||||
|
||||
ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2.0f, 0,
|
||||
ws->cman = pb_cache_manager_create(ws->kman, 500000, 2.0f, 0,
|
||||
MIN2(ws->info.vram_size, ws->info.gart_size));
|
||||
if (!ws->cman)
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue