From bd0223b8fefe1bf21f9cd2b444256775b5540227 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 7 Feb 2016 14:25:38 +0100 Subject: 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. --- source/blender/blenkernel/intern/pointcache.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/blender/blenkernel/intern/pointcache.c') 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; -- cgit v1.2.3