mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
Evict unused texture cache tiles between render tiles and multiviews, to reduce memory usage. Tiles that were loaded but not accessed during the previous render tile are freed before the next tile begins rendering. A per-tile access state byte tracks three values (NONE, REQUESTED, USED) and is used both to drive tile loading from cache misses and to decide which loaded tiles can be evicted at tile boundaries. Cache eviction is automatically enabled, but there is a debug option to disable it. There is also an debug option to preserve a specified amount of unused image texture memory to aoid avoid trashing unnecessarily in simple cases. It increases peak memory usage to render faster, however in tests on a Macbook M3 it did not seem worth it. But left in to experiment on other devices and scenes. Pull Request: https://projects.blender.org/blender/blender/pulls/157244
3 lines
131 B
Text
3 lines
131 B
Text
version https://git-lfs.github.com/spec/v1
|
|
oid sha256:ca758934fd72402813c6c738d6d3d9a91599e082173ea9a1b07d27d2c29b2044
|
|
size 121619
|