Skip to content

Commit 8a9e68e

Browse files
HnRenderDelegate: don't add extra space to the primitive attribs buffer
This degrades dynamic memory utilization
1 parent f46ff22 commit 8a9e68e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Hydrogent/src/HnRenderDelegate.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ const pxr::TfTokenVector HnRenderDelegate::SupportedBPrimTypes = {
9090
static RefCntAutoPtr<IBuffer> CreatePrimitiveAttribsCB(IRenderDevice* pDevice)
9191
{
9292
Uint64 Size = 65536;
93-
// Add extra space as buffer for the attributes buffer range.
94-
Size += 8192;
93+
94+
// Don't do this as this degrades dynamic memory utilization!
95+
//Size += 8192; // Add extra space as buffer for the attributes buffer range.
9596

9697
USAGE Usage = USAGE_DYNAMIC;
9798
if (pDevice->GetDeviceInfo().IsGLDevice())

0 commit comments

Comments
 (0)