Skip to content

rtt memory allocation & lazy loading #518

@wouterlucas

Description

@wouterlucas

Currently if you use RTT it loads everything regardless of its visibility state, meaning all RTT nodes are always loaded and it is counted double on the memory manager.

Ideally we want:

  • RTT nodes to only load when they are inbound of their respective view port
  • Memory counted should only account for the final texture generated, not the intermediate buffer used to generate the RTT node

Nodes loaded without RTT:

Image

Same test with RTT:

Image

From first glance at the Chrome task viewer it doesn't seem to increase the memory on the GPU, and that makes sense. Likely just double counted on the memory manager side. But TBD investigation on a device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions