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

PPCCache: Stop storing lookup table in savestates #10935

Merged

Conversation

Pokechu22
Copy link
Contributor

These lookup tables total 4 megabytes, and contain data that's entirely redundant to the actual cache state (as part of an optimization, though I'm not sure whether the optimization actually is useful). This change instead recomputes these lookup tables when loading the state (which involves filling the lookup table with a marker (0xff), and then setting the 128 * 8 valid entries (1 kilobyte)).

This is intended to be a simplified version of #10826 (which I have further plans for, and which currently removes the lookup table entirely).

These lookup tables total 4 megabytes, and contain data that's entirely redundant to the actual cache state (as part of an optimization, though I'm not sure whether the optimization actually is useful). This change instead recomputes these lookup tables when loading the state (which involves filling the lookup table with a marker (0xff), and then setting the 128 * 8 valid entries (1 kilobyte)).
@Pokechu22 Pokechu22 force-pushed the icache-dont-save-lookup-table branch from f5e977b to 1343977 Compare August 1, 2022 23:37
@lioncash lioncash merged commit f93b04d into dolphin-emu:master Aug 3, 2022
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants