diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-27 23:42:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-29 16:28:15 +0300 |
commit | f6fc863acd7c24874026202d4c2aec50c60b40d2 (patch) | |
tree | 541dab504b4a4132869d4ba982c42aeca049f661 /source/blender/gpu/intern/gpu_init_exit.c | |
parent | c931a0057ffea26175a2dc111718e5f3590b00f8 (diff) |
Sculpt: multithread GPU draw buffer filling for workbench
This improves performance of some sculpt tools, particularly those that modify
many vertices like filter and mask tools, or use brushes with large radius.
For mask expand it can make updates up to 2x faster on heavy meshes, but for
most tools it's more on the order of 1-1.1x. There are bigger bottlenecks to
solve, like normal updates.
Ref T70295
Differential Revision: https://developer.blender.org/D5926
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_init_exit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c index 2f84a1cbd27..0009e7d8c47 100644 --- a/source/blender/gpu/intern/gpu_init_exit.c +++ b/source/blender/gpu/intern/gpu_init_exit.c @@ -62,11 +62,13 @@ void GPU_init(void) immInit(); } - GPU_pbvh_fix_linking(); + gpu_pbvh_init(); } void GPU_exit(void) { + gpu_pbvh_exit(); + if (!G.background) { immDestroy(); } |