Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-01-08, 03:41 AM   #1
pinguin74
Registered User
 
Join Date: Aug 2007
Posts: 38
Default xine opengl video output and high cpu load

Hello!

I am using Xine (latest version 1.1.11.1) 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?

Thanx
pinguin74 is offline   Reply With Quote
Old 04-01-08, 04:21 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default 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.
Thunderbird is offline   Reply With Quote
Old 04-02-08, 07:02 AM   #3
pinguin74
Registered User
 
Join Date: Aug 2007
Posts: 38
Default 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.
pinguin74 is offline   Reply With Quote
Old 04-02-08, 11:29 AM   #4
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default 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).
Thunderbird is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:18 AM.


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