Go to file
Tamito Kajiyama b614b81a77 Fix for [#35245] Freestyle getting stuck on view map creation + memory leaks.
There were two issues:

- Line visibility computations are very slow in the case of the provided .blend file, which gave
an impression that the rendering process got stuck.  The slowness can be explained by the present
data structures used for the line visibility computations, together with the specific mesh distribution
of the test scene.  At the moment Freestyle uses a regular grid in the 2D image coordinate system
to divide tris/quads into small groups in order to accelerate the line visibility computations.
On the other hand, the test scene is populated a big plane (made of one quad) and a moderately
detailed mesh object (22K tris).  The scale of the latter mesh is animated from nearly zero to
about 0.2 to make the object show up over time.  When the scale is nearly equal to zero, all the
tris concentrate in one grid cell, so essentially there is no performance gain from the grid data
structure optimized for speed.  It looks like a better grid data structure (possibly based on
adaptive grid refinement) is necessary to genuinely address the identified performance issue.  For now
the progress bar of Blender is employed to better inform users of the amount of work done in the line
visibility computations.

- A crash was caused by an excessive memory allocation request.  The X and Y dimensions of the grid
data structure are determined based on the average area of mesh faces in the given scene.  When the big
plane in the test scene is excluded from the rendering, the average area is almost zero (on the order
of 1e-5).  As a result of this extremely small average area, the X and Y dimensions were set to a very
large number, causing a fatal memory allocation error.  The present revision has introduced a hard
upper limit to the dimensions of the grid data structure to avoid this kind of numerical instability.
2013-05-19 00:56:40 +00:00
build_files fix for finding openjpeg on some systems. 2013-05-15 09:57:17 +00:00
doc Moved main part of bpy.app.translations doc out of C code, as suggested by Campell, thx. 2013-05-14 18:16:37 +00:00
extern quiet warnings from r56825 2013-05-16 03:55:47 +00:00
intern Cycles: 2013-05-18 22:40:21 +00:00
release Cycles / OSL: 2013-05-18 14:36:03 +00:00
source Fix for [#35245] Freestyle getting stuck on view map creation + memory leaks. 2013-05-19 00:56:40 +00:00
CMakeLists.txt Patch for CMakeLists.txt to build with new OpenAL libs on VS2012. 2013-05-15 11:26:57 +00:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Fix a mismatch in help message (check_spelling_osl obviously checks OLS, and check_spelling_c, C code! :P ) 2013-05-14 14:37:51 +00:00
SConstruct Merged changes in the trunk up to revision 55546. 2013-03-24 12:13:13 +00:00