Skip to content

Documentation allocates velocity buffers that are too large #132

@ixchow

Description

@ixchow

In at least two places I have noticed, the manual suggests allocating a velocity buffer with 32 bytes per element despite only using 24 bytes (i.e., sizeof(Vec3)) per element.

In manual.html#quick-start:

NvFlexBuffer* velocityBuffer = NvFlexAllocBuffer(library, n, sizeof(float4), eNvFlexBufferHost);

In NvFlex.h (and the documentation generated from it):

NvFlexBuffer* velocityBuffer = NvFlexAllocBuffer(library, n, sizeof(Vec4), eNvFlexBufferHost);

It is clear there is not some hidden constraint that requires allocating 33% more memory for velocities, given that the extensions code uses a 24-bytes-per-element buffer (via NvFlexVector< Vec3 >). I suggest that these mentions in the manual be corrected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions