|
SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
How to improve MiniClient performance
I discovered something today, which testing on the Mi Box, using Gemstone. Baically some of my views would get really slow... It would be 1-2 seconds (sometimes longer) when moving from item A to item B, etc. It turns out that the Miniclient was having to purge it's cache in order to show a poster, and the poster sizes were coming in at 1920x2800 (approx), and it was taking up 21mb of memory on the server (and on the Miniclient) to just show it.
The MiniClient (until release 1.2.4 - 2016 dec 22), had a 30mb image cache, so when more than 30mb of images are loaded, then things have to be unloaded in order to make room. At 30mb, the miniclient was spending a considerable amount of time just unloading and unloading images. Keep in mind that EVERYTHING in the miniclient is an image (ie, all fonts, rectangles, boxes, etc). In Release 1.2.4, I added a setting in the configuration to allow you to change the amount of memory you want to allow for the image cache. For example in my shield, I set mine to 192mb. The default was upped from 30mb to 64mb. This alone should give some UI smoothness, especially if you were experiencing hiccups in the UI (most likely with fanart enabled). The other optimisation tip, is related to Gemstone... In the Image Utilities you can set the image scaling options. BACKGROUND and POSTER "FULL" is set to 100 (being 100%). The problem is that many of these background images are REALLY LARGE so using 100% means that each image could be using 20-30mb of memory. This adds up quickly. I basically set mine to 50. You'll need to clear the memory cache and the disk cache, and because I hate sluggishness... I told Gemstone to prescale everything. Keep in mind these Android boxes has lots of memory... On the shield, the MiniClient reports having 512mb available for the MiniClient app. So, using 192mb isn't that bad. I haven't checked the Mi Box yet, but it likely has the same or a little less. In the MiniClient settings, if you jump to the bottom, you can see what is being reported as max memory.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#2
|
||||
|
||||
I thought those settings were a percentage of UI resolution, but I'll be honest I've never checked that to be the case.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#3
|
|||
|
|||
Seems this latest version broke the animation off detection and is blocky. Turning animation back on fixes it. I wouldn't care so much of animations didn't slow the UI down so much.
Thanks, Mack |
#4
|
||||
|
||||
Quote:
I'll push out an update today... I was doing some testing around this, and I left it at the incorrect setting... sorry
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
||||
|
||||
Quote:
Regarding the gemstone cache, those are using the phoenix image api's for the cached images, so they should be working well (though if it is indeed scaling the percentage based on original image size instead of UI size, that is sort of strange). I honestly have not even looked at gemstone2 to see how he is dealing with images there - it'd be nice to cache them based on the actual used resolutions for the various flows - this might require a few more versions of an image, if it happens to be used at different sizes in different flows, so it would take up more server side space, but it would be the best compromise of quality vs. performance I'd think.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#6
|
||||
|
||||
FYI... new update posted... out of curiosity what is your device? Just wondering why animations are slow (if it's a phone/tablet, then yeah, i can see it).
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#7
|
||||
|
||||
I noticed the problem when using my phone remotely. When placeshifting (remote connection), miniclient forces animations to disabled (there is a property [ui/allow_non_local_animations] to override this behavior).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#8
|
|||
|
|||
Quote:
Cheers, Mack |
#9
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Software tweaks to help improve My Movies performance on HD-200? | mkanet | Sage My Movies | 8 | 09-08-2010 10:29 PM |
Top Ten Way to Improve Performance | randyth | General Discussion | 11 | 09-11-2009 09:30 AM |
Will my LCD TV Image Improve? | joe123 | SageTV HD Theater - Media Player | 13 | 03-04-2009 11:49 AM |
Seeking Help to Improve Stability | PushOneInfinite | SageTV Software | 9 | 03-27-2008 06:12 AM |
Improve Placeshifter PQ over LAN? | zubblwump | SageTV Placeshifter | 7 | 11-06-2006 04:21 PM |