Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-20Fix own error in recent heap updateCampbell Barton
2016-07-19Cleanup: style, spellingCampbell Barton
2016-07-17BLI_heap: replace memarena w/ local allocatorCampbell Barton
- Since element size its known it's less work to do inline. - In test with high-poly model, gave ~9% overall speedup for decimate modifier.
2016-07-17Cleanup: minor edits to BLI_heapCampbell Barton
2016-07-15Bump maximum threads number to 1024Sergey Sharybin
This commit contains all the changes required for most optimal maximum threads number bump. This is needed to avoid possibly unneeded initialization or data allocation on systems with lower threads count. TODO: Still need to review arrays in render data structures from render_types.h, P.S. We might remove actual bump of max threads from this patch, so when we'll be applying the patch we can do all the preparation work and then do actual bump of max threads. Reviewers: mont29, campbellbarton Reviewed By: mont29, campbellbarton Maniphest Tasks: T43306 Differential Revision: https://developer.blender.org/D1343
2016-07-11BLI_math: move interp_*_cubic to its own functionCampbell Barton
2016-07-08Cleanup: use normalize_v#_lengthCampbell Barton
2016-07-08BLI_math: add normalize functions which fit to a lengthCampbell Barton
Convenient since its common to normalize then scale, since these are inlined, use for regular normalize w/ 1.0 length.
2016-07-07Fix T48793: Bilinear filter clamps at edge pixelsCampbell Barton
2016-07-04Fix a few compiler warnings on OS X / clang.Brecht Van Lommel
Two were actual bugs, though they existed only in unused code: * In Freestyle it was unintentionally copying a scene rather than referencing it. * In BLI_array_store_is_valid there was use of uninitialized memory.
2016-07-02Cleanup: comment blocksCampbell Barton
2016-06-30Transform Snap: Optimize edge-snap using BVH treeGermano Cavalcante
changes in BLI_kdopbvh: - `BLI_bvhtree_find_nearest_to_ray` now takes is_ray_normalized and scale argument. - `BLI_bvhtree_find_nearest_to_ray_angle` has been added (use for perspective view). changes in BLI_bvhutils: - `bvhtree_from_editmesh_edges_ex` was added. changes in math_geom: - `dist_squared_ray_to_seg_v3` was added. other changes: - `do_ray_start_correction` is no longer necessary to snap to verts. - the way in which the test of depth was done before is being simulated in callbacks.
2016-06-29Cleanup: spelling, indentationCampbell Barton
2016-06-27Bendy Bones Instability Fix - Second AttemptJoshua Leung
So the error seems to be in cubic_tangent_factor_circle_v3(), which was introduced with D2001. I've tweaked the most obvious culprit here - the epsilon factor. It used to be 10^-7, but I've reduced it down to 10^-5 now, and it's looking a lot more stable now :) --------- BTW, about the derivation of the magic 0.390464 factor I briefly subbed back as a workaround for this bug, see: http://www.whizkidtech.redprince.net/bezier/circle/
2016-06-27Docs: arg namesCampbell Barton
2016-06-23Fix minor typo - Was m[3][4] instead of m[4][4] for a 4x4 matrixJoshua Leung
2016-06-23BLI_array_utils: add BLI_array_rfindindexCampbell Barton
Array search from back to front.
2016-06-22Cleanup: styleCampbell Barton
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-16BMesh Decimate: use doubles to calculate optimized positionCampbell Barton
This allows the error threshold for calculating the optimized location to be much lower. Resolves visible artifacts w/ 1m-tri happy-buddha example.
2016-06-16BLI_math: Add double versions of functionsCampbell Barton
- mul_v3_m3v3_db - mul_m3_v3_db - negate_v3_db
2016-06-12BLI_math: cleanup arg namesCampbell Barton
project functions arg naming made it hard to tell which vector was projected onto.
2016-06-11BLI_rand: add BLI_rng_get_char_nCampbell Barton
Use to fill an array of bytes to random values.
2016-06-09Fix T48614: Blender from buildbot crash when Separate selection in this ↵Bastien Montagne
particular scene. Regression from recent rB2c5dc66d5effd4072f438afb, if last item of last chunk of a mempool was valid, it would not be returned by mempool iterator step, which would always return NULL in that case.
2016-06-08Fix FPE exception happening when converting linear<->srgb using SIMDSergey Sharybin
2016-06-08Cleanup: typoCampbell Barton
2016-06-08Cleanup: typosCampbell Barton
2016-06-08BLI_array_store: move helper functions into their own APICampbell Barton
2016-06-02Cleanup: warnings in previous commitCampbell Barton
2016-06-02Minor edits to last commitCampbell Barton
Failed with chunk merging disabled
2016-06-02BLI_array_store: Move writing many chunks into a functionCampbell Barton
Minor optimization, avoid some checks each iteration.
2016-06-02BLI_array_store: store max size in BArrayInfoCampbell Barton
2016-06-02Add extra validation checks to array-storeCampbell Barton
2016-06-01Revert "BLI_ghash: Fix initial over-allocation of mempool chunks."Bastien Montagne
Useless change in fact, sorry for the noise. This reverts commit b08473680e141ab6f28f99fc3b1dbbc4add89bed.
2016-06-01Optimize mempool iterationCampbell Barton
Around ~10% improvement in own tests.
2016-06-01Revert "Correct invalid pointer-pair compare check"Campbell Barton
This reverts commit d5e0e681cea846facb4f2777921f6612be3ee193. Tsk, these functions return false on a match.
2016-06-01BLI_ghash: Fix initial over-allocation of mempool chunks.Bastien Montagne
Code intended to create only one pool by default here, but code in `mempool_maxchunks()` would make it two.
2016-05-31BLI_mempool: Use an 'odd' FREEWORD for big/little endianCampbell Barton
This also changes freeword to an intptr_t to ensure not only the first 4 bits of a pointer are tested on 64bit systems.
2016-05-31Cleanup: parenthesize definesCampbell Barton
2016-05-30Change the hash-table to be 3x total items to hashCampbell Barton
2016-05-30Remove accidental static varCampbell Barton
2016-05-30Add BLI_array_store copy-on-write APICampbell Barton
This supported in-memory de-duplication, useful to avoid in-efficient memory use when storing multiple, similar arrays.
2016-05-26Correct invalid pointer-pair compare checkCampbell Barton
2016-05-23BLI_math: Add function to calculate circular cubic curve tangentsCampbell Barton
2016-05-22Fix T48497: Stupid typo in recent own BLI_task forloop work that broke ↵Bastien Montagne
non-parallelized case.
2016-05-18Fix GCC/Linux build error after finite/isfinite changes.Brecht Van Lommel
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-05-16BLI_task: Add new 'BLI_task_parallel_range_finalize()'.Bastien Montagne
Together with the extended loop callback and userdata_chunk, this allows to perform cumulative tasks (like aggregation) in a lockfree way using local userdata_chunk to store temp data, and once all workers have finished, to merge those userdata_chunks in the finalize callback (from calling thread, so no need to lock here either). Note that this changes how userdata_chunk is handled (now fully from 'main' thread, which means a given worker thread will always get the same userdata_chunk, without being re-initialized anymore to init value at start of each iter chunk).
2016-05-16BLI_task: Add back lost 'push_from_thread' change to ↵Bastien Montagne
BLI_task_parallel_range() & co.
2016-05-16BLI_task: make foreach loop index hleper lockfree, take II.Bastien Montagne
New code is actually much, much better than first version, using 'fetch_and_add' atomic op here allows us to get rid of the loop etc. The broken CAS issue remains on windows, to be investigated...