scanning games delay on every run
Posted: Tue Jan 24, 2017 3:41 am
This is a continuation of the thread here:
http://www.xbmc4xbox.org.uk/forum/viewt ... f=6&t=3468
It was left for dead over a year ago with no real follow up from OP, mods, or devs as far as I can see so I would like to revisit this issue.
The problem is long delays with the "Scanning Games" dialog on every entry into the Games menu.
This problem gets worse the more games you have on your system.
For those of us with large HDDs (1-2TB) the delay can be substantial. With ~500 games I am seeing about 25 seconds of delay *every* time I access the Games list. This is not the same as the initial scanning delay when new items are added. That process takes maybe 3-5 minutes to scan the entire library. But, even when that completes fully there is still this additional 20-25 second delay on every access.
This even happens *twice* when configuring a trainer. So, when you enter the games folder it takes 20-25 seconds to enumerate the games. Then, after selecting a game to enable a trainer it enumerates them all again. Thus it takes almost a full minute to be able to even begin to load the game!
I have played around with the number of games and it seems like somewhere between 25-70 games is the limit to not bring up this scanning dialog. Although I suspect the scanning *is* happening every time and is just complete before the scanning dialog has a chance to appear.
I have tried everything I can think of (including fresh load) and the problem persists. The only workaround I have found is to organize all my games into smaller folders (e.g. /A-B, /C-D, /E-F,...) and access them one at a time. This way only < 25-50 games need to be enumerated at once.
As per the final mod guidance on the other thread I have created all the logs requested.
Here is a log with only 25 games in my sources:
http://pastebin.com/uHrZrzwv
Here is 150 games:
http://pastebin.com/iwHvA0Sa
Here is 508 games:
http://pastebin.com/525FhJjF
In each of these logs I have xbmc configured to open directly to Programs/Games, so basically I simply boot up and allow enumeration and take the log.
I performed an un-logged boot between these to allow a full enumeration, so the logs are showing the enumeration *after* the check for new games would have taken place.
There is one additional log file here:
http://pastebin.com/CFALm74V
In this file it does the 508 games on boot-up, but then I exit the games menu and go back in immediately so that the games enumerate a second time. Finally, this log ends with the httpapi commands requested here:
http://www.xbmc4xbox.org.uk/forum/viewt ... 468#p27205
The output of that second command is here:
https://pste.eu/p/mymo.html
As you can see no -1 in the columns.
There is one bit of weirdness with that httpapi output in that it seems to be listing more than my 508 games as it seems to list duplicates from sources that no longer exist. Regardless, I did this test again (and all tests) after a clean install and the output was proper (508 games) but all the problems persist.
Thoughts?
http://www.xbmc4xbox.org.uk/forum/viewt ... f=6&t=3468
It was left for dead over a year ago with no real follow up from OP, mods, or devs as far as I can see so I would like to revisit this issue.
The problem is long delays with the "Scanning Games" dialog on every entry into the Games menu.
This problem gets worse the more games you have on your system.
For those of us with large HDDs (1-2TB) the delay can be substantial. With ~500 games I am seeing about 25 seconds of delay *every* time I access the Games list. This is not the same as the initial scanning delay when new items are added. That process takes maybe 3-5 minutes to scan the entire library. But, even when that completes fully there is still this additional 20-25 second delay on every access.
This even happens *twice* when configuring a trainer. So, when you enter the games folder it takes 20-25 seconds to enumerate the games. Then, after selecting a game to enable a trainer it enumerates them all again. Thus it takes almost a full minute to be able to even begin to load the game!
I have played around with the number of games and it seems like somewhere between 25-70 games is the limit to not bring up this scanning dialog. Although I suspect the scanning *is* happening every time and is just complete before the scanning dialog has a chance to appear.
I have tried everything I can think of (including fresh load) and the problem persists. The only workaround I have found is to organize all my games into smaller folders (e.g. /A-B, /C-D, /E-F,...) and access them one at a time. This way only < 25-50 games need to be enumerated at once.
As per the final mod guidance on the other thread I have created all the logs requested.
Here is a log with only 25 games in my sources:
http://pastebin.com/uHrZrzwv
Here is 150 games:
http://pastebin.com/iwHvA0Sa
Here is 508 games:
http://pastebin.com/525FhJjF
In each of these logs I have xbmc configured to open directly to Programs/Games, so basically I simply boot up and allow enumeration and take the log.
I performed an un-logged boot between these to allow a full enumeration, so the logs are showing the enumeration *after* the check for new games would have taken place.
There is one additional log file here:
http://pastebin.com/CFALm74V
In this file it does the 508 games on boot-up, but then I exit the games menu and go back in immediately so that the games enumerate a second time. Finally, this log ends with the httpapi commands requested here:
http://www.xbmc4xbox.org.uk/forum/viewt ... 468#p27205
The output of that second command is here:
https://pste.eu/p/mymo.html
As you can see no -1 in the columns.
There is one bit of weirdness with that httpapi output in that it seems to be listing more than my 508 games as it seems to list duplicates from sources that no longer exist. Regardless, I did this test again (and all tests) after a clean install and the output was proper (508 games) but all the problems persist.
Thoughts?