Commit: bd0223b8fefe1bf21f9cd2b444256775b5540227
Author: Brecht Van Lommel
Date:   Sun Feb 7 14:25:38 2016 +0100
Branches: master
https://developer.blender.org/rBbd0223b8fefe1bf21f9cd2b444256775b5540227

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.

===================================================================

M       source/blender/blenkernel/intern/pointcache.c

===================================================================

diff --git a/source/blender/blenkernel/intern/pointcache.c 
b/source/blender/blenkernel/intern/pointcache.c
index 71b68ce..4de924e 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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to