20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

Solved CPU usage display when playing a video file (DialogPlayerProcessInfo.xml)
#1
First, I would like to thank you for making Rapier the terrific feature filled skin that it is.

I have found an issue when attempting to see CPU usage while playing a 4K test video file. Those who attempt to play such videos will often be wondering if their processor usage is causing playback problems, given the demands of some HEVC 4K videos.

My environment: a PC with a 4 engine AMD processor running LibreElec 9.0.1 Kodi 18.1 Leia

DialogPlayerProcessInfo.xml has a 40 pixel wide field in which to display System.CpuUsage. That may be adequate for a single engine processor, but for a processor with multiple engines even the usage for the first engine is not properly displayed. An example of actual CPU usage when starting to play one of the 4K test files from the Kodi Wiki for a 4-engine processor is #0: 98% #1: 94% #2: 96% #3: 98%

I experimented with modifications to DialogPlayerProcessInfo.xml and found that a 300 pixel wide field is required to properly display that string, without resorting to a smaller font. Since the SYSTEM column has just three variables being displayed, there was ample room for the CPU usage  variable to be displayed on a line by itself with the label on the line above. I moved the entire column 50 pixels to the left (<left>950</left> rather than <left>1000</left>) to provide enough real estate.

My changed code starting at line 292 looks like:
            <control type="grouplist">
                <top>67</top>
                <left>950</left>
                <itemgap>0</itemgap>
                <orientation>vertical</orientation>
                <control type="label">
                    <description>System Label</description>
                    <width>205</width>
                    <height>20</height>
                    <font>NextAiredTimeFont</font>
                    <textcolor>MediaInfoTitleColor</textcolor>
                    <shadowcolor>ShadowColor</shadowcolor>
                    <label>[UPPERCASE]$LOCALIZE[13000][/UPPERCASE]</label>
                </control>
                    <control type="label">
                      <height>20</height>
                        <width>160</width>
                        <font>FullMediaInfoTaglineFont</font>
                        <textcolor>MediaInfoItemColor</textcolor>
                        <shadowcolor>ShadowColor</shadowcolor>
                        <label>$LOCALIZE[13271]</label>
                    </control>
                    <control type="label">
                      <height>20</height>
                        <left>10</left>
                        <width>300</width>
                        <align>left</align>
                        <font>FullMediaInfoTaglineFont</font>
                        <textcolor>MediaInfoItemColor2</textcolor>
                        <shadowcolor>ShadowColor</shadowcolor>
                        <label fallback="31001">$INFO[System.CpuUsage]</label>
                    </control>
               
I hope you don't mind me suggesting a possible fix.
Reply
#2
Hi hursley26 and welcome to the forums.

Thanks so much for the kind words and support.

Your issue is a really good point.
I'll fix it soon and the fix will be available in the next development version and official release.


You can install the development version by following these steps: https://kodi.wiki/view/Add-on:Rapier#Dev...Repository


Let me know if you have any other questions or suggestions.
Reply
#3
I have pushes an update to my development repo: 11.2.34.

Please test it out to see if everything works as expected.


https://kodi.wiki/view/Add-on:Rapier#Dev...Repository
Reply
#4
I think this is solved now?
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
CPU usage display when playing a video file (DialogPlayerProcessInfo.xml)00