Skip to content

TextureIndex caching #200

@Moneyl

Description

@Moneyl

Come up with a way for TextureIndex to be cached to a file, but give it a way to auto update when the source vpps change. Could store a hash of the target vpp. Though that might take too long. An alternative is to store the size and offset of pegs and vbms in vpps/str2s and to rescan them for changes each time PackfileVFS is mounted. That should be quick since the sizes and offsets should be available through PackfileVFS. I think the process would go something like this:

  • We'd pre-generate a TextureIndex for all the Terraform patch version of the game files and distribute that with NF releases.
  • When NF mounts PackfileVFS it'd scan the texture index data it has for any differences in the size/offset of pegs or new/missing pegs. Maybe even load the pegs cpu files and check the tga names if it isn't too slow.
  • If any changes are detected it'll update the index and save them to the hard drive.

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