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
2020-05-28Cleanup: spellingCampbell Barton
2020-05-27CD_PROP_COL datalayerPablo Dobarro
This implements a generic color datalayer and its functions. Based on D5975. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7838
2020-05-27Cleanup: sort file, structsCampbell Barton
2020-05-26UI: Windows Shell Links & Improved Mac AliasesHarley Acheson
Adds support for Windows Shell Links (shortcuts) to the File Browser. Extended Mac Alias usage. Better visualization of linked items. Differential Revision: https://developer.blender.org/D7380 Reviewed by Campbell Barton
2020-05-26BLI_assert: prevent abort from suppressing return-type warningCampbell Barton
Recent commit deaff945d0b96 broke release builds but not debug builds, with this change the warning happens in both cases.
2020-05-25Calculate epsilon values for interp_weights_poly to improve accuracySebastian Parborg
interp_weights_poly_v2 would have too large epsilon values for small polygons. To solve this we now calculate the appropriate epsilon value so it can gracefully handle big and small values. To make sure there was no regression, these changes were tested with the files in T36105, T31581. Also with a surface deform modifier test file attached in the differential below. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D7772
2020-05-25Cleanup: unused variable warningsCampbell Barton
2020-05-25Task: Graph Flow Task SchedulingJeroen Bakker
Add TBB::flow graph scheduling to BLI_task. Using flow graphs, a graph of nodes (tasks) and links can be defined. Work can flow though the graph. During this process the execution of the nodes will be scheduled among the available threads. We are planning to use this to improve the threading in the draw manager. The implemented API is still limited it only supports sequential flows. Joins and buffers are not supported. We could eventually support them as part of an CPP API. These features from uses compile time templates and are hard to make a clean C-API for this. Reviewed By: Sergey Sharybin, Brecht van Lommel Differential Revision: https://developer.blender.org/D7578
2020-05-20BLI: Fix VectorSet copy constructorJacques Lucke
Thanks to Howard for pointing that out.
2020-05-20Cleanup: make guarded memory allocation always thread safeBrecht Van Lommel
Previously this would be enabled when threads were used, but threads are now basically always in use so there is no point. Further, this is only needed for guarded allocation with --debug-memory which is not performance critical.
2020-05-20Merge branch 'blender-v2.83-release'Brecht Van Lommel
2020-05-19Merge remote-tracking branch 'origin/blender-v2.83-release'Sybren A. Stüvel
2020-05-19Fix T76375: UDIM Rectangular Tiled Image EEVEE freezes BlenderJeroen Bakker
When packing the image the height of the tile was checked to the width of the packing area. This resulted that the tile was ignored. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7784
2020-05-15blenlib: BLI_file_attributes() CorrectionHarley Acheson
Adds an Correction to properly handle possibility of overflow of path name. Differential Revision: https://developer.blender.org/D7739 Reviewed by Brecht Van Lommel
2020-05-15BLI: add missing include for size_tJacques Lucke
2020-05-14Fix: Broken build with TBB disabled.Ray Molenkamp
Lite builds without TBB and still needs the alternative codepath
2020-05-14BLI: deduplicate address sanitizer codeJacques Lucke
Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D7731
2020-05-14Fix T76553: Blender Freezes When Playing Back AnimationJeroen Bakker
In some cases blender could freeze. When threads are blocked (waiting for other tasks completion) the scheduler can let the thread perform a different task. If this task wants a write-lock for something that was read-locked in the stack a dead lock will happen. For task pools every task is isolated. For range tasks the inner loop will be isolated. The implementation is limited as isolation in TBB uses functors which are tricky to add to a C API. We decided to start with a simple and adapt were we need to. During testing we came to this setup as it was reliable (we weren't able to let it freeze or crash) and didn't had noticeable performance impact. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D7688
2020-05-13Merge branch 'blender-v2.83-release'Antonio Vazquez
2020-05-13Fix T76665: Wrong files selected when using box selectJacques Lucke
Reviewers: Severin Differential Revision: https://developer.blender.org/D7705
2020-05-10Windows: Ignore context record for backtrace is address is 0.Ray Molenkamp
T76602 reported a crash with the exception address being 0, this stack naturally could not be walked and no backtrace was reported for the main thread. Which would have been helpful. This change modifies the behaviour of the crash handler to ignore the context record if it contains no useful information and walk the current stack to get some information about what lead to the crash.
2020-05-09Fix T76427: edit mesh undo hanges when building without TBBBrecht Van Lommel
Background task pools would not restart threads if reused multiple times, thanks to Jeroen for identifying the cause of this problem. Differential Revision: https://developer.blender.org/D7659
2020-05-09Fix building on NetBSDCampbell Barton
2020-05-09Cleanup: spellingCampbell Barton
2020-05-09Cleanup: double-spaces in commentsCampbell Barton
2020-05-08Cleanup: take includes out of 'extern "C"' blocksJacques Lucke
Surrounding includes with an 'extern "C"' block is not necessary anymore. Also that made it harder to add any C++ code to some headers, or include headers that have "optional" C++ code like `MEM_guardedalloc.h`. I tested compilation on linux and windows (and got help from @LazyDodo). If this still breaks compilation due to some linker error, the header containing the symbol in question is probably missing an 'extern "C"' block. Differential Revision: https://developer.blender.org/D7653
2020-05-08Windows: Include symbol file in module informationRay Molenkamp
When writing out the module information in a crashdump we did not include what symbol file was loaded and if that symbol file actually matches our executable. Given the backtraces may contain invalid information if the symbols are unmatched this is relevant to know. This diff adds the symbol file and an indication if unmatched symbols are used.
2020-05-08Windows: Improve private symbol detectionRay Molenkamp
To detect if private of public symbols were loaded we were relying on a strcmp with a known filename, which was not great, the symbol api has a field we can query which should be more flexible and reliable.
2020-05-08Windows: Fix BLI_assert backtrace.Ray Molenkamp
With the recent backtrace overhaul, the fact that BLI_assert calls BLI_system_backtrace slipped somehow trough the cracks, causing issues for debug builds. This change allows BLI_system_backtrace to run again without having an exception record. Also minor improvements to the comments.
2020-05-08Cleanup: clang-formatCampbell Barton
2020-05-08Fix typo in recent quadric cleanupCampbell Barton
2020-05-07BLI: improve linear allocator documentationJacques Lucke
2020-05-07Blenlib: Added explicit BLI_INLINE in perlin noise.Stefan Werner
A few tiny functions were not inlined even in some release configurations. Added BLI_INLINE as extra compiler hint in places that the profiler showed at hot spots when populating geometry with hair.
2020-05-06Cleanup: restore text alignment lost by clang-formatCampbell Barton
2020-05-05Tasks: support build with TBB version 2017Brecht Van Lommel
Make the task pool implementation compatible with older versions that are used by install_deps.sh.
2020-05-05Build: print TBB ON/OFF state on first configure, cleanup old TBB logicBrecht Van Lommel
2020-05-04Add StringMap.LookupOrAdd and StringMap.LookupOrAddDefaultJacques Lucke
2020-05-04Cleanup: rename mcords to mcoordsCampbell Barton
- 'coords' is an abbreviation for coordinates, not 'cords'. - Rename 'moves' to 'coords_len'.
2020-05-04BLI: simplify memory management in OpenAddressingArrayJacques Lucke
2020-05-03Windows: Replace BLI_File* calls with system calls in system_win32.cRay Molenkamp
Using BLI calls in this file triggered a condition where poorly modelled dependencies in cmake (ie bf_blenlib using zlib headers but not linking the libraries) leading to linker error in debug builds of some of the tests. This diff sidesteps the dependencies issue by using native calls rather than BLI calls to check if a file exists and what its size is. Effectively sweeping the issue right back under the rug where I found it. The best solution would be to audit all libraries and ensure they have proper link requirements set, but that requires significantly more time than I have available right now. (zlib in blenlib was one of them and would have been easy to fix, but there were others that required more work) The alternative is tests that fail to build which worse. I'll revisit this and fix it properly but for now this will have to do.
2020-05-03Cleanup: clang-formatCampbell Barton
2020-05-01Fix: Fix build error on windowsRay Molenkamp
Headers and implementation had slightly different signatures
2020-05-01Windows: Support backtraces on release builds.Ray Molenkamp
This diff add supports for crash logs on windows for release builds. This can be toggled on/off with the `WITH_WINDOWS_PDB` cmake option. by default it is on. Things to take into consideration: Release builds are hightly optimized and the resulting backtraces can be wrong/misleading, take the backtrace as a general area where the problem resides rather than an exact location. By default we ship a minimized symbol file that can only resolve the function names. This was chosen to strike a balance between growth in size of the download vs functionality gained. If more detailed information is required such as source file + line number information a full pdb can be shipped by setting `WITH_WINDOWS_STRIPPED_PDB` to off. Differential Revision: https://developer.blender.org/D7520 Reviewed by: brecht
2020-05-01Cleanup: improve readability for color assignmentCampbell Barton
2020-04-30Revert "Windows: Support backtraces on release builds."Ray Molenkamp
Issues with older cmake.
2020-04-30Windows: Support backtraces on release builds.Ray Molenkamp
This diff add supports for crash logs on windows for release builds. This can be toggled on/off with the `WITH_WINDOWS_PDB` cmake option. by default it is on. Things to take into consideration: Release builds are hightly optimized and the resulting backtraces can be wrong/misleading, take the backtrace as a general area where the problem resides rather than an exact location. By default we ship a minimized symbol file that can only resolve the function names. This was chosen to strike a balance between growth in size of the download vs functionality gained. If more detailed information is required such as source file + line number information a full pdb can be shipped by setting `WITH_WINDOWS_STRIPPED_PDB` to off. The Release in the title of this diff refers to the release build type, not the official blender releases. Initially this will only be enabled for nightly build bot versions of blender, official releases as of now will not ship with symbols. Differential Revision: https://developer.blender.org/D7520 Reviewed by: brecht
2020-04-30Cleanup: unused variable warningsCampbell Barton
2020-04-30Task: Use TBB as Task SchedulerBrecht Van Lommel
This patch enables TBB as the default task scheduler. TBB stands for Threading Building Blocks and is developed by Intel. The library contains several threading patters. This patch maps blenders BLI_task_* function to their counterpart. After this patch we can add more patterns. A promising one is TBB:graph that can be used for depsgraph, draw manager and compositor. Performance changes depends on the actual hardware. It was tested on different hardwares from laptops to workstations and we didn't detected any downgrade of the performance. * Linux Xeon E5-2699 v4 got FPS boost from 12 to 17 using Spring's 04_010_A.anim.blend. * AMD Ryzen Threadripper 2990WX 32-Core Animation playback goes from 9.5-10.5 FPS to 13.0-14.0 FPS on Agent 327 , 10_03_B.anim.blend. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D7475
2020-04-28BLI: add VectorSet.is_empty methodJacques Lucke
2020-04-28Cleanup: remove unnecessary includesJacques Lucke