Page MenuHome

Depsgraph: Simplify scheduling in depsgraph evaluator.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Nov 8 2022, 5:16 PM.

Details

Summary

The code used a weird combination of c-style function points with c++ templates. Using FunctionRef allows writing the same code much simpler. I also removed the thread_id argument because it was never used.

No functional or performance changes are expected.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Nov 8 2022, 5:16 PM
Jacques Lucke (JacquesLucke) created this revision.

Is it a simple cleanup? Are there any functional changes expected? Is there any performance penalty of using FunctionRef over function pointer?

Is it a simple cleanup?

Yes.

Are there any functional changes expected?

No.

Is there any performance penalty of using FunctionRef over function pointer?

The generated assembly will likely be a little bit different, could be slightly better or worse depending on the number of captured args. Either way, this is completely negligible here.

Thanks for clarification!

I kinda like that we go away from those variadic templates :)

This revision is now accepted and ready to land.Nov 8 2022, 6:17 PM