Page MenuHome

Skip EditMesh to Mesh Conversion
AbandonedPublic

Authored by Germano Cavalcante (mano-wii) on Feb 26 2020, 7:03 PM.
Tags
None
Tokens
"Love" token, awarded by billreynish."100" token, awarded by Frozen_Death_Knight."Like" token, awarded by Dangry."Like" token, awarded by TheRedWaxPolice."Love" token, awarded by ace_dragon.

Details

Summary

(Part of T73360)
This is kind of a conceptual project, probably needs more testing,
The idea is lazily initialize the edit-mesh to mesh conversion.

In my tests this resulted in an improvement from 2.9 fps to 4.0 fps
(66% of the speed seen in 2.79).

It is certainly one of the ways to go.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D6944 (branched from master)
Build Status
Buildable 6795
Build 6795: arc lint + arc unit

Event Timeline

  • Fix: test use_editmesh_eval in cage

I think for this to be easy to understand, we should have a few accessor functions to get the evaluated mesh, editmesh, cage, etc. And never access it directly.

Carefully naming and commenting these functions is important, and may require some code refactoring. There are a lot of object/mesh blenkernel API functions, and it's often hard to tell which ones to use for which purpose.

Clément Foucault (fclem) requested changes to this revision.Mar 26 2020, 12:53 AM

Same feeling as @Brecht Van Lommel (brecht). Having accessor function to avoid repetition is needed.

source/blender/draw/engines/overlay/overlay_wireframe.c
187

This should really be its own function.

This revision now requires changes to proceed.Mar 26 2020, 12:53 AM

This patch is more of a proof of concept.
There's another one being worked on in more depth (D7169: Bypass EditMesh to Mesh conversion (initial step)).