Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Using less memory #22

Copy link
Copy link
@greggman

Description

@greggman
Issue body actions

Just throwing out ideas. Ideally we'd like to be able to capture from a page that uses lots of resources (think 2gigs of textures). Right now, if I understand correctly, all of that will be downloaded to Uint8Arrays and the converted to native JS arrays.

Maybe instead we could write each Uint8Array to a blob and then concat the blobs into a file. This would mean we don't need an entire copy of the contents of the resources in memory while capturing.

Similarly, on loading a replay, if we know the offsets and sizes from the file we can load them individually, upload the the GPU so we don't need all the data in memory as we're reloading it.

maybe all of this is obvious and we certainly shouldn't do it until we need to but I suspect we'll need to pretty quickly as the browser is going to run out of memory with giant JSON files.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.