blender.git
10 months agoMissed last commit
Campbell Barton [Fri, 14 Dec 2018 00:14:57 +0000 (11:14 +1100)]
Missed last commit

10 months agoMissed last commit
Campbell Barton [Fri, 14 Dec 2018 00:01:01 +0000 (11:01 +1100)]
Missed last commit

10 months agoCleanup: naming (mean -> median) see T47811
Campbell Barton [Thu, 13 Dec 2018 23:54:11 +0000 (10:54 +1100)]
Cleanup: naming (mean -> median) see T47811

10 months agoFix typo in context docs.
Campbell Barton [Thu, 13 Dec 2018 21:13:55 +0000 (08:13 +1100)]
Fix typo in context docs.

10 months agodeps: add missing sqlite dll to windows build.
Ray Molenkamp [Thu, 13 Dec 2018 13:59:37 +0000 (06:59 -0700)]
deps: add missing sqlite dll to windows build.

10 months agoCycles: Update standalone app to OIIO 2.0
Sergey Sharybin [Thu, 13 Dec 2018 13:31:38 +0000 (14:31 +0100)]
Cycles: Update standalone app to OIIO 2.0

10 months agoFix T59213: Application menu links to outdated version of Python API.
Bastien Montagne [Wed, 12 Dec 2018 10:55:40 +0000 (11:55 +0100)]
Fix T59213: Application menu links to outdated version of Python API.

Somehow those links were forgotten when we renamed API doc to simpler
names last year...

10 months agoCleanup: use colon separator after parameter
Campbell Barton [Wed, 12 Dec 2018 01:50:58 +0000 (12:50 +1100)]
Cleanup: use colon separator after parameter

Helps separate variable names from descriptive text.
Was already used in some parts of the code,
double space and dashes were used elsewhere.

10 months agodependencies windows: Replace pthreads-win32 2.9.1 with pthreads4w 3.0.0
Ray Molenkamp [Tue, 11 Dec 2018 22:12:56 +0000 (15:12 -0700)]
dependencies windows: Replace pthreads-win32 2.9.1 with pthreads4w 3.0.0

maintenance seems to have stopped for pthreads-win32

10 months agoUpdate code to be compatible with OIIO 2.0
Sergey Sharybin [Tue, 11 Dec 2018 11:17:26 +0000 (12:17 +0100)]
Update code to be compatible with OIIO 2.0

There are some changes in API of OpenImageIO, but those are quite
simple to keep working with older and newer library versions.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4064

10 months agoCleanup: remove accidentally committed debug code.
Brecht Van Lommel [Tue, 11 Dec 2018 14:18:01 +0000 (15:18 +0100)]
Cleanup: remove accidentally committed debug code.

10 months agoCycles: Add strict assert when assigning input socket stack offset
Sergey Sharybin [Tue, 11 Dec 2018 13:34:28 +0000 (14:34 +0100)]
Cycles: Add strict assert when assigning input socket stack offset

10 months agoCycles: Remove old nasty workaround
Sergey Sharybin [Tue, 11 Dec 2018 13:33:24 +0000 (14:33 +0100)]
Cycles: Remove old nasty workaround

It used to be used for some sort of ignoring automatically
generated bump nodes. But nowadays it causes one of the shaders
in Classroom demo file to be compiled wrong.

10 months agoFix macOS buildbot build, wrong CUDA version check.
Brecht Van Lommel [Tue, 11 Dec 2018 13:14:52 +0000 (14:14 +0100)]
Fix macOS buildbot build, wrong CUDA version check.

10 months agoCycles: Cleanup, indentation
Sergey Sharybin [Tue, 11 Dec 2018 11:57:57 +0000 (12:57 +0100)]
Cycles: Cleanup, indentation

10 months agoFix T59161: Edge Rotate CW is CCW
Campbell Barton [Tue, 11 Dec 2018 03:03:42 +0000 (14:03 +1100)]
Fix T59161: Edge Rotate CW is CCW

10 months agoFix T52051: Orthographic camera display size error
Campbell Barton [Tue, 11 Dec 2018 02:02:39 +0000 (13:02 +1100)]
Fix T52051: Orthographic camera display size error

It was impractical to create a small orthographic camera with a usable
size in the view-port.

No longer scale the draw-size by ortho-size.

10 months agoFix T53544: Undo in pose mode selects all fcurves
Campbell Barton [Mon, 10 Dec 2018 01:30:41 +0000 (12:30 +1100)]
Fix T53544: Undo in pose mode selects all fcurves

10 months agoDNA: add runtime struct to for graph & action editor
Campbell Barton [Mon, 10 Dec 2018 00:46:36 +0000 (11:46 +1100)]
DNA: add runtime struct to for graph & action editor

Move struct members, no functional change

10 months agoFix T59059: Blender crashing after adding particle system and dynamic paint (Brush).
Bastien Montagne [Sun, 9 Dec 2018 20:48:37 +0000 (21:48 +0100)]
Fix T59059: Blender crashing after adding particle system and dynamic paint (Brush).

Looks like this bug has been there since ages (at least present before
2.79 official release...).

10 months agoFix T57994: Particle Instance modifiers 'Index Layer' off by one
Philipp Oeser [Thu, 22 Nov 2018 10:52:38 +0000 (11:52 +0100)]
Fix T57994: Particle Instance modifiers 'Index Layer' off by one

better have this vertex color layer cover the whole 0-1 range

thx @sergey for checking

Maniphest Tasks: T57994

Differential Revision: https://developer.blender.org/D3976

10 months agoCycles: Do more user-friendly indication that GPU devices are not found
Sergey Sharybin [Fri, 7 Dec 2018 13:47:35 +0000 (14:47 +0100)]
Cycles: Do more user-friendly indication that GPU devices are not found

10 months agoCycles: Disable OpenCL on macOS
Sergey Sharybin [Fri, 7 Dec 2018 13:37:47 +0000 (14:37 +0100)]
Cycles: Disable OpenCL on macOS

This is unfortunate, but the number of bugs in this configuration
keeps growing, and almost all of them are caused by bug in OpenCL
compiler.

The compiler is not likely to be fixed, since Apple declared OpenCL
deprecated.

This evil commit is aimed to keep officially supported features
of Blender in a good working and stable state.

10 months agoCleanup: redundant counter
Campbell Barton [Fri, 7 Dec 2018 06:06:21 +0000 (17:06 +1100)]
Cleanup: redundant counter

10 months agoFix error in Main cleanup
Campbell Barton [Fri, 7 Dec 2018 04:40:38 +0000 (15:40 +1100)]
Fix error in Main cleanup

See 481cdb08ed6f3

10 months agoFix Alembic indexed UVs being merged for different vertices.
Brecht Van Lommel [Thu, 6 Dec 2018 23:02:56 +0000 (00:02 +0100)]
Fix Alembic indexed UVs being merged for different vertices.

Other software uses this to define UV islands, so we can't just merge
any UVs with the same coordinate. They have to share a vertex too.

Contributed by Maxime Robinot, with changes by me.

Differential Revision: https://developer.blender.org/D4006

10 months agoFix T57963: Cycles crash using AO for displacement.
Brecht Van Lommel [Thu, 6 Dec 2018 18:50:05 +0000 (19:50 +0100)]
Fix T57963: Cycles crash using AO for displacement.

Note this is not supported, there exists no geometry at this point, but
it should not crash at least.

10 months agoFix T58832: Spin tool creates duplicate faces
Campbell Barton [Thu, 6 Dec 2018 03:50:25 +0000 (14:50 +1100)]
Fix T58832: Spin tool creates duplicate faces

10 months agoFix T58819: Weight paint gradient crash
Campbell Barton [Thu, 6 Dec 2018 00:19:18 +0000 (11:19 +1100)]
Fix T58819: Weight paint gradient crash

10 months agoCleanup: no need to access final mesh
Campbell Barton [Wed, 5 Dec 2018 21:36:36 +0000 (08:36 +1100)]
Cleanup: no need to access final mesh

10 months agoFix (devtalk 4053): Collada build with older cmake versions broken
Gaia Clary [Wed, 5 Dec 2018 21:04:10 +0000 (22:04 +0100)]
Fix (devtalk 4053): Collada build with older cmake versions broken

10 months agofix: Collada: remove Class from method definition in header file
Gaia Clary [Wed, 5 Dec 2018 19:28:06 +0000 (20:28 +0100)]
fix: Collada: remove Class from method definition in header file

10 months agodeps: update opencollada to v1.6.68
Ray Molenkamp [Wed, 5 Dec 2018 15:44:19 +0000 (08:44 -0700)]
deps: update opencollada to v1.6.68

10 months agoFix (unreported) building Cycles tests with Embree enabled.
Bastien Montagne [Wed, 5 Dec 2018 14:14:16 +0000 (15:14 +0100)]
Fix (unreported) building Cycles tests with Embree enabled.

10 months agoFix T58776, T58030: pressure sensitivity on Linux not working for some tablets.
Brecht Van Lommel [Wed, 5 Dec 2018 12:58:38 +0000 (13:58 +0100)]
Fix T58776, T58030: pressure sensitivity on Linux not working for some tablets.

10 months agoInstall_deps: bump collada version to 1.6.68.
Bastien Montagne [Wed, 5 Dec 2018 12:52:39 +0000 (13:52 +0100)]
Install_deps: bump collada version to 1.6.68.

10 months agoFix build with old CMake versions.
Brecht Van Lommel [Wed, 5 Dec 2018 11:53:08 +0000 (12:53 +0100)]
Fix build with old CMake versions.

10 months agoFix T49624: Fly uses camera settings outside camera view
Campbell Barton [Tue, 4 Dec 2018 21:36:37 +0000 (08:36 +1100)]
Fix T49624: Fly uses camera settings outside camera view

10 months agofix T58568: used wrong case in variable name
Gaia Clary [Tue, 4 Dec 2018 19:28:20 +0000 (20:28 +0100)]
fix T58568: used wrong case in variable name

10 months agofix T58568 build errors when using collada 1.6.68 or newer
Gaia Clary [Tue, 4 Dec 2018 18:11:33 +0000 (19:11 +0100)]
fix T58568 build errors when using collada 1.6.68 or newer

10 months agoFix T58466: bug in macOS GHOST_GetSwapInterval.
Niels [Tue, 4 Dec 2018 17:40:09 +0000 (18:40 +0100)]
Fix T58466: bug in macOS GHOST_GetSwapInterval.

No user level changes since this function is not used in active code.

10 months agoBuildbot: enable support for NVIDIA Turing cards in Cycles (like GTX 20xx).
Brecht Van Lommel [Tue, 4 Dec 2018 10:49:57 +0000 (11:49 +0100)]
Buildbot: enable support for NVIDIA Turing cards in Cycles (like GTX 20xx).

We currently only build the sm_7x kernels with CUDA 10.0, older cards still
use 9.1 until rendering errors are solved for them.

10 months agoCycles: add initial CUDA 10.0 support, but only recommend use for Turing cards.
Brecht Van Lommel [Tue, 4 Dec 2018 11:34:59 +0000 (12:34 +0100)]
Cycles: add initial CUDA 10.0 support, but only recommend use for Turing cards.

There may still be rendering errors when used for older graphics cards.

10 months agoCleanup: Spelling
Sergey Sharybin [Tue, 4 Dec 2018 10:43:53 +0000 (11:43 +0100)]
Cleanup: Spelling

10 months agoFix T58600: update OSL scripts to work with OSL 1.10.x.
Shane Ambler [Mon, 3 Dec 2018 11:16:30 +0000 (12:16 +0100)]
Fix T58600: update OSL scripts to work with OSL 1.10.x.

10 months agoFix T54580: Pointer buttons skip undo push
Campbell Barton [Mon, 3 Dec 2018 07:43:33 +0000 (18:43 +1100)]
Fix T54580: Pointer buttons skip undo push

10 months agoUse scene active object for sculptmode enter/exit calls
Campbell Barton [Mon, 3 Dec 2018 07:00:20 +0000 (18:00 +1100)]
Use scene active object for sculptmode enter/exit calls

Match logic in previous commit.

10 months agoFix T56331: Undo crash w/ sculpt on hidden layer
Campbell Barton [Mon, 3 Dec 2018 06:42:26 +0000 (17:42 +1100)]
Fix T56331: Undo crash w/ sculpt on hidden layer

10 months agoCleanup: BKE b-bone API naming
Campbell Barton [Sun, 2 Dec 2018 03:29:54 +0000 (14:29 +1100)]
Cleanup: BKE b-bone API naming

Use BKE_pchan_bbone prefix.

10 months agoCleanup: BKE_effect.h naming
Campbell Barton [Sun, 2 Dec 2018 03:14:51 +0000 (14:14 +1100)]
Cleanup: BKE_effect.h naming

10 months agoCleanup: style
Campbell Barton [Fri, 30 Nov 2018 21:15:25 +0000 (08:15 +1100)]
Cleanup: style

10 months agoFix T58275: WITH_OPENSUBDIV not enabled by default with some CMake versions.
Brecht Van Lommel [Fri, 30 Nov 2018 10:50:23 +0000 (11:50 +0100)]
Fix T58275: WITH_OPENSUBDIV not enabled by default with some CMake versions.

Solution provided by Ulysse Martin.

10 months agoRevert "3D View: locked camera was using the original view offset"
Campbell Barton [Fri, 30 Nov 2018 08:01:03 +0000 (19:01 +1100)]
Revert "3D View: locked camera was using the original view offset"

This reverts commit 3f31c28a025cf61e2c4df33f28467771ae603965.

Gives issues zooming, could be resolved but it mostly worked OK before,
and it's not a priority to spend time on, so leave as is for now.

10 months ago3D View: locked camera was using the original view offset
Campbell Barton [Fri, 30 Nov 2018 07:11:04 +0000 (18:11 +1100)]
3D View: locked camera was using the original view offset

Now used the original dist instead, since using the distance between
the camera and the views offset may seem random from the users POV.

This addresses strange behavior noticed in T56934.

10 months agoCorrect missing semicolon in recent commit
Campbell Barton [Fri, 30 Nov 2018 06:07:13 +0000 (17:07 +1100)]
Correct missing semicolon in recent commit

10 months agoCleanup: ensure '_END' macros end with a semicolon
Campbell Barton [Fri, 30 Nov 2018 04:35:15 +0000 (15:35 +1100)]
Cleanup: ensure '_END' macros end with a semicolon

Missing these breaks auto-indent for editors that don't expand macros.

10 months agoCleanup: name macros w/ matching BEGIN/END
Campbell Barton [Fri, 30 Nov 2018 04:22:01 +0000 (15:22 +1100)]
Cleanup: name macros w/ matching BEGIN/END

10 months agoCleanup: name macros w/ matching BEGIN/END
Campbell Barton [Fri, 30 Nov 2018 04:08:47 +0000 (15:08 +1100)]
Cleanup: name macros w/ matching BEGIN/END

10 months agoCleanup: duplicate include
Campbell Barton [Fri, 30 Nov 2018 03:21:28 +0000 (14:21 +1100)]
Cleanup: duplicate include

10 months agoCleanup: style
Campbell Barton [Fri, 30 Nov 2018 03:20:41 +0000 (14:20 +1100)]
Cleanup: style

10 months agoCleanup: unused return arg
Campbell Barton [Fri, 30 Nov 2018 02:21:12 +0000 (13:21 +1100)]
Cleanup: unused return arg

10 months agoFix T58183: crash with CPU + GPU rendering after profiling changes.
Brecht Van Lommel [Thu, 29 Nov 2018 22:30:17 +0000 (23:30 +0100)]
Fix T58183: crash with CPU + GPU rendering after profiling changes.

Multi-device was not passing along profiler to the CPU.

10 months agoCleanup: trailing space
Campbell Barton [Thu, 29 Nov 2018 21:38:25 +0000 (08:38 +1100)]
Cleanup: trailing space

10 months agoadd: visual studio Compiler warning (order of attribute init in c++ constructors)
Gaia Clary [Thu, 29 Nov 2018 15:56:33 +0000 (16:56 +0100)]
add: visual studio Compiler warning (order of attribute init in c++ constructors)

10 months agoFix internal compiler error when building with VS 2017 (15.9.3).
Brecht Van Lommel [Thu, 29 Nov 2018 15:41:10 +0000 (16:41 +0100)]
Fix internal compiler error when building with VS 2017 (15.9.3).

It doesn't like alignment for function arguments, and I don't think this
alignment is needed.

Solution found by Ray Molenkamp.

10 months agoAtomic: Avoid conflicts with definitions in other areas
Sergey Sharybin [Thu, 29 Nov 2018 08:33:50 +0000 (09:33 +0100)]
Atomic: Avoid conflicts with definitions in other areas

While atomics library was trying to use "user-space" defined
LIKELY() and UNLIKELY(), this is not always true that user
code was checking for those macro coming from an unrelated
area.

10 months agoCleanup: correct typo, no need for ./ prefix
Campbell Barton [Thu, 29 Nov 2018 01:53:48 +0000 (12:53 +1100)]
Cleanup: correct typo, no need for ./ prefix

10 months agoFix leak in CPU brand check
Campbell Barton [Wed, 28 Nov 2018 21:22:15 +0000 (08:22 +1100)]
Fix leak in CPU brand check

10 months agoCycles: Add sample-based runtime profiler that measures time spent in various parts...
Lukas Stockner [Thu, 29 Nov 2018 01:06:30 +0000 (02:06 +0100)]
Cycles: Add sample-based runtime profiler that measures time spent in various parts of the CPU kernel

This commit adds a sample-based profiler that runs during CPU rendering and collects statistics on time spent in different parts of the kernel (ray intersection, shader evaluation etc.) as well as time spent per material and object.

The results are currently not exposed in the user interface or per Python yet, to see the stats on the console pass the "--cycles-print-stats" argument to Cycles (e.g. "./blender -- --cycles-print-stats").

Unfortunately, there is no clear way to extend this functionality to CUDA or OpenCL, so it is CPU-only for now.

Reviewers: brecht, sergey, swerner

Reviewed By: brecht, swerner

Differential Revision: https://developer.blender.org/D3892

10 months agoCMake: update checker
Campbell Barton [Wed, 28 Nov 2018 21:49:50 +0000 (08:49 +1100)]
CMake: update checker

Support skipping cmake files

10 months agoMore fixes for NUMA on macOS
Sergey Sharybin [Wed, 28 Nov 2018 17:05:35 +0000 (18:05 +0100)]
More fixes for NUMA on macOS

10 months agoFix compilation error on macOS
Sergey Sharybin [Wed, 28 Nov 2018 16:57:04 +0000 (17:57 +0100)]
Fix compilation error on macOS

10 months agoFix compilation error on 32bit Windows
Sergey Sharybin [Wed, 28 Nov 2018 16:54:05 +0000 (17:54 +0100)]
Fix compilation error on 32bit Windows

10 months agoFix building gtests and bplayer after recent NumaAPI addition.
Bastien Montagne [Wed, 28 Nov 2018 15:50:02 +0000 (16:50 +0100)]
Fix building gtests and bplayer after recent NumaAPI addition.

Seriously... like, seriously...

10 months agoTweaks for threading schedule for Threadripper2 and EPYC
Sergey Sharybin [Tue, 27 Nov 2018 17:21:43 +0000 (18:21 +0100)]
Tweaks for threading schedule for Threadripper2 and EPYC

