Freestyle edges are still calculated (but not shown) for objects that are in an excluded collection #104366

Closed
opened 2023-02-06 02:14:07 +01:00 by kursad k · 4 comments
Member

System Information
Operating system: Windows 11

Blender Version
Broken: b2196ebe28
Worked: b2196ebe28

Short description of error

There does not seem to be a much of render time difference between a scene is fully rendered with Freestyle edges or most of the scene is excluded from Freestyle via collections.

blender_U959nRtmdl.jpg

Exact steps for others to reproduce the error

Load the attached scene.

Render the frame and take a note of the render time

Disable the collection filtering in Freestyle using the Frestyle options in the View Layer tab

Render the frame

Compare the time results, the values are very close which makes me think that the edges are still calculated.

Delete all the objects in "NO.FREESTYLE" collection, just delete them from the scene so you have only one gear object left in the scene

Render the scene which should render the gear with Freestyle, the result should be much faster.

_05022023_1902_28.zip

**System Information** Operating system: Windows 11 **Blender Version** Broken: b2196ebe287f Worked: b2196ebe287f **Short description of error** There does not seem to be a much of render time difference between a scene is fully rendered with Freestyle edges or most of the scene is excluded from Freestyle via collections. ![blender_U959nRtmdl.jpg](https://archive.blender.org/developer/F14249636/blender_U959nRtmdl.jpg) **Exact steps for others to reproduce the error** Load the attached scene. Render the frame and take a note of the render time Disable the collection filtering in Freestyle using the Frestyle options in the View Layer tab Render the frame Compare the time results, the values are very close which makes me think that the edges are still calculated. Delete all the objects in "NO.FREESTYLE" collection, just delete them from the scene so you have only one gear object left in the scene Render the scene which should render the gear with Freestyle, the result should be much faster. [_05022023_1902_28.zip](https://archive.blender.org/developer/F14249654/_05022023_1902_28.zip)
Author
Member

Added subscriber: @kursadk

Added subscriber: @kursadk

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

FreeStyle is no longer in active development and, therefore, is no longer being improved.
The current replacement is the Line Art modifier (for Grease Pencil objects).

Analyzing the file shown. I noticed free style still needs to import all the geometry to create maps like occlusion.

- ===============================================================
- Freestyle
#===============================================================

===  Dimensions of the 2D image coordinate system  ===
Width  : 1440
Height : 810
Unit line thickness : 0.75 pixel(s)

----------------------------------------------------------
|  Scene|View Layer
| -- | -- |
----------------------------------------------------------

===  Importing triangular meshes into Blender  ===
Scene loaded
Mesh cleaning    : 6.014000
View map cache   : disabled
WEdge building   : 2.952000
Triangles nb     : 2606592 imported, 2606592 retained
Bounding Box     : 28.9249

===  Rendering options  ===
Linesets:
  1: LineSet - LineStyle
Crease angle : 134.43
Sphere radius : 0.1
Face smoothness : disabled
Ridges and valleys : disabled
Suggestive contours : disabled
Suggestive contour Kr derivative epsilon : 0
Material boundaries : disabled

Passes :
  Diffuse = disabled
  Z = enabled

===  Detecting silhouette edges  ===
Feature lines    : 0.985000

===  Building the view map  ===
Using unculled adaptive grid with heuristic density and cumulative QI calculation
Proscenium: -0.387631, 0.355296, -0.242803, 0.242155
Total area: 2.30587.  Number of faces: 2606592.
Building grid with average area 4.42315e-07
Scene-dependent cell size (0.000665068 square) is too small.
931x608 cells of size 0.000797988 square.
1025x669 cells of size 0.000797988 square.
Proscenium: -0.387631, 0.355296, -0.242803, 0.242155
0.742926 x 0.484958 grid with cells of area 1.90225e-05.
171x112 cells of size 0.00436148 square.
188x123 cells of size 0.00436148 square.
Generate Cell structure
Using 1025x669 cells of size 0.000797988 square.
Cell origin: -0.425136, -0.267251
Distribute occluders
Distributed 2606592 occluders.  Retained 1911868.
Reorganize cells
Ready to use SphericalGrid
ViewMap edge count : 282157
ViewMap building : 5.335000

===  Stroke drawing  ===
Strokes generation  : 0.399
Stroke count  : 38
Stroke rendering engine : CYCLES
BlenderStrokeRenderer: 16 thread(s)
Temporary scene generation: 0.003
Stroke rendering  : 0.663
1 objs, mem 312.53M (peak 680.34M)

For that, among other things, it needs to apply modifiers, which can be quite slow.

So thanks for the report but while we do continue to work on improving performance in general, potential performance improvements are not handled as bug reports.

To improve performance, consider using less complex geometry, simpler shaders and smaller textures.

FreeStyle is no longer in active development and, therefore, is no longer being improved. The current replacement is the `Line Art` modifier (for Grease Pencil objects). Analyzing the file shown. I noticed free style still needs to import all the geometry to create maps like occlusion. ```lines=20 - =============================================================== - Freestyle #=============================================================== === Dimensions of the 2D image coordinate system === Width : 1440 Height : 810 Unit line thickness : 0.75 pixel(s) ---------------------------------------------------------- | Scene|View Layer | -- | -- | ---------------------------------------------------------- === Importing triangular meshes into Blender === Scene loaded Mesh cleaning : 6.014000 View map cache : disabled WEdge building : 2.952000 Triangles nb : 2606592 imported, 2606592 retained Bounding Box : 28.9249 === Rendering options === Linesets: 1: LineSet - LineStyle Crease angle : 134.43 Sphere radius : 0.1 Face smoothness : disabled Ridges and valleys : disabled Suggestive contours : disabled Suggestive contour Kr derivative epsilon : 0 Material boundaries : disabled Passes : Diffuse = disabled Z = enabled === Detecting silhouette edges === Feature lines : 0.985000 === Building the view map === Using unculled adaptive grid with heuristic density and cumulative QI calculation Proscenium: -0.387631, 0.355296, -0.242803, 0.242155 Total area: 2.30587. Number of faces: 2606592. Building grid with average area 4.42315e-07 Scene-dependent cell size (0.000665068 square) is too small. 931x608 cells of size 0.000797988 square. 1025x669 cells of size 0.000797988 square. Proscenium: -0.387631, 0.355296, -0.242803, 0.242155 0.742926 x 0.484958 grid with cells of area 1.90225e-05. 171x112 cells of size 0.00436148 square. 188x123 cells of size 0.00436148 square. Generate Cell structure Using 1025x669 cells of size 0.000797988 square. Cell origin: -0.425136, -0.267251 Distribute occluders Distributed 2606592 occluders. Retained 1911868. Reorganize cells Ready to use SphericalGrid ViewMap edge count : 282157 ViewMap building : 5.335000 === Stroke drawing === Strokes generation : 0.399 Stroke count : 38 Stroke rendering engine : CYCLES BlenderStrokeRenderer: 16 thread(s) Temporary scene generation: 0.003 Stroke rendering : 0.663 1 objs, mem 312.53M (peak 680.34M) ``` For that, among other things, it needs to apply modifiers, which can be quite slow. So thanks for the report but while we do continue to work on improving performance in general, potential performance improvements are not handled as bug reports. To improve performance, consider using less complex geometry, simpler shaders and smaller textures.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#104366
No description provided.