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

ChdFileReader: implement precaching of CHD files within PCSX2 instead of modifying libchdr #12086

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

TheLastRar
Copy link
Contributor

@TheLastRar TheLastRar commented Dec 14, 2024

Description of Changes

Removes the patches applied to libchdr, and instead uses libchdr's virtual IO API to achieve the same behaviour.

Rationale behind Changes

Such patches can be missed when updating dependencies, potentially leading to difficulty updating.

We now also precache parent CHD files, which the patched libchdr did not.

Includes on #12075

Suggested Testing Steps

Test precaching using CHD files

@github-actions github-actions bot added CDVD Dependencies Pull requests that update a dependency file labels Dec 14, 2024
@TheLastRar TheLastRar changed the title ChdFileReader: Implememt precaching of CHD files within PCSX2 instead of modifying libchdr ChdFileReader: implement precaching of CHD files within PCSX2 instead of modifying libchdr Dec 14, 2024
@F0bes
Copy link
Member

F0bes commented Dec 14, 2024

I know it's not ready for review, but I was curious and ran it through a profiler and verified that there is no significant performance decrease or increase. We are still fread() bound.

@TheLastRar
Copy link
Contributor Author

Marking this as ready.

I'm not yet 100% sure on FileSystem::ReadFileWithPartialProgress, so I'm open to suggestions if anyone has a better idea, but if you think it's fine then I'm happy with it.

@TheLastRar TheLastRar marked this pull request as ready for review December 16, 2024 15:47
@F0bes F0bes merged commit 3b89020 into PCSX2:master Dec 18, 2024
12 checks passed
@TheLastRar TheLastRar deleted the chd-core-precache branch December 18, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDVD Dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants