Blender Git Loki

Kaikki Blender Git kommitit.

Page: 5832 / 8462

August 19, 2013, 12:04 (GMT)
Mistake in revious PATH_MAX commit, sorry!
August 19, 2013, 12:02 (GMT)
Merging r59286 through r59291 from trunk into soc-2013-depsgrph_mt

August 19, 2013, 11:50 (GMT)
Attempt to fix compilation error of sort.c
August 19, 2013, 11:49 (GMT)
Fix compilation error on platforms where PATH_MAX is not defined
August 19, 2013, 11:37 (GMT)
Code cleanup: use bool instead of BOOL/int
August 19, 2013, 11:36 (GMT)
Fix read past end of array when drawing tracking markers keyframes

Was introduced by plane track merge.
August 19, 2013, 11:26 (GMT)
Merging r59258 through r59285 from trunk into soc-2013-depsgraph_mt

August 19, 2013, 11:24 (GMT)
MCE: usability improvement

Align Clear Before/After into a row and remove
Clear button (which wasn't actually used by
artists).
August 19, 2013, 11:04 (GMT)
Merge remained parts of r57520: use use_render argument rather than G.is_rendering
August 19, 2013, 11:04 (GMT)
No static vars shall be in mballs now

No need in special hacks for this now :)
August 19, 2013, 10:54 (GMT)
And for sure forgot to commit another cleaup patch

--
svn merge -r59259:59260 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:53 (GMT)
Forgot this in previous commit

Solves compilation issues on Win and OSX

--
svn merge -r59180:59181 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:51 (GMT)
Speedup for guarded allocator

- Re-arrange locks, so no actual memory allocation
(which is relatively slow) happens from inside
the lock. operation system will take care of locks
which might be needed there on it's own.

- Use spin lock instead of mutex, since it's just
list operations happens from inside lock, no need
in mutex here.

- Use atomic operations for memory in use and total
used blocks counters.

This makes guarded allocator almost the same speed
as non-guarded one in files from Tube project.

There're still MemHead/MemTail overhead which might
be bad for CPU cache utilization

August 19, 2013, 10:44 (GMT)
Commit atomic operations file

Not currently used, but needed for some further changes

August 19, 2013, 10:40 (GMT)
Use reentrant qsort() in particle codes

Particle system code used global variable to sort hair by orig index,
which is not safe for threading at all.

Replaced this with usage of reentrant version of qsort, which is
now implemented in BLI. It was moved from recast navigation code
to BLI, so more areas could use it (if needed).

--
svn merge -r59086:59087 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:38 (GMT)
Added check for whether thread lock is being removed while thread is using guarded alloc.

--
svn merge -r58788:58789 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:36 (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, speedup measured in depsgraph_mt branch,
trunk might be not so much high speedup).

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.

--
svn merge -r58786:58787 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:18 (GMT)
Added check for address being freed by mempool free

When blender is built in debug mode, BLI_mempool_free will
ensure address passed to the function actually belongs to
this pool.

--
svn merge -r58710:58711 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:16 (GMT)
Utility benchmarking macros

This new macros could be used to benchmark overall
execution time of some chunk of code, running in cycle.

The usage is:

void foo(void) {
TIMEIT_BLOCK_INIT(overall_bar);

for (...) {
...

TIMEIT_BLOCK_BEGIN(over_bar);
bar();
TIMEIT_BLOCK_END(oberall_bar);

...
}

TIMEIT_BLOCK_STATS(overall_bar)
}


This would print total time which was spent on
running function bar().

--
svn merge -r58281:58283 ^/branches/soc-2013-depsgraph_mt

August 19, 2013, 10:14 (GMT)
Made armatures evaluation safe for threading

Apparently, some routines in armature deformation code
were using static arrays. This is probably just an
optimization thing, but it's very bad for threading.

Now made it so bbone matrices array is allocating in
callee function stack. This required exposing
MAX_BBONE_SUBDIV to an external API, This is not so
much crappy from code side, and it shall be the same
fast as before.

--
svn merge -r58278:58279 ^/branches/soc-2013-depsgraph_mt

Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021