Kodi Community Forum
Near 100% CPU in fullscreen - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Near 100% CPU in fullscreen (/showthread.php?tid=32159)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


- User 29008 - 2008-09-21

Alright tslayer, I am compiling from svn right now to have the latest code to test with.
My preferred solution is to use my onboard ATI HD3200 chipset for VGA. So what settings in Catalyst Control Center do u suggest for VSync. I Can chose from:

- Always off
- Off, unless application specifies
- On, unless application specifies
- Always on

Is the "Let driver choose" option in XBMC new? I didn't see that in the available options before ...?

boba


- User 29008 - 2008-09-21

Ah and btw, here's my device section from xorg.conf:

Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
Option "VideoOverlay" "off"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "on"
Option "NoFlip" "1"
BusID "PCI:1:5:0"

boba


- tslayer - 2008-09-21

Yes, the option is new.

As for ATI, not sure. Try "Always On".

I also may have another fix for you to test if you can. Please try applying this patch to current svn and report results.

I'd like you to try ALL the Vsync options in XBMC and report the following:

1) GUI Tearing (you would notice it during animations)
2) Video Tearing
3) FPS
4) CPU Usage (use top please)

Diff: http://pastebin.com/m64d986f0

Thanks a lot!


- User 29008 - 2008-09-21

Ok, first results.
SVN rev 15649, ATI CCC Vsync Always on, XBMC "Let driver choose": %CPU in top 86-90% at XBMC main screen. Not really an improvement.

Will try with your patch soon, one thing though. I see 2 patches at that pastebin site? Which one should I apply ... confuses me quite a bit ;-)

boba


- User 29008 - 2008-09-21

Ok, sorry stupid me, the lower part is for editing :-) Will patch now.


- User 29008 - 2008-09-21

Still no improvement tslayer, I am running current svn with your patch applied. Played around with all vsync settings in CCC and inside XBMC, my idle cpu usage is never below 84%, mostly hovering between 86-91%.
Any more ideas? More settings in xorg.conf to try?

boba


- tslayer - 2008-09-21

Come on IRC and chat with me.

With the patch I have 1% cpu usage.

I also got confirmation that on windows it also helped.

Come on IRC and ping me there. We are on freenode and in channel #xbmc-linux.


- tslayer - 2008-09-21

Also, not sure you saw this thread: http://forum.xbmc.org/showthread.php?tid=34933

But specifically related to vsync and your video card.


- User 29008 - 2008-09-21

tslayer, which ircnetwork are you on? freenode? can you gimme few servers to use, not sure if it's included in standard mirc servers. gotta install mirc quickly, gimme few minutes.


- tslayer - 2008-09-21

Yes, freenode.

http://freenode.net/irc_servers.shtml


- tslayer - 2008-09-21

For what it's worth, boba23 has something funky going on with this ATI drivers where direct rendering is not working (disabled).

He is going to work on fixing that first.


- d00chris - 2008-09-21

I have the same configuration (Gigabyte GA-MA78GM-S2H + AMD 4850e CPU) and I have the same issue with 100% CPU while idle. I've tried the "NoFlip" in xorg.conf as well without success.

ATI Catalyst version: 8.8
XBMC build date: September 17 (latest ppa package, i.e. not compiled by myself)

I have the v-sync setting under "Appearance" in XBMC set to "Enabled during Playback". Strangely enough I do not have the "Let Driver Choose" option so I haven't been able to test it.


- User 29008 - 2008-09-21

Alright guys, according to glxinfo I have direct rendering up and running now, which is good I suppose :-) Problem was

/usr/X11R6/lib/modules/dri/fglrx_dri.so

was not in place. fglrx_dri.so was located in /usr/lib/dri/fglrx_dri.so so I created a link from the expected location to the real one and voila:

DISPLAY=:0 glxinfo | grep render
direct rendering: Yes

Besides that, tslayer ... nothing much changed. CPU load still at 85%, FPS = 30 when I set 1920x1080@60hz in appearance and still this in xbmc.log:

21:16:35 T:3068315488 M:1413230592 ERROR: GL: Vertical Blank Syncing unsupported

any other suggestions? ;-)


- tslayer - 2008-09-21

Not sure.. Something is still off with the drivers. Also, I do not think FPS should be 30 when at 60hz.

d00chris, you need to update your XBMC build (build it yourself and then apply the patch manually).


- d00chris - 2008-09-21

OK, so this bug is not resolved in the latest PPA then? In that case I will let it be for the moment.