Blender Git Loki

Kaikki Blender Git kommitit.

Page: 5852 / 8462

August 1, 2013, 16:34 (GMT)
Potential fix for wrogn k3 value after solve
August 1, 2013, 14:00 (GMT)
Fix for r58798, forgot to update the presets.
August 1, 2013, 12:09 (GMT)
Fix [#36265]: Smoke doesn't work if domain object has negative scale.
August 1, 2013, 03:58 (GMT)
Hack to workaround scene update lock caused by GIL

Couple of RNA callbacks would imply scene update routines
to trigger. This works fine for until some objects does have
drivers.

If some object does have driver, it'll try to lock GIL
when evaluating this driver, and GIL is already locked by
a python API, which causes deadlock.

For now made it so RNA callbacks doesn't do threaded update.
This is not so much nice, especially since Cycles might
use the same API for motion blur, but for now don't see
better way to solve the deadlock.
August 1, 2013, 00:34 (GMT)
Fix compilation error after recent merge.
July 31, 2013, 22:51 (GMT)
Cycles / Squared Samples:
* After some feedback decided to remove this option from the Progressive integrator, it only makes sense for Non-Progressive where we have different values for the sample types.
July 31, 2013, 22:39 (GMT)
Fix linking issue, we use bundled static glew so we should define static glew in ghost as well.
July 31, 2013, 22:37 (GMT)
Fix typo which lead to crash when applying lattice modifier
July 31, 2013, 22:34 (GMT)
Merging r58363 through r58794 from trunk into soc-2011-tomato

July 31, 2013, 21:56 (GMT)
Small optimization to previous change of statistics output

Use boolean flag for detecting whether there're updated
objects instead of doing real object counter (which required
spin lock).
July 31, 2013, 21:56 (GMT)
Remove annoying statistics ifdef from code

All the statistics is already inside if() block, so
it doesn't have any noticeable affect on overall
performance.
July 31, 2013, 21:56 (GMT)
Made task scheduler follow command line argument number of threads
July 31, 2013, 21:55 (GMT)
Made it so threaded update statistics only prints when something was updated

This prevents infinite prints of statistics while blender is idling.
July 31, 2013, 21:55 (GMT)
Code cleanup: get rid of unneeded thread count in statistics structure
July 31, 2013, 21:55 (GMT)
Added check for whether thread lock is being removed while thread is using guarded alloc.
July 31, 2013, 21:55 (GMT)
Use one global task scheduler for all the tasks

Instead of allocating scheduler and starting threads
on every object_update call make it so scheduler is
global and threads are always ready to run.

This was we could avoid quite hacky thing which is
counting how much objects need to be updated before
starting threaded update.

It'll also allow using the same scheduler to do all
sorts of tasks, not only objects update in the same
scheduler. This is nice from load balancing point of
view.

Couple of changes were needed to be done in task
scheduler itself:

- Free tas before sending notifier.
- Free TaskThread structures outside from thread.

This is needed to make it possible use begin/end
threaded malloc from the main thread before/after
running the pool. Without this change it was possible
that allocation will switch to non-thread mode while
thread is freeing the task.

This required storing TaskThread array in Scheduler,
but it's not so much bad actually, since it also
reduces memory overhead caused by per-thread allocation.
July 31, 2013, 21:55 (GMT)
Optimization and threading fix for shapekeys weights calculation

This commit fixes two different issues, which were caused by
how weights are being calculated for relative shapekeys.

Weights for key block used to saved in KeyBlock DNA structure,
which lead to situations when different objects could start
writing to the same weights array if they're sharing the same
key datablock.

Solved this in a way so weights are never stored in KeyBlock
and being passed to shapekeys routines as an array of pointers.
This way weights are still computed run-time (meaning they're
calculated before shapekey evaluation and freed afterwards).

This required some changes to GameEngine as well, to make it
never cache weights in the key blocks.

Another aspect of this commit makes it so weight for a given
vertex group is only computed once. So if multiple key blocks
are using the same influence vertex group, they'll share the
same exact weights array. This gave around 1.7x speedup in
test chinchilla file which is close enough to if we've been
caching weights permanently in DNA (test machine is dual-code
4 threads laptop).

Some further speed is optimization possible, but it could be
done later as well.

Thanks Brecht for idea of how the things might be solved in
really clear way.
July 31, 2013, 21:49 (GMT)
Merged revision(s) 58779, 58783-58784 from trunk/blender into soc-2013-dingto.
July 31, 2013, 21:40 (GMT)
Code cleanup, use bools here. Forgot to change that.
July 31, 2013, 21:34 (GMT)
remove unused headers and NULL check
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021