diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-07 16:25:38 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-07 16:35:21 +0300 |
commit | bd0223b8fefe1bf21f9cd2b444256775b5540227 (patch) | |
tree | 0947ddb7d06c511da57555955b959f9d1eb92c12 /source/blender/blenkernel/intern | |
parent | 77197b26fafb92a1339693fe8e08d5e7acd0d9fe (diff) |
Fix T47351: slow rigid body sim bake after recent changes to use jobs system.
The bake system had a 200ms sleep for each frame substep, to give the UI time
to redraw. I don't think there is a good reason to have this, with fair thread
scheduling this will give UI thread 2x more time at best, and the UI doesn't
need to be that responsive during bake.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index 71b68cefde2..4de924e954f 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -3681,9 +3681,6 @@ void BKE_ptcache_bake(PTCacheBaker *baker) ptime = ctime; } - /* Delay to lessen CPU load from UI thread */ - PIL_sleep_ms(200); - /* NOTE: breaking baking should leave calculated frames in cache, not clear it */ if ((cancel || G.is_break)) { break; |