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


- ovyg - 2008-07-30

Yes Gaarv, please try with 20. This is important for how I will revise the patch.


- elupus - 2008-08-04

ovyg:
could you try the following on a clean xbmc checkout (ie without your patch).

in Application.cpp, comment out the following line
setenv("__GL_SYNC_TO_VBLANK","1",true);

and make sure that env isn't set when starting xbmc. let me know if that removes the 100% cpu usage.


- jimb0b - 2008-08-09

not sure if this helps anyone but im running xbmc (svn14729) on gutsy with a geforce 6200 and i get the high cpu problem, if i switch to another session ctrl-alt-f2 then switch back to xbmc my cpu usage drops to around 10%

im new to linux but if theres any more info i can provide, logs etc if you tell me how to get them il post them up.


- jimb0b - 2008-08-09

sorry cant find the edit button ?
forgot to add i have tried the "no flip" etc with no change


- ubikdood - 2008-08-14

elupus, I noticed something changed regarding __GL_SYNC_TO_VBLANK, and you wish to see reports on this.

DISCLAIMER : The following is not a formal bug report.

Since revision 14714, xbmc.bin uses ~50% cpu.
If I set __GL_SYNC_TO_VBLANK=0 before starting xbmc, cpu usage drops to ~15%.
Prior to revision 14714, cpu used to be < 10%.

Kernel : Linux 2.6.25.11
Nvidia driver : NVIDIA UNIX x86 Kernel Module 100.14.19 (has support for GLX_SGI_video_sync)
Graphics card : NVIDIA GeForce 7600 GS, rev 162
CPU : AMD Athlon™ 64 Processor 3700+ (single core)
X-server : X.Org X Server 1.4.2


- elupus - 2008-08-14

ubikdood, and if you turn of vsync in xbmc and don't set __GL_SYN... to anything


- eversmann - 2008-08-15

I was having this issue on the latest released alpha 3 version (noticed on fullscreen, video playback stutters, and suffered on video/audio decompensation).

Disabling vsync resolved the problem (from inside xbmc options).


- elupus - 2008-08-15

eversmann and you are on what graphiccard?


- phunqe - 2008-08-16

Reverting http://trac.xbmc.org/changeset/14430/branches/linuxport/XBMC/guilib/Surface.cpp worked at least for us with nVidia cards, but now that file has changed. Is there anything we can do to get the CPU usage down? Since the sleep / power management doesn't work either it seems quite critical.


- phunqe - 2008-08-16

Reading the above afterwards I realize it might have come off a bit more pretentious than expected. What I was trying to convey was that (for me at least) is seems that such a bug should be given the highest priority, given that is can actually affect the hardware. If the sleep / power management would have worked the issue would have been lesser really, but the thought of havaing the CPU running at 100% all the time if you don't turn XBMC off is quite a big deterrent (again, at least for me).

Cheers.


- eversmann - 2008-08-18

elupus Wrote:eversmann and you are on what graphiccard?

nvidia fx5500 agp, amd 3200+, ubuntu 8.04, nvidia 173.14.12 driver version installed using envy and xorg.conf file configured using the nvidia control center.


- ubikdood - 2008-08-18

elupus Wrote:ubikdood, and if you turn of vsync in xbmc and don't set __GL_SYN... to anything

... cpu goes down to 5 %. Smile
Thanks !


- elupus - 2008-08-18

phunqe and did you try turning of vsync in xbmc?


- kknull - 2008-08-19

100% too here... using ati x1600, xbmc 14927 svn


- kknull - 2008-08-20

with vsync disabled