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
2022-03-30Cleanup: use "num" as a suffix in: source/blender/blenlibCampbell Barton
Also replace "num" with: - "number" when it's not used to denote the number of items. - "digits" when digits in a string are being manipulated.
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2021-12-09Cleanup: move public doc-strings into headers for 'blenlib'Campbell Barton
- Added space below non doc-string comments to make it clear these aren't comments for the symbols directly below them. - Use doxy sections for some headers. - Minor improvements to doc-strings. Ref T92709
2021-11-19Cleanup: fix typos in comments and docsBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D13264
2021-07-20Cleanup: use single back-tick quoting in commentsCampbell Barton
While doxygen supports both, conform to our style guide. Note that single back-tick's are already used in a majority of comments.
2021-07-15Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text")Campbell Barton
This shows the text as part of the assertion message.
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-06-30Cleanup: use const arguments for accessor functionsCampbell Barton
2021-06-10BLI_mempool: split thread-safe iteration into the private APICampbell Barton
Splitting out thread safe iteration logic means regular iteration isn't checking for the thread-safe pointer each step. This gives a small but measurable overall performance gain of 2-3% when redrawing a high-poly mesh. Ref D11564 Reviewed By: mont29
2021-06-09BLI_task: add TLS support to BLI_task_parallel_mempoolCampbell Barton
Support thread local storage for BLI_task_parallel_mempool, as well as support for the reduce and free callbacks. mempool_iter_threadsafe_* functions have been moved into a private header thats only shared between task_iterator.c and BLI_mempool.c so the TLS can be made part of the iterator array without having to rely on passing in struct offsets. Add test task.MempoolIterTLS that ensures reduce and free are working as expected. Reviewed By: mont29 Ref D11548
2021-03-18Cleanup: spellingCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-06Fix integer overflow in BLI_mempool_as_arrayN()Sergey Sharybin
`(size_t)(int * int)` will actually cast overflown integer to size_t, which isn't what was intended here. Correct thing would be to cast in the following manner `(size_t)int * int`. In this particular case can as well use function which is designed to allocate an array of memory without overflow.
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-04-21Cleanup: comments (long lines) in blenlibCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-09Cleanup: spellingCampbell Barton
2019-03-05Cleanup: warning in release buildsCampbell Barton
2019-03-02Fix BLI_mempool incorrect slop-space calculationCampbell Barton
Also ensure elements fit evenly into the chunk size causing allocations to be slightly smaller in some cases. In own tests reduces overall memory use by about ~4.5% for high poly meshes in edit-mode.
2019-03-02Cleanup: code style & commentsCampbell Barton
2019-03-02Cleanup: remove unused defineCampbell Barton
There is no reason to keep the option for separate allocations, it makes code harder to follow.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-02Cleanup: remove author/date info from doxy headersCampbell Barton
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2017-11-24Minor cleanup for own recent commits.Bastien Montagne
2017-11-23Add ability to use more than one mempool iterator simultaneously.Bastien Montagne
This will allow threaded tasks to 'consume' all mempool items in parallel tasks, each one working on a whole chunk at once (to reduce concurrency managing overhead).
2017-10-28Cleanup: use uint type in BLICampbell Barton
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-01Optimize mempool iterationCampbell Barton
Around ~10% improvement in own tests.
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.
2015-08-04Docs: comment functions in BLI & Py APICampbell Barton
2014-06-08Fix mempool bottleneck alloc & freeing a single itemCampbell Barton
Would continuously reinitialize the first chunk of the mempool, now check for at least 2 blocks.
2014-04-10Revert "Mempool: simplify memory chunk list building"Campbell Barton
This reverts commit c82371fc06ffb8d2970c985b44167e9a5e0222f1. Caused regression in iterator
2014-04-10Code cleanup: use struct type for mempool & style editsCampbell Barton
2014-04-08Mempool: simplify memory chunk list buildingCampbell Barton
2014-04-08Mempool: delay allocating an initial chunk, its not always usedCampbell Barton
2014-04-07Mempool: use define for used freeword and correct defineCampbell Barton
2014-04-07Mempool: minor optimization to building free pointer listCampbell Barton
2014-04-07Mempool: fix own error in recent commitCampbell Barton
chunks must be added in order for iteration.
2014-04-05Optimize mempool: round chunk size to powers of 2, account for slop-spaceCampbell Barton
This helps to reduce memory fragmentation.
2014-04-05Mempool: remove BLI_MEMPOOL_SYSMALLOC, MEM_* allocs are more efficient nowCampbell Barton
2014-04-05Optimize mempool: replace double linked list with single for memory chunksCampbell Barton
2014-04-04Optimization for mempool initial chunk allocationCampbell Barton
Almost all pools allocated 2 chunks on initialization, every element needed to be added to the free-list which would never be used for small pools. Now allocate only one, gives minor speedup for some bmesh operations.
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2013-12-10Mempool/Memarena: hint for unlikely conditionsCampbell Barton
2013-12-08Util-defines: avoid multiple calculation/access for MIN/MAX macrosCampbell Barton