We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
We notice huge VP2 performance loss on scenes containing large point instancers when switching to Depth Peeling or Alpha Cut transparency.
Depth Peeling
Alpha Cut
The issue does not appear when world consolidation is enabled, but we need to disable it in some cases.
Steps to reproduce
import random import pxr.UsdGeom import maya.cmds import mayaUsd.ufe import mayaUsd_createStageWithNewLayer maya.cmds.loadPlugin("mayaUsdPlugin", quiet=True) proxyShape = mayaUsd_createStageWithNewLayer.createStageWithNewLayer() shapeStage = mayaUsd.ufe.getStage(proxyShape) shapeStage.GetRootLayer().ImportFromString('''#sdf 1 ( defaultPrim="PI" ) def PointInstancer "PI" { rel prototypes = [</PI/Protos/Sphere>] def Scope "Protos" { def Sphere "Sphere" {} } } ''') instancer = pxr.UsdGeom.PointInstancer(shapeStage.GetDefaultPrim()) instCount = 100000 instBounds = (-1000.0, 1000.0) instancer.CreateProtoIndicesAttr().Set([0] * instCount) instancer.CreatePositionsAttr().Set([ (random.uniform(*instBounds), 0.0, random.uniform(*instBounds)) for i in range(instCount) ])
maya.cmds.setAttr("hardwareRenderingGlobals.consolidateWorld", 0)
Object Sorting
maya.cmds.setAttr("hardwareRenderingGlobals.transparencyAlgorithm", 1) maya.cmds.ogs(traceRenderPipeline=True) maya.cmds.refresh() maya.cmds.ogs(traceRenderPipeline=False) # -- VP2 Trace[modelPanel4][3d Beauty Pass] # Count for list: [Opaque] = 1
VP2UpdateScene
VP2Draw3dBeautyPass
VP2ClearRenderLists
ALpha Cut
maya.cmds.setAttr("hardwareRenderingGlobals.transparencyAlgorithm", 3) maya.cmds.ogs(traceRenderPipeline=True) maya.cmds.refresh() maya.cmds.ogs(traceRenderPipeline=False) # -- VP2 Trace[modelPanel4][3d Beauty Pass] # Count for list: [Opaque] = 100000 # Count for list: [Opaque] = 100000
Specs (if applicable):
The text was updated successfully, but these errors were encountered:
santosg87
No branches or pull requests
Describe the bug
We notice huge VP2 performance loss on scenes containing large point instancers when switching to
Depth Peeling
orAlpha Cut
transparency.The issue does not appear when world consolidation is enabled, but we need to disable it in some cases.
Steps to reproduce
Object Sorting
transparency.VP2UpdateScene
≈ 300usVP2Draw3dBeautyPass
≈ 400usVP2ClearRenderLists
≈ 2usDepth Peeling
transparency (orALpha Cut
)VP2UpdateScene
≈ 120msVP2Draw3dBeautyPass
≈ 500msVP2ClearRenderLists
≈ 40msSpecs (if applicable):
The text was updated successfully, but these errors were encountered: