videowindow high cpu?
#1
Hi guys,

I need your help. I have a hard time with my skinning. I am using my own addon to create my own tv guide. I have added the videowindow in the xml and when I run my own addon, it will give me a very high CPU usage between 84% to 94%.

Here is the XML:

Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
    <allowoverlay>no</allowoverlay>
    <coordinates>
        <system>1</system>
        <posx>0</posx>
        <posy>0</posy>
    </coordinates>


    <controls>
        <control type="image" id="1">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>background-defeat.png</texture>
            <animation effect="fade" start="0" end="100" time="6500">WindowOpen</animation>
        </control>
        
        <control type="image" id="2">
            <description>Tv Guide Blue Box</description>
            <posx>306.5</posx>
            <posy>7</posy>
            <width>154</width>
            <height>95</height>
            <visible>true</visible>
            <texture>tvguide_blue.png</texture>
        </control>

        <control type="image" id="3">
            <description>Tv Guide Yellow Box</description>
            <posx>306.5</posx>
            <posy>7</posy>
            <width>154</width>
            <height>95</height>
            <visible>true</visible>
            <texture>tvguide_yellow.png</texture>
            <animation effect="fade" start="0" end="0" time="0">WindowOpen</animation>
        </control>

        <control type="image" id="4">
            <description>Reminders Yellow Box</description>
            <posx>460</posx>
            <posy>7</posy>
            <width>188</width>
            <height>95</height>
            <visible>true</visible>
            <texture>reminders_yellow.png</texture>
        </control>

        <control type="image" id="5">
            <description>Reminders Blue Box</description>
             <posx>460</posx>
            <posy>7</posy>
            <width>188</width>
            <height>95</height>
            <visible>true</visible>
            <texture>reminders_blue.png</texture>
            <animation effect="fade" start="0" end="100" time="6500">WindowOpen</animation>
        </control>

        <control type="image" id="6">
            <description>Recorded Yellow Box</description>
            <posx>648.5</posx>
            <posy>7</posy>
            <width>165</width>
            <height>95</height>
            <visible>true</visible>
            <texture>recorded_yellow.png</texture>
        </control>

        <control type="image" id="7">
            <description>Recorded Blue Box</description>
            <posx>648.5</posx>
            <posy>7</posy>
            <width>165</width>
            <height>95</height>
            <visible>true</visible>
            <texture>recorded_blue.png</texture>
            <animation effect="fade" start="0" end="100" time="6500">WindowOpen</animation>
        </control>

        <control type="image" id="8">
            <description>Settings Yellow Box</description>
            <posx>813.5</posx>
            <posy>7</posy>
            <width>149</width>
            <height>95</height>
            <visible>true</visible>
            <texture>settings_yellow.png</texture>
        </control>

        <control type="image" id="9">
            <description>Settings Blue Box</description>
            <posx>813.5</posx>
            <posy>7</posy>
            <width>149</width>
            <height>95</height>
            <visible>true</visible>
            <texture>settings_blue.png</texture>
            <animation effect="fade" start="0" end="100" time="6500">WindowOpen</animation>
        </control>

        <control type="image" id="10">
            <description>All Channels Blue Box</description>
            <posx>306.5</posx>
            <posy>124</posy>
            <width>656</width>
            <height>48</height>
            <visible>true</visible>
            <texture></texture>
        </control>

       ...etc until then

        <control type="image" id="388">
            <description>EPG TV Black Screen</description>
            <posx>822</posx>
            <posy>45</posy>
            <width>432</width>
            <height>225</height>
            <visible>true</visible>
            <texture></texture>
        </control>

        <control type="videowindow">
           <description>VideoWindow Box Art</description>
           <width>360</width>      
            <height>180</height>
            <align>center</align>
            <aligny>center</aligny>
            <aspectratio>keep</aspectratio>
            <visible>true</visible>
        </control>


When I removed videowindow, the CPU will drop to 34% or less. I'm still trying to find out how I could reduce the CPU usage when I use videowindow in my XML but I couldn't as I have already tried with dirty regions, but it did not help me to solve the problem. Sad

Do you know how I could use videowindow in the XML to reduce the CPU usage to allow me to use it to watch the live tv?

Any advice would be much appreciate.

Thanks in advance.
Reply
#2
Bump!!!!

Does anyone know how I could use videowindow in my XML to reduce the CPU Usage/?
Reply

Logout Mark Read Team Forum Stats Members Help
videowindow high cpu?0