Commit Graph

14 Commits

Author SHA1 Message Date
David Holm
abf99063dc file_io: Yield while loading directories
Yield at an interval during the loading of directory entries as well as
while sorting them in order to not starve the poll functions.

The maximum time between calls to `user_io_poll` in the main loop were
measured while loading a folder containing 29026 entries:

 - Original main-loop:       591ms
 - With coroutines + yields:  29ms

The amount of time it takes to load and sort the 29026 entries:

 - Original main-loop:       591ms
 - With coroutines + yields: 686ms

By increasing the value of `YieldIterations` in `file_io.cpp` the load
time will decrease while increasing the delay between calls to
`user_io_poll`.
2019-01-04 23:37:53 +01:00
David Holm
be5b51308b file_io: Support unlimited number of directory entries
Stores directory entries in a std::vector instead of an array of
hardcoded size.  The vector will dynamically grow to the number of
available entries in a folder without having a hardcoded upper limit.
2019-01-01 18:19:17 +01:00
sorgelig
ddd5b75d2b Fix the warnings and some errors. 2018-12-29 21:15:25 +08:00
sorgelig
c63bc586f7 Automatic save file creation. 2018-11-21 07:28:07 +08:00
sorgelig
44d7476d60 Support for AScaler settings. 2018-11-08 05:11:20 +08:00
sorgelig
e7429ec866 Support for composite RBF. 2018-09-29 15:58:23 +08:00
sorgelig
abbe31a0d0 Improved file lister. 2018-09-08 19:54:07 +08:00
sorgelig
5f954ddd2b Option to reduce FileOpen messages flood. 2018-07-11 15:52:04 +08:00
sorgelig
b5441b1d12 Implement mask for OSD file extensions. Send file extension to the core. 2018-07-08 16:34:05 +08:00
sorgelig
3facbe338d Detect the path of core. 2018-05-19 02:04:49 +08:00
sorgelig
a24ad65f80 Do not hide boot.vhd in file selector. 2018-05-17 12:54:05 +08:00
sorgelig
b726499682 Add ISO extension for Minimig HDD selection. 2018-05-12 05:19:13 +08:00
sorgelig
96e3d58b31 Support for miltiple configs per RBF. 2018-04-01 06:17:08 +08:00
sorgelig
d235e806b2 Move to C++. Use C++14 as it adds binary literals -> HDL friendly. 2018-02-28 01:58:21 +08:00