home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
too much time before init of Radio GUI
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="theboy" data-source="post: 347994" data-attributes="member: 86100"><p>Hi all,</p><p></p><p>I was also suffering from this issue so I decided to (let's say) fix it, below is what I found on the topic.</p><p></p><p>It's not database and it's not your individual settings it's just application logic.</p><p>Before radio screen is entered and every time is entered, all radio station items are pulled </p><p>from the server and sorted according to the chosen or default sort criteria.</p><p></p><p>The problematic thing is that every single radio item is casted to the object not once but multiple</p><p>times, once per every layout style used in application (you can find layout styles in left menu bar)</p><p>in case of radio subsystem there are six casts, even if radio uses only three of them (list, icons and</p><p>big icons - additional not used but prepared are; album, thumbnail, and play list). So if you have 100 </p><p>programs tuned there will be six list created with 100 objects in every one of them. The real problem </p><p>starts when program begins to sort these objects, as every mentioned list, is in memory sorted with help</p><p>of not efficient algorithm, so there is 6 sorts which not scale at all and results are poorer and poorer</p><p>when number of programs rise. Hence it takes a while to finish that task before radio page is returned</p><p>to the application. </p><p></p><p>I have about 30 stations and it took about 15 seconds to get the radio page opened. Below is my temporary</p><p>solution, it gives much quicker response and if you don't need sorting you might find it useful otherwise ask </p><p>development team for the proper fix.</p><p></p><p>What was changed:</p><p>TvEngine3\TVLibrary\TvPlugin\TvPlugin\Radio.cs</p><p></p><p> #region Sort Members</p><p> void OnSort()</p><p> {</p><p> SetLabels();</p><p> //facadeView.Sort(this); <---- this was commented out</p><p> UpdateButtonStates();</p><p> }</p><p></p><p>If you would like to use compiled dll, it is attached to the post, note this is debug release and came from the version 1 RC3, might work for other versions as well. </p><p></p><p>TvPlugin.dll Should be copied to following path "...Team MediaPortal\MediaPortal\plugins\Windows\", don't forget</p><p>to backup your older version of the library first. </p><p></p><p>Cheers,</p></blockquote><p></p>
[QUOTE="theboy, post: 347994, member: 86100"] Hi all, I was also suffering from this issue so I decided to (let's say) fix it, below is what I found on the topic. It's not database and it's not your individual settings it's just application logic. Before radio screen is entered and every time is entered, all radio station items are pulled from the server and sorted according to the chosen or default sort criteria. The problematic thing is that every single radio item is casted to the object not once but multiple times, once per every layout style used in application (you can find layout styles in left menu bar) in case of radio subsystem there are six casts, even if radio uses only three of them (list, icons and big icons - additional not used but prepared are; album, thumbnail, and play list). So if you have 100 programs tuned there will be six list created with 100 objects in every one of them. The real problem starts when program begins to sort these objects, as every mentioned list, is in memory sorted with help of not efficient algorithm, so there is 6 sorts which not scale at all and results are poorer and poorer when number of programs rise. Hence it takes a while to finish that task before radio page is returned to the application. I have about 30 stations and it took about 15 seconds to get the radio page opened. Below is my temporary solution, it gives much quicker response and if you don't need sorting you might find it useful otherwise ask development team for the proper fix. What was changed: TvEngine3\TVLibrary\TvPlugin\TvPlugin\Radio.cs #region Sort Members void OnSort() { SetLabels(); //facadeView.Sort(this); <---- this was commented out UpdateButtonStates(); } If you would like to use compiled dll, it is attached to the post, note this is debug release and came from the version 1 RC3, might work for other versions as well. TvPlugin.dll Should be copied to following path "...Team MediaPortal\MediaPortal\plugins\Windows\", don't forget to backup your older version of the library first. Cheers, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
too much time before init of Radio GUI
Contact us
RSS
Top
Bottom