When music player is run and entering music folder it took too long time (there is sleep(100ms) for every music file in Pictures.cs).
This sleep was added to give main mediaportal thread more time for processing but in this case main thread calls this method.
This is not good solution for task management - it should be done by changing background threads priority to lower.
I add simple checking if calling thread is "MPMain" and skip waiting in that case.
This sleep was added to give main mediaportal thread more time for processing but in this case main thread calls this method.
This is not good solution for task management - it should be done by changing background threads priority to lower.
I add simple checking if calling thread is "MPMain" and skip waiting in that case.