-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Speed up getting a list of files on PS Vita #9310
Conversation
The last commits show New Game menu load speed-up: about 560 ms on Vita3K emulator. It is faster than master build (~850 ms), but a little slower than v.1.1.2 (~350 ms). |
Well, we also can make a "special case" for |
I've asked Pønytail on Discord to test the new build when he have time. I've added the load time estimation to the New Game menu: fheroes2::Time counter;
counter.reset();
// Code to estimate execution time.
const double timeMs = counter.getS() * 1000;
fheroes2::showStandardTextMessage( "Time for menu", std::to_string( timeMs ) + " ms.", Dialog::OK ); Lets check the real hardware. If the load time of New Game is normal (less then a couple of seconds) then it is better to keep file verification in cost of some commutation time. |
The 99e4c1e commit has almost no affect on menu load speed on Vita3K emulator. It is about 560 ms. |
Well, if it doesn't give anything on a real device as well, it would be better to roll it back. The less "special" code, the better. |
I've asked Pønytail to test this change as well. Let's wait for his response on Discord (most probably tomorrow). |
Pønytail reported that both versions (with 99e4c1e and without it) act the same and are close to v 1.1.2:
So we can revert the last commit since it has no benefits. Since we are updating PS Vita related code we could also properly show version number in PS Vita by updating the Makefile.vita file. What do you think, @oleg-derevenetz ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with Vita3K emulator - New Game menu load time is OK (~550 ms).
@oleg-derevenetz , many thanks for this fix! |
fix #9309
std::filesystem::directory_iterator
;param.sfo
;ListFiles::FindFileInDir()
.