nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   xine opengl video output and high cpu load (http://www.nvnews.net/vbulletin/showthread.php?t=110904)

pinguin74 04-01-08 03:41 AM

xine opengl video output and high cpu load

I am using Xine (latest version with the OpenGL video output. I have a GForce 6200 and use the 169.12 driver. OpenGL is properly installed.

When I play a video I get a relatively high CPU load, around 50% - 60% in average. I thought, that the driver would let the graphics card do much of the job? I just expected a much lower CPU load, cause I thought when you use the nVidia driver the card would do much of the math when playing a video... Is this assumption not true?


Thunderbird 04-01-08 04:21 AM

Re: xine opengl video output and high cpu load
Most likely the xine output plugin isn't very efficient. Sure opengl can do the scaling and things for 'free' but you need to get the data on the GPU. When you use traditional opengl calls texture uploads are being done synchronously. This can lead to high cpu usage because the cpu needs to wait before each upload is complete. If they would take advantage of asynchronous calls (using pixel buffer objects) the doesn't have to wait.

In other words OpenGL doesn't mean it is fast, it can be faster if the program is written in a good way.

pinguin74 04-02-08 07:02 AM

Re: xine opengl video output and high cpu load
Thanx for explaining. So, just using nVidia's drivers is not enough, it still depends on the application.

Thunderbird 04-02-08 11:29 AM

Re: xine opengl video output and high cpu load
Correct. I think XVideo can be used asynchronously. In case of video when there is e.g. a cpu bottleneck it isn't bad when so now and then a frame is skipped if the movie continues playing. Most synchronous apps try to show each and every frame which is typically not what you want (if there is some resource limit).

All times are GMT -5. The time now is 02:42 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.