The idea is to make main thread and job threads to be scheduled
on CPU dies which has direct access to memory (those are NUMA
nodes 0 and 2).

We also do this for new EPYC CPUs since their NUMA nodes 1 and 3
do have access but only to a higher range DDR slots. By preferring
nodes 0 and 2 on EPYC we make it so users with partially filled
DDR slots has fast memory access.

One thing which is not really solved yet is localization of
memory allocation: we do not guarantee that memory is allocated
on the closest to the NUMA node DDR slot and hope that memory
manager of OS is acting in favor of us.

10 months agoAdd utility function to query CPU brand string
Sergey Sharybin [Tue, 27 Nov 2018 16:28:36 +0000 (17:28 +0100)]
Add utility function to query CPU brand string

10 months agoAdd cross-platform NUMA library
Sergey Sharybin [Tue, 27 Nov 2018 16:13:54 +0000 (17:13 +0100)]
Add cross-platform NUMA library

Makes it simple to use NUMA libraries on various platforms.

10 months agoFix T56872: Edge slide gives invalid normals
Campbell Barton [Tue, 27 Nov 2018 00:39:51 +0000 (11:39 +1100)]
Fix T56872: Edge slide gives invalid normals

Add the ability to skip overwriting normals.

10 months agoCMake: Remove Cycles specific OpenSubdiv options
Sergey Sharybin [Mon, 26 Nov 2018 10:41:38 +0000 (11:41 +0100)]
CMake: Remove Cycles specific OpenSubdiv options

Just use one flag which enables OpenSubdiv globally for all the
areas of Blender.

10 months agoFix T58006: smart UV project island margin should not use length units.
Brecht Van Lommel [Sat, 24 Nov 2018 22:01:50 +0000 (23:01 +0100)]
Fix T58006: smart UV project island margin should not use length units.

This distance is in UV space, not world space.

10 months agoSequencer: remove unnecessary limit on transform rotation.
Brecht Van Lommel [Fri, 9 Nov 2018 09:05:06 +0000 (10:05 +0100)]
Sequencer: remove unnecessary limit on transform rotation.

10 months agoFix X11 tablet pen and eraser distinction being wrong in some cases.
Brecht Van Lommel [Sat, 24 Nov 2018 22:21:13 +0000 (23:21 +0100)]
Fix X11 tablet pen and eraser distinction being wrong in some cases.

This extends the earlier fix to use the latest logic from Wine's wintab.c,
to better handle eraser detection.

10 months agoCleanup: remove unused file
Campbell Barton [Sat, 24 Nov 2018 21:05:42 +0000 (08:05 +1100)]
Cleanup: remove unused file

10 months agoCleanup: trailing space
Campbell Barton [Sat, 24 Nov 2018 21:01:14 +0000 (08:01 +1100)]
Cleanup: trailing space

10 months agoFix penpressure for tablets that use libinput on linux
Jens Verwiebe [Sat, 24 Nov 2018 17:23:57 +0000 (18:23 +0100)]
Fix penpressure for tablets that use libinput on linux

10 months agoCycles: Fixed a warning.
Stefan Werner [Fri, 23 Nov 2018 12:47:25 +0000 (13:47 +0100)]
Cycles: Fixed a warning.

10 months agoCycles: Improved robustness of hair motion blur.
Stefan Werner [Fri, 23 Nov 2018 12:21:55 +0000 (13:21 +0100)]
Cycles: Improved robustness of hair motion blur.

In some instances, the number of control vertices of a hair could change mid-frame.
Cycles would then be unable to calculate proper motion blur for those hairs. This adds
interpolated CVs to fill in for the missing data. While this will not necessarily result in
a fully accurate reconstruction of the guide hair, it preserves motion blur instead of disabling it.

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: sergey, brecht, #cycles

Tags: #cycles

Differential Revision: https://developer.blender.org/D3695

10 months agoFix T57998: crash at start with jemalloc package on some Linux distributions.
Brecht Van Lommel [Fri, 23 Nov 2018 10:24:04 +0000 (11:24 +0100)]
Fix T57998: crash at start with jemalloc package on some Linux distributions.

