Author Topic: Run attract mode of the video card instead of the cpu  (Read 840 times)

abls1

  • Full Member
  • ***
  • Posts: 50
    • View Profile
Run attract mode of the video card instead of the cpu
« on: June 09, 2015, 04:38:54 PM »
I know its not needed but how do I add video card support to the code? is there a code for that or patch?  A friend of mine is helping me learn programming.

Thanks

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 359
    • View Profile
Re: Run attract mode of the video card instead of the cpu
« Reply #1 on: June 09, 2015, 10:41:43 PM »
I assume you mean to add hardware acceleration support for the videos.  That sounds like a fairly ambitious project for a first go at learning how to program!

Attract-Mode uses the FFmpeg library to play videos (ffmpeg.org).  It doesn't use hardware acceleration, and I'm not aware of any patches for Attract-Mode that allow it to use HW acceleration for video.

If you want to try implementing this, You could start by looking at the FFMpeg documentation for how it would be done.  They've got a page on their wiki that might be a good starting point: http://trac.ffmpeg.org/wiki/HWAccelIntro

abls1

  • Full Member
  • ***
  • Posts: 50
    • View Profile
Re: Run attract mode of the video card instead of the cpu
« Reply #2 on: June 10, 2015, 04:28:47 AM »
Thanks for your response you are right for video and for processing power, this would be so for making layout do stuff like 3d rendering.I thought all I needed to do is to point or make a call to use the video card.. I will of course not be using any advance effects but if i do i have the power to use it