Skip to content

Commit

Permalink
HnRenderDelegate: don't add extra space to the primitive attribs buffer
Browse files Browse the repository at this point in the history
This degrades dynamic memory utilization
  • Loading branch information
TheMostDiligent committed Nov 24, 2024
1 parent f46ff22 commit 8a9e68e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Hydrogent/src/HnRenderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ const pxr::TfTokenVector HnRenderDelegate::SupportedBPrimTypes = {
static RefCntAutoPtr<IBuffer> CreatePrimitiveAttribsCB(IRenderDevice* pDevice)
{
Uint64 Size = 65536;
// Add extra space as buffer for the attributes buffer range.
Size += 8192;

// Don't do this as this degrades dynamic memory utilization!
//Size += 8192; // Add extra space as buffer for the attributes buffer range.

USAGE Usage = USAGE_DYNAMIC;
if (pDevice->GetDeviceInfo().IsGLDevice())
Expand Down

0 comments on commit 8a9e68e

Please sign in to comment.