Add support for PGL v0.6.0 #118328

Merged
Brecht Van Lommel merged 4 commits from bartus/blender:pgl6 into main 2024-02-19 13:32:34 +01:00
Contributor

OpenPGL:0.6.0 introduces some minor rework for configuration that break 0.5.0 API.

  • PGLFieldArguments replaced with FieldConfig
  • Initialize maxSamplesPerLeaf to default value 32k

OpenPGL:0.6.0 non braking changes bugfixes and optimizations:

  • Spatial structure (Kd-tree) build is now multithreaded.
  • Kd-tree switched to use cache-friendlier TreeLets.
  • Field fixed some non-deterministic behavior when spatial cache does not receive any training data during a training iteration due to a large number of training iterations.
  • Removed legacy/broken support for OpenMP threading.
  • Fixed build problems on (non-Mac) ARM systems.

https://github.com/OpenPathGuidingLibrary/openpgl/releases/tag/v0.6.0

OpenPGL:0.6.0 introduces some minor rework for configuration that break 0.5.0 API. * `PGLFieldArguments` replaced with `FieldConfig` * Initialize `maxSamplesPerLeaf` to default value 32k OpenPGL:0.6.0 non braking changes bugfixes and optimizations: * Spatial structure (Kd-tree) build is now multithreaded. * Kd-tree switched to use cache-friendlier TreeLets. * Field fixed some non-deterministic behavior when spatial cache does not receive any training data during a training iteration due to a large number of training iterations. * Removed legacy/broken support for OpenMP threading. * Fixed build problems on (non-Mac) ARM systems. https://github.com/OpenPathGuidingLibrary/openpgl/releases/tag/v0.6.0
Iliya Katushenock added this to the Platforms, Builds Tests & Devices project 2024-02-15 15:30:35 +01:00
Brecht Van Lommel modified the project from Platforms, Builds Tests & Devices to Render & Cycles 2024-02-15 16:30:18 +01:00

@blender-bot build linux

@blender-bot build linux
Brecht Van Lommel requested changes 2024-02-15 16:33:33 +01:00
Brecht Van Lommel left a comment
Owner

Can you add some #ifdefs to make it build with both versions?

That makes coordinating the upgrade simpler and less disruptive.

Can you add some #ifdefs to make it build with both versions? That makes coordinating the upgrade simpler and less disruptive.
bartus force-pushed pgl6 from ef0c787a7f to 7de03f4ad6 2024-02-15 22:08:14 +01:00 Compare
Author
Contributor
Done, regards to https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/issues/7#note_163172
Brecht Van Lommel requested review from Sebastian Herholz 2024-02-15 23:04:30 +01:00
Sebastian-Herholz reviewed 2024-02-16 10:05:04 +01:00
@ -1294,0 +1300,4 @@
PGL_SPATIAL_STRUCTURE_TYPE::PGL_SPATIAL_STRUCTURE_KDTREE,
PGL_DIRECTIONAL_DISTRIBUTION_TYPE::PGL_DIRECTIONAL_DISTRIBUTION_PARALLAX_AWARE_VMM,
guiding_params.deterministic,
3200);

I would remove the 3200 so that the default parameter from Open PGL is used.

  1. this is the wrong value anyway (it should be 32000 instead of 3200)
  2. being able to set is is more for a debug purpose and should only be done in special cases
  3. Explicitly setting this value generates the problem that the default parameter is overwritten. If Open PGL decides that another value is more robust and preferable this would not work in Blender/Cycles
I would remove the 3200 so that the default parameter from Open PGL is used. 1. this is the wrong value anyway (it should be 32000 instead of 3200) 2. being able to set is is more for a debug purpose and should only be done in special cases 3. Explicitly setting this value generates the problem that the default parameter is overwritten. If Open PGL decides that another value is more robust and preferable this would not work in Blender/Cycles
Author
Contributor

Fixed

Fixed
bartus marked this conversation as resolved

@bartus thanks for taking the time to update the Open PGL version (I just pushed).
This saves me the time of doing it myself. ;)

The path looks OK accept the explicit setting of the maxSamplesPerLeafNode parameter.
Note, you set the value to 3200 instead of 32000.

@bartus thanks for taking the time to update the Open PGL version (I just pushed). This saves me the time of doing it myself. ;) The path looks OK accept the explicit setting of the `maxSamplesPerLeafNode` parameter. Note, you set the value to 3200 instead of 32000.
bartus changed title from Update PGL to v0.6.0 to Add support for Update PGL to v0.6.0 2024-02-16 14:35:58 +01:00
bartus force-pushed pgl6 from 7de03f4ad6 to ea857f80df 2024-02-16 22:51:36 +01:00 Compare
Author
Contributor

@Sebastian-Herholz Shouldn't changes in the build env be delayed, if the init code is fenced with #ifdefs and works with both versions?

@Sebastian-Herholz Shouldn't changes in the build env be delayed, if the init code is fenced with #ifdefs and works with both versions?
bartus changed title from Add support for Update PGL to v0.6.0 to Add support for PGL to v0.6.0 2024-02-19 09:50:48 +01:00
bartus changed title from Add support for PGL to v0.6.0 to Add support for PGL v0.6.0 2024-02-19 09:51:09 +01:00
Brecht Van Lommel approved these changes 2024-02-19 12:27:18 +01:00

I'll put the source code changes in the 4.1 release branch, so that Linux distributions can use it.

For the official release, the build environment changes will go to main for 4.2.

I'll put the source code changes in the 4.1 release branch, so that Linux distributions can use it. For the official release, the build environment changes will go to main for 4.2.
Brecht Van Lommel added 1 commit 2024-02-19 13:21:27 +01:00
Brecht Van Lommel added 1 commit 2024-02-19 13:26:57 +01:00
Brecht Van Lommel merged commit 791aeeff9a into main 2024-02-19 13:32:34 +01:00
Brecht Van Lommel deleted branch pgl6 2024-02-19 13:32:37 +01:00
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 Assignees
3 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#118328
No description provided.