[Interest] Utilizing the GPU, how to start?

Thiago Macieira thiago.macieira at intel.com
Thu Jul 7 01:30:15 CEST 2016


On quinta-feira, 7 de julho de 2016 01:03:23 PDT André Pönitz wrote:
> On Wed, Jul 06, 2016 at 02:16:46PM -0700, Thiago Macieira wrote:
> > On quarta-feira, 6 de julho de 2016 20:23:44 PDT André Pönitz wrote:
> > > > Stop using QtWidgets, including QtWebView and QLabel, and transition
> > > > to Qt Quick instead. Qt Quick uses the GPU, QtWidgets do not.
> > > 
> > > So to use a certain backend technology you seriously advice to
> > > switch fronend languages, too?
> > 
> > That's the only option provided. You can choose one of:
> > 
> > a) port
> > b) keep it as it is
> 
> I guess it depends a bit on how "Qt widgets to take advantage of a GPU"
> is to be interpreted. I don't think that special GPU support for painting
> some QPushButton was asked for. Playing a video inside a QWidget based
> application might be closer.
> 
> When I look at my second monitor right now I see kaffeine (something
> capable of playing videos with a Qt Widgets GUI) running, and if I am to
> believe intel_gpu_top output it does utilize the GPU.
> 
> Some _something_ with Media, Widgets and GPU (keywords from the original
> mail) works in practice.

The way I see it, any video player that doesn't default to HW acceleration is 
not worth its salt.

I'd expect that if you want to force it to CPU-only, you'd have to do 
something. Maybe disabling the CPU fallback would also be opt-in.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list