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

Improve FatFs speed by merging wf-fatfs changes #578

Open
rasky opened this issue Jul 8, 2024 · 0 comments
Open

Improve FatFs speed by merging wf-fatfs changes #578

rasky opened this issue Jul 8, 2024 · 0 comments

Comments

@rasky
Copy link
Collaborator

rasky commented Jul 8, 2024

https://github.com/WonderfulToolchain/wf-fatfs is a FatFs fork which contains some interesting speedup. For instance:

#define FF_WF_FAST_CONTIGUOUS_READ  0
#define FF_WF_FAST_CONTIGUOUS_WRITE 0
/* FF_WF_FAST_CONTIGUOUS_* controls whether or not contiguous reads or writes
/  of more than 1 cluster (>4-32KB) are optimized to use large disk_read()
/  and disk_write() calls. This can be useful on platforms where the cost of
/  initializing a sector read/write is large.
/
/  0: Do not optimize this scenario.
/  1: Optimize this scenario.
*/

This should be able to speed up ROM loading (as performed by flashcart menus) by quite a bit, by issuing even just a single read operation.

We should review the change in wf-fatfs and incorporate them if applicable to N64.

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

No branches or pull requests

1 participant