Patches to Bf Blender for CAD development. https://tornavis.org/
Go to file
Alexander Gavrilov 4d3bfb3f41 Subdivision Surface: fix a serious performance hit when mixing CPU & GPU.
Subdivision surface efficiency relies on caching pre-computed topology
data for evaluation between frames. However, while eed45d2a23
introduced a second GPU subdiv evaluator type, it still only kept
one slot for caching this runtime data per mesh.

The result is that if the mesh is also needed on CPU, for instance
due to a modifier on a different object (e.g. shrinkwrap), the two
evaluators are used at the same time and fight over the single slot.
This causes the topology data to be discarded and recomputed twice
per frame.

Since avoiding duplicate evaluation is a complex task, this fix
simply adds a second separate cache slot for the GPU data, so that
the cost is simply running subdivision twice, not recomputing topology
twice.

To help diagnostics, I also add a message to show when GPU evaluation
is actually used to the modifier panel. Two frame counters are used
to suppress flicker in the UI panel.

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

Pull Request #104441
2023-02-08 10:27:22 +01:00
.gitea Gitea: add merge message templates 2023-01-30 23:48:41 +01:00
.github Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:23:05 +01:00
build_files Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:23:05 +01:00
doc Update references to the new projects platform and main branch 2023-02-07 14:18:19 +01:00
extern Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:23:05 +01:00
intern Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:23:05 +01:00
release Cleanup: format 2023-02-08 00:21:57 +01:00
source Subdivision Surface: fix a serious performance hit when mixing CPU & GPU. 2023-02-08 10:27:22 +01:00
tests Update references to the new projects platform and main branch 2023-02-07 14:18:19 +01:00
.arcconfig Fix .arcconfig not working with latest arcanist version 2020-03-01 22:35:31 +01:00
.clang-format Cleanup: use compliant YAML for '.clang-format' 2023-01-03 11:53:41 +11:00
.clang-tidy Clang-tidy: Ignore variable name length and .c/.cc include warnings 2022-05-06 15:26:54 +02:00
.editorconfig pyproject: add configuration for autopep8 2022-04-22 10:13:39 +10:00
.git-blame-ignore-revs Cleanup: git-blame-ignore-revs: Update policy & commits 2021-01-29 13:20:32 +05:30
.gitignore Compositor automated testing 2021-03-26 16:15:02 +01:00
.gitmodules Update for moving blender2.8 to master. 2018-12-21 12:15:21 +01:00
CMakeLists.txt Build: Remove unused `BLENDER_GL_LIBRARIES`. 2023-01-30 12:04:44 +01:00
COPYING
GNUmakefile GNUmakefile: add convenience target 'check_wiki_file_structure' 2023-01-28 16:41:12 +11:00
README.md Update references to the new projects platform and main branch 2023-02-07 14:18:19 +01:00
make.bat Cleanup: trailing space 2023-01-31 15:49:04 +11:00
pyproject.toml Cleanup: fix various typos 2022-06-28 15:56:16 +02:00

README.md

Blender

Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.

Blender screenshot

Project Pages

Development

License

Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.

See blender.org/about/license for details.