-
-
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
Openning New Game menu lags on PS Vita #9309
Comments
Hi @Districh-ru could you please ask someone with a real PS Vita device to test the #9310? Before the |
I also noticed that we check the campaign scenario files in a very unoptimized way: for every scenario we read all files in a directory. |
Well, as far as I understand, this logic was there from the very beginning, so, although there is a room for improvements, it shouldn't be the cause of this regression, I think. |
I found a commit after which the menu "load" time increased by tests on Vita3K emulator: #9098 And without this PR (previous commit): fheroes2_no9098.zip Both builds estimate New Game menu load time and show it using in-game dialog. |
Hi @Districh-ru
Yes, that's why I introduced the #9310. I strongly doubt that it's due to migration |
#9310 has the same time as the current build: 800 - 900 ms.
And about #9310:
|
@oleg-derevenetz, please check #9307 (comment) |
Hi @ihhub
Do you mean this function: fheroes2/src/fheroes2/campaign/campaign_scenariodata.cpp Lines 617 to 641 in 2b4f5e3
? If yes, then it's actually not that bad. The list of maps is read only once and cached ( |
Hi @oleg-derevenetz , I meant this code: bool CampaignData::isAllCampaignMapsPresent() const
{
for ( size_t i = 0; i < _scenarios.size(); ++i ) {
if ( !_scenarios[i].isMapFilePresent() )
return false;
}
return true;
} Having |
Hi @ihhub
Yes, |
Preliminary checks
Platform
PlayStation Vita
Describe the bug
This issue is from Discord channel from Pønytail.
He has reported that in v. 1.1.3 and 1.1.4 there is about 40 seconds hang when opening the New Game menu and about 2.5 minutes lag to open Standard Game menu. It happens on the first time menu open and there is no lag until the game is restarted.
He has 1199 maps in maps folder.
In v. 1.1.2 and earlier it takes almost no time to open the New Game menu and about 20 seconds to open Standard Game menu.
The original issue description in Russian:
"Пока что из замеченного, при нажатии на "новую игру" приложение всё так же зависает примерно на 40 секунд, после чего нажатие на эту кнопку становится адекватным до следующего перезапуска приложения. Такое поведение тоже началось с версии 1.1.3."
"Всего у меня 1199 карт, на версии 1.1.2 отклик на нажатие кнопки "новая игра" в меню моментальная, при выборе "обычная игра" отклик примерно 20 секунд. На последних версиях отклик "новой игры" порядка 40 секунд, "обычной игры" 2.5 минуты. Т.е. скорость реакции приложения стала явно меньше. Заранее спасибо за работу!"
Save file
No save file, just put more than 1000 maps in maps folder and open the New Game and Custom Game menus.
Additional info
On Vita3K emulator with old CPU backend (Unicorn, without optimizations) and about 1500 maps it takes about 2 seconds to open Standard Game on v.1.1.2 and about 3 seconds on v.1.1.4, latest build. And on v.1.1.4 there is a noticeable lag (about 0.5 seconds) when opening New Game menu.
The text was updated successfully, but these errors were encountered: