Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to preload entire PKR file to RAM #35

Open
DCxDemo opened this issue Sep 26, 2023 · 0 comments
Open

Add option to preload entire PKR file to RAM #35

DCxDemo opened this issue Sep 26, 2023 · 0 comments

Comments

@DCxDemo
Copy link
Owner

DCxDemo commented Sep 26, 2023

Original design polls hdd every time game needs new data. By design, there is a queue of only 10 ram file slots. Game works with the slot index under the hood.

  • load file, alloc mem, return slot index
  • get ptr to mem at slot index

These days it wouldnt hurt to just load entire pkr into ram and jump instantly jump to the required data.

Can try to hook file reading and just redirect to ram stream, or can entirely rewrite high level access. It should ensure loading from hdd as a fallback too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant