Page MenuHome

Compositor: Full frame Ellipse Mask node
ClosedPublic

Authored by Manuel Castilla (manzanilla) on Jun 17 2021, 8:50 PM.

Details

Summary

Adds full frame implementation to this node operation.
No functional changes.

3x times faster than tiled fallback.

Diff Detail

Repository
rB Blender
Branch
cmp-node-ellipse-mask (branched from master)
Build Status
Buildable 15290
Build 15290: arc lint + arc unit

Event Timeline

Manuel Castilla (manzanilla) requested review of this revision.Jun 17 2021, 8:50 PM
Manuel Castilla (manzanilla) created this revision.
Jeroen Bakker (jbakker) requested changes to this revision.Jun 21 2021, 11:01 AM
Jeroen Bakker (jbakker) added inline comments.
source/blender/compositor/operations/COM_EllipseMaskOperation.cc
148

Best to move this outside the for loops. Perhaps use a lambda expression?
Switch statements can fill the branch prediction table.

This revision now requires changes to proceed.Jun 21 2021, 11:01 AM
  • Merge branch 'master' into cmp-node-ellipse-mask
  • Move switch statement out of for loops
Manuel Castilla (manzanilla) marked an inline comment as done.EditedJun 22 2021, 12:47 AM

I've done performance tests comparing with tiled implementation fallback, added to main post, I use this patch:

Jeroen Bakker (jbakker) requested changes to this revision.Jul 5 2021, 7:39 AM
Jeroen Bakker (jbakker) added inline comments.
source/blender/compositor/operations/COM_EllipseMaskOperation.cc
148

I expected something to add a method that loops over the rows and columns that will use a lambda expression. update_memory_buffer_partial would than contain a switch statement that calls the new method with the specific expression. This would reduce the number of if statements in the inner loop.

This revision now requires changes to proceed.Jul 5 2021, 7:39 AM
  • Merge branch 'master' into cmp-node-ellipse-mask
  • Add a method that loops applying the lambda expression
Manuel Castilla (manzanilla) marked an inline comment as done.Jul 7 2021, 6:29 PM
This revision is now accepted and ready to land.Jul 19 2021, 10:06 AM