Blender Git Loki

Git Commits -> Revision 2b2d427

Revision 2b2d427 by Jeroen Bakker (master)
September 8, 2021, 07:56 (GMT)
Fix T90825: Performance texture painting with limited scale.

Improve texture painting/uv editing performance when limited scale is active.
Cause of the slow down is that the image editor draws the image in maximum resolution,
but the 3d viewport uses the limited scale. The variation reuses the same GPU texture
and needed to be uploaded/scaled twice to the GPU.

This patch will adds texture slots that can hold the scaled down and the maximum
resolution image. This would allow better cache hits and reuse of existing caches.

Maximum resolution textures are reused for limited scale when they fit to reduce memory
and CPU footprint.

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D12388

Commit Details:

Full Hash: 2b2d427bbac6716092336f0d0f698706a390f4ad
Parent Commit: 54f5c17
Lines Changed: +219, -100

4 Modified Paths:

/source/blender/blenkernel/intern/image.c (+41, -26) (Diff)
/source/blender/blenkernel/intern/image_gpu.c (+154, -68) (Diff)
/source/blender/makesdna/DNA_image_types.h (+23, -5) (Diff)
/source/blender/makesrna/intern/rna_image.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021