Compositor: Remove now-unused "tiled" implementation #118819

Merged
Aras Pranckevicius merged 20 commits from aras_p/blender:com_remove_tiled into main 2024-02-28 16:59:26 +01:00

New ("fullframe") CPU compositor backend is being used now (see forum thread), and all the code related to "tiled" CPU compositor is just never used anymore. The new backend is faster, uses less memory, better matches GPU compositor, etc.

TL;DR: 20 thousand lines of code gone.

This PR:

  • Removes various bits and pieces related to "tiled" compositor (execution groups, one-pixel-at-a-time node processing, read/write buffer operations related to node execution groups).
  • "GPU" (OpenCL) execution device, that was only used by several nodes of the tiled compositor.
    • With that, remove CLEW external library too, since nothing within Blender uses OpenCL directly anymore.

Questions and/or possible future work:

  • It's very likely that I missed more bits that are now "no longer needed". Any obvious ones?
  • The ExecutionModel and CPUDevice inheritance hierarchy could be simplified, since now there's only ever one class doing the work.
  • WorkScheduler / WorkPackage / ThreadingModel could be replaced from bespoke queue to using BLI parallel threading utilities. Seems that some of that already exists (ThreadingModel::Task) but it's not actually used for some reason.
  • CMake: with OpenCL gone, data_to_c is no longer used (only data_to_c_simple), so perhaps it could be removed.
New ("fullframe") CPU compositor backend is being used now (see [forum thread](https://devtalk.blender.org/t/improved-render-compositor-feedback-and-discussion/33377)), and all the code related to "tiled" CPU compositor is just never used anymore. The new backend is faster, uses less memory, better matches GPU compositor, etc. TL;DR: 20 thousand lines of code gone. This PR: - Removes various bits and pieces related to "tiled" compositor (execution groups, one-pixel-at-a-time node processing, read/write buffer operations related to node execution groups). - "GPU" (OpenCL) execution device, that was only used by several nodes of the tiled compositor. - With that, remove CLEW external library too, since nothing within Blender uses OpenCL directly anymore. Questions and/or possible future work: - It's very likely that I missed more bits that are now "no longer needed". Any obvious ones? - The ExecutionModel and CPUDevice inheritance hierarchy could be simplified, since now there's only ever one class doing the work. - WorkScheduler / WorkPackage / ThreadingModel could be replaced from bespoke queue to using BLI parallel threading utilities. Seems that some of that already exists (`ThreadingModel::Task`) but it's not actually used for some reason. - CMake: with OpenCL gone, `data_to_c` is no longer used (only `data_to_c_simple`), so perhaps it could be removed.
Aras Pranckevicius added 4 commits 2024-02-27 20:34:37 +01:00
Aras Pranckevicius added 1 commit 2024-02-27 20:39:27 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
aa0cd7979c
Cleanup: remove CLEW, now that it is unused
Aras Pranckevicius added 5 commits 2024-02-28 09:52:50 +01:00
Aras Pranckevicius added 3 commits 2024-02-28 10:48:48 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
0ab57dce5d
Compositor: more small scale removals
Aras Pranckevicius added 1 commit 2024-02-28 11:36:49 +01:00
Aras Pranckevicius added 2 commits 2024-02-28 12:58:42 +01:00
Aras Pranckevicius added 1 commit 2024-02-28 13:03:02 +01:00
Aras Pranckevicius added 1 commit 2024-02-28 13:07:29 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
4404964ae0
Compositor: small leftovers
Author
Member

@blender-bot build

@blender-bot build
Aras Pranckevicius changed title from WIP: Compositor: Remove tiled implementation to WIP: Compositor: Remove now-unused "tiled" implementation 2024-02-28 13:17:06 +01:00
Aras Pranckevicius changed title from WIP: Compositor: Remove now-unused "tiled" implementation to Compositor: Remove now-unused "tiled" implementation 2024-02-28 13:30:54 +01:00
Aras Pranckevicius added this to the Compositing project 2024-02-28 13:31:48 +01:00
Sergey Sharybin reviewed 2024-02-28 14:00:05 +01:00
@ -56,7 +56,6 @@ if(WITH_LZMA)
endif()
if(WITH_CYCLES OR WITH_COMPOSITOR_CPU OR WITH_OPENSUBDIV)

WITH_COMPOSITOR_CPU ca be removed from the condition, as neither CUDA nor HIP are used by compositor.

`WITH_COMPOSITOR_CPU ` ca be removed from the condition, as neither CUDA nor HIP are used by compositor.
aras_p marked this conversation as resolved
Aras Pranckevicius added 2 commits 2024-02-28 16:55:54 +01:00
Aras Pranckevicius merged commit f5f7024040 into main 2024-02-28 16:59:26 +01:00
Aras Pranckevicius deleted branch com_remove_tiled 2024-02-28 16:59:28 +01:00
Sign in to join this conversation.
No reviewers
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#118819
No description provided.