Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-01-11 05:34:16 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-01-11 05:34:16 +0300
commitf134341e03b5fe3edd5112557bcf42f6667ba69d (patch)
tree34376b0f99a862d4956596a91dab987d7f2c62aa /source/blender/editors
parent922ae55a16a96784427080505f0a751c05a74fb6 (diff)
Fix T94671: performance regression with subsurf modifier
rBeed45d2a239a introduced a GPU backend for OpenSubDiv which lets us do the subdivision at render time. However, some tools might still need to have the subdivision data available on the CPU side. For this a subdivision mesh wrapper was also introduced, and is computed whenever a CPU side mesh is needed. The subdivision settings for this wrapper are stored during modifier evaluation if GPU subdivision can be done. The performance regression is due to the fact that although the subdivision mesh was already computed on the CPU, and no subdivision wrapper is generated, some checks for creating subdivision data in `BKE_mesh_wrapper_ensure_subdivision` where still run, one of which is very expensive. To fix this we first check the runtime settings of the mesh to see if subdivision is needed at all.
Diffstat (limited to 'source/blender/editors')
0 files changed, 0 insertions, 0 deletions