The jemalloc library must be ahead of pthread in linking order, so jemalloc
can find the pthread symbols for its background thread.

10 months agoFix T57989: File loaded as startup
Campbell Barton [Thu, 22 Nov 2018 03:57:41 +0000 (14:57 +1100)]
Fix T57989: File loaded as startup

The file contents was used to check if the file was a startup file.

Now pass in an argument from startup loading code instead.

10 months agoFix T57811: Render crashes in certain scenes when AO Bounces are used
Sergey Sharybin [Wed, 21 Nov 2018 13:17:26 +0000 (14:17 +0100)]
Fix T57811: Render crashes in certain scenes when AO Bounces are used

10 months agoCycles: Cleanup, use utility function
Sergey Sharybin [Wed, 21 Nov 2018 12:51:18 +0000 (13:51 +0100)]
Cycles: Cleanup, use utility function

Replaces inlined platform-specific code.

10 months agoCycles: Cleanup, reduce indentation level
Sergey Sharybin [Wed, 21 Nov 2018 11:23:54 +0000 (12:23 +0100)]
Cycles: Cleanup, reduce indentation level

10 months agoCycles: Cleanup, comments and dead code
Sergey Sharybin [Wed, 21 Nov 2018 10:33:11 +0000 (11:33 +0100)]
Cycles: Cleanup, comments and dead code

10 months agoCycles: Cleanup, CUDA code path is not possible inside AVX2
Sergey Sharybin [Wed, 21 Nov 2018 10:28:49 +0000 (11:28 +0100)]
Cycles: Cleanup, CUDA code path is not possible inside AVX2

10 months agoFix T57923: Freeze in mesh vnors computation code with some degenerated geometry.
Bastien Montagne [Tue, 20 Nov 2018 16:54:48 +0000 (17:54 +0100)]
Fix T57923: Freeze in mesh vnors computation code with some degenerated geometry.

Second part of the fix: do not try at all to compute normals in degenerated
geometry. Just loss of time and potential issues later with weird
invalid computed values.

10 months agoFix T57923: Freeze in mesh vnors computation code with some degenerated geometry.
Bastien Montagne [Tue, 20 Nov 2018 16:52:21 +0000 (17:52 +0100)]
Fix T57923: Freeze in mesh vnors computation code with some degenerated geometry.

Fix first part of it, the freeze itself being caused by float NAN values
never comparing equal to anything, not even themselves.

10 months agoTask scheduler: Optimize parallel loop over lists
Sergey Sharybin [Tue, 20 Nov 2018 11:17:03 +0000 (12:17 +0100)]
Task scheduler: Optimize parallel loop over lists

The goal is to address performance regression when going from
few threads to 10s of threads. On a systems with more than 32
CPU threads the benefit of threaded loop was actually harmful.

There are following tweaks now:

- The chunk size is adaptive for the number of threads, which
  minimizes scheduling overhead.

- The number of tasks is adaptive to the list size and chunk
  size.

Here comes performance comparison on the production shot:

 Number of threads        DEG time before        DEG time after
       44                     0.09                   0.02
       32                     0.055                  0.025
       16                     0.025                  0.025
       8                      0.035                  0.033

10 months agoRemoved superfluous NULL check
Sybren A. Stüvel [Tue, 20 Nov 2018 09:46:17 +0000 (10:46 +0100)]
Removed superfluous NULL check

10 months agoAdded MovieClip.fps read-only property to RNA
Sybren A. Stüvel [Tue, 20 Nov 2018 09:32:24 +0000 (10:32 +0100)]
Added MovieClip.fps read-only property to RNA

This makes it possible for a Python script that loads a MovieClip into the
clip editor to also change the scene frame rate to match.

10 months agoLinux: list GVFS mount points
Roel Koster [Sun, 18 Nov 2018 21:34:04 +0000 (08:34 +1100)]
Linux: list GVFS mount points