• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7
High CPU Usage on SVN Build
#46
The trac ticket is: http://trac.xbmc.org/ticket/7546

I will attach xbmc.log including debug enabled soon. Also full specs of system. Maybe it helps if there are a couple (probably not meaningful to have dozens though Smile)
Reply
#47
Sorry for not reading the whole thread, maybe this was already mentioned.

I expirienced the same issue but this completely dissappeared after deleting the .xbmc folder...
Reply
#48
did that effect anything in xbmc?
Reply
#49
r0ck3t Wrote:Sorry for not reading the whole thread, maybe this was already mentioned.

I expirienced the same issue but this completely dissappeared after deleting the .xbmc folder...

I had already tried that. Didn't work for me.

I had another problem with high CPU before after testing a late svn release then going back. All my db-files were updated to a newer version which the older version didn't like. Generated some loop that consumed 100% CPU.
Reply
#50
This is not just for the SVN builds. This issue effects all builds! 9.11
Reply
#51
Having the same issue on Ubuntu 9.10 with stock nvidia-glx-173 driver and GeForce FX 5700 card. On default setup with PM3.HD skin, rendering 10 frames of the main menu takes almost a minute to complete:

Code:
<guicontrolprofiler framecount="10" timeunit="ms">
    <control percent="100">
        <rendertime>51807</rendertime>
        <visibletime>119</visibletime>
        <children>
[...]
            <control type="image" percent="73">
                <description>Background-Home-2.png</description>
                <rendertime>38066</rendertime>
                <visibletime>70</visibletime>
            </control>
[...]
            <control type="image" percent="13">
                <description>Footer.png</description>
                <rendertime>6806</rendertime>
                <visibletime>9</visibletime>
            </control>
[...]

For me it looks like poor support for non-power-of-two textures in the above driver/hardware combination is to blame. Both Background-Home-2.png and Footer.png are large images with non-power-of-two sides.

XBMC runs fine when I comment out the following line in RenderSystemGL.cpp:

Code:
Index: xbmc/RenderSystemGL.cpp
===================================================================
--- xbmc/RenderSystemGL.cpp    (revision 24544)
+++ xbmc/RenderSystemGL.cpp    (working copy)
@@ -76,7 +76,7 @@
   if (glewIsSupported("GL_EXT_texture_compression_s3tc"))
     m_renderCaps |= RENDER_CAPS_DXT;

-  if (GLEW_ARB_texture_non_power_of_two || m_RenderVersionMajor >= 2)
+  if (0) // GLEW_ARB_texture_non_power_of_two || m_RenderVersionMajor >= 2)
   {
     m_renderCaps |= RENDER_CAPS_NPOT;
     if (m_renderCaps & RENDER_CAPS_DXT)    // This may not be correct on all hardware

BTW glxinfo doesn't show that GL_ARB_texture_non_power_of_two extension is supported on my card (however it does show OpenGL 2.1.2, which probably implies that it is supported).

Would be nice to know if someone else experiencing this problem can confirm this.
Reply
#52
Must be reverting to software rendering then. I think it should be enough to check for that extension instead of assuming it existent due to version.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#53
I guess the patch below should be enough then.

Code:
--- xbmc/RenderSystemGL.cpp    (revision 24549)
+++ xbmc/RenderSystemGL.cpp    (working copy)
@@ -76,7 +76,7 @@
   if (glewIsSupported("GL_EXT_texture_compression_s3tc"))
     m_renderCaps |= RENDER_CAPS_DXT;

-  if (GLEW_ARB_texture_non_power_of_two || m_RenderVersionMajor >= 2)
+  if (glewIsSupported("GL_ARB_texture_non_power_of_two"))
   {
     m_renderCaps |= RENDER_CAPS_NPOT;
     if (m_renderCaps & RENDER_CAPS_DXT)    // This may not be correct on all hardware
Reply
#54
Quote:NV30-based cards (GeForce FX of any kind) are incapable of NOPTs at all, despite implementing OpenGL 2.0 (which requires NPOT). It will do software rendering if you try to use it.

From http://www.opengl.org/wiki/NPOT_Textures
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#55
I'm having the same issues.

At first I thought it was Ubuntu 9.10 and the Video drivers.

P4 2.4 Gz
512 Mb ram
ATI AIW 9200 using built in drivers
Ubuntu Karmic
XBMC 9.11 Alpha from PPA

Here's the log file.
http://pastebin.com/mc89303f

Cheers.
Reply
#56
Ah, the joys of the graphics card drivers which say they do things that they really don't...

Switching to use it if and only if the extension is supported seems fine as a workaround.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#57
skuller Wrote:I guess the patch below should be enough then.

Code:
--- xbmc/RenderSystemGL.cpp    (revision 24549)
+++ xbmc/RenderSystemGL.cpp    (working copy)
@@ -76,7 +76,7 @@
   if (glewIsSupported("GL_EXT_texture_compression_s3tc"))
     m_renderCaps |= RENDER_CAPS_DXT;

-  if (GLEW_ARB_texture_non_power_of_two || m_RenderVersionMajor >= 2)
+  if (glewIsSupported("GL_ARB_texture_non_power_of_two"))
   {
     m_renderCaps |= RENDER_CAPS_NPOT;
     if (m_renderCaps & RENDER_CAPS_DXT)    // This may not be correct on all hardware

Thanks. This resolves my cpu 100% problem.

My system is Ubuntu 9.10 / P4 / FX5200.
Reply
#58
The issue is resolved in LIVE 9.11a2
Reply
#59
I wondered if there were two problems for this one and it looks like that might be the case Sad.

I've just updated the install to 9.11-a2 from the PPAs (build 24548) and still seeing the same problem.

In this instance though, compared to the earlier post on the support for GL_ARB_texture_non_power_of_two, my graphics card (GeForce 9800M GTS) reports full support for that feature.

I'm going to try having a play with the Nvidia drivers but from memory I had to upgrade to the current ones as the version in the Ubuntu repository for Intrepid didn't support high resolutions for this graphics card.

Would another debug capture be useful to try and nail this one?
Reply
#60
Hi All

Just posting to let other people know the above patch worked in my case - I no longer have an unusable GUI with close to 100% CPU usage. CPU usage is still high, but the text at the bottom no longer scrolls incredibly slowly, and I can move between items on the menu without waiting 5 seconds each time.

Let me know if you guys want any more information, I recommend adding the patch to the SVN ?

Thanks again

P.S. My specs:
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
Running a custom kernel (2.6.30-rc2-custom #2 SMP)

direct rendering: Yes
OpenGL renderer string: GeForce FX 5900XT/PCI/SSE2/3DNOW!

P.S. Just seen a comment saying it has been fixed in 9.11-a2 - I pulled from the git repo today, changes might not have made their way across yet ?
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7

Logout Mark Read Team Forum Stats Members Help
High CPU Usage on SVN Build0