Blender Git Commit Log

All Blender Git commits.

Page: 4995 / 8462

March 19, 2015, 17:07 (GMT)
Make sure mesh data is really stored and reconstructed from the cache
entirely.

Also the code is much better structured now, moving toward a more
standardized sample/schema class definition.
March 19, 2015, 17:06 (GMT)
added a new vertex coordinate based constraint build method, as alternative to meshisland centroid based constraint building
March 19, 2015, 16:37 (GMT)
GHash - code reorganization, performance enhancements, add a few missing utils to API.

This patch is the root of the GHash rework, all other diff will be based on it:

Reduce average load from 3.0 to 0.75
----------------------------------

This is the big performance booster part, e.g. makes tracing a dyntopo stroke between 25% and 30% faster.

Not much to say about it, aside that it obviously increase memory footprint (about 25% - 30% too).

Add optional shrinking
----------------------------------

I.e. ghashes/gsets can now shrink their buckets array when you remove enough entries. This remains optional and OFF by default.

Add code to use masking instead of modulo
----------------------------------

Buckets indices are obtained from hashes by �??reducing�? the hash value into the valid bucket range. This can be done either by bit-masking, or using modulo operation.
The former is quicker, but requires real hashes, while the later is slower (average 10% impact on ghash operations) but can also be used as a 'fake' hashing on raw values, like e.g. indices.

In Blender currently not all ghash usages actually hash their keys, so we stick to modulo for now (masking is ifdef�??ed out), we may however investigate the benefits of switching to masking with systematic very basic hashing later�?�

Add various missing API helpers
----------------------------------

I.e. a way to deep-copy a ghash/gset, and a way to (re-)reserve entries (i.e. manually grow or shrink the ghash after its creation).

Various code refactoring
----------------------------------

* Get rid of the 'hack' regarding ghash size when used as gset (it�??s simpler and safer to have two structs defined here, and cast pointers as needed).
* Various re-shuffle and factorization in low-level internal code.
* Some work on hashing helpers, introducing some murmur2a-based hashing too.

Thanks a bunch to Campbell for the extensive review work. :)

Reviewers: sergey, campbellbarton

Subscribers: psy-fi, lukastoenne

Projects: #bf_blender

Maniphest Tasks: T43766

Differential Revision: https://developer.blender.org/D1178
March 19, 2015, 16:29 (GMT)
rename bucket_hash -> bucket_index
March 19, 2015, 16:21 (GMT)
Make ghash_copy do actual exact copy (same number of buckets).

Simplifies copy code (no need to re-compute compute hash of entries).
March 19, 2015, 16:06 (GMT)
fix for error clearning a gset, was removing the gset flag
March 19, 2015, 16:04 (GMT)
pass flag directly to internal ghash_new function
March 19, 2015, 15:58 (GMT)
minor edits
March 19, 2015, 15:52 (GMT)
rename ghash_buckets_shrink -> ghash_buckets_contract

keep (expand/contract), (grow/shrink) separate
March 19, 2015, 15:50 (GMT)
Shrink: Early return in case we are not allowed to shrink.
March 19, 2015, 15:46 (GMT)
remove unneeded ghash strink calls & dont force expand/shrink to be inline
March 19, 2015, 15:35 (GMT)
Split expand/shrink into own functions
March 19, 2015, 15:32 (GMT)
Revert "From review: Cycles: use scene.views instead of render_result.views"

This reverts commit 43e10a6853e4659429d000225b93862708414b31.

render_result.views is already taken into account whether the views are enabled,
if they can be rendered (e.g., Stereo mode shows only left and right) and when
multiview is off, it has a "" fallback view.

Leaving it as it was for the time being.
March 19, 2015, 15:19 (GMT)
minor edits
March 19, 2015, 15:15 (GMT)
WIP
March 19, 2015, 15:06 (GMT)
Remove dummy redefinitions of 'ghash internal API' functions, not needed anymore.
March 19, 2015, 14:57 (GMT)
Tweak GHASH_INTERNAL_API use
March 19, 2015, 14:44 (GMT)
Merge branch 'master' into temp-ghash-basis
March 19, 2015, 14:40 (GMT)
Armature select-hierarchy now uses connected bones

Traverse down connected child bones (when available)

Also remove redundant bone loops.
March 19, 2015, 14:32 (GMT)
Remove BLI_ghash_add for now.

Looks like it�??s not enough consensual... :P
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021