Skip to content

Ideas + Optimization Possibilities #784

@McCallisterRomer

Description

@McCallisterRomer
  • Allow sharing MaterialInstances across MeshRenderers
    • This has a long list of asset, serialization, and editor concerns. Really can't even think about doing it until NcGraphics (1) is gone.
  • When recreating the MaterialProperties buffer (or other non-statically sized structured buffers), we could add a growth factor. (If we're individually creating an instance each frame or something, we'd continually recreate).
    • This may not be necessary, depending on what sharing instances looks like. We may be able to create the buffer once at the max size.
  • When updating the MaterialProperties buffer, we update (potentially) multiple subranges to minimize transitions. Instead, we could calculate one minimum range (that includes all dirty items, and potentially non-dirty items) and just copy that single slice.
  • Look into using UpdateBuffer for the vertex + index buffers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions