fifonik / FFMetrics

Visualizes Video Quality Metrics (PSNR, SSIM & VMAF) calculated by ffmpeg.exe
562 stars 22 forks source link

Unnecessary GPU (D3D) load from running FFmetrics (while main window is not minimized) #109

Closed jeryll7 closed 1 year ago

jeryll7 commented 1 year ago

I recently noticed that this great and useful program (thank you for it!) is unfortunately causing unnecessary GPU (D3D) load (around 20-30%) on my Nvidia RTX 3070 graphic card. I suspect it has something to do with small preview window next to "Browse" button. Can you check this with HWINFO64 or GPU-Z utility on your system and confirm?

I am mostly concerned about energy consumption of the PC in the long term (since my PC is often running 24/7). Monitoring programs shows around 2 Watt per second increase in graphic card consumption (that's 7.2 kW per hour :( (if I forget to minimize it and leave it running in the background)).

Solution for me (for now - until hopefully fixed ASAP) is relatively simple, if you minimize FFmetrics into taskbar energy consumptions drops back.

But still would be nice this have fixed.

fifonik commented 1 year ago

Thanks for your report. I will try to debug what is causing the high GPU usage.

fifonik commented 1 year ago

The issue should be resolved in 1.4.7 beta 1 that I've just released. Could you check it please? Thanks.

jeryll7 commented 1 year ago

Thank you for the quick fix, I can confirm that unnecessary GPU load is fixed in 1.4.7 beta 1. But now I get occasional exception thrown at the start of FFmetrics 1.4.7 beta 1:

CiceroUIWndFrame: FFMetrics.exe - Application Error : The exception unknown software exception (0xe0434352) occurred in the application at location 0x00007FFB865BCD29.

and can't properly compute VMAF score with vmaf_0.6.1- (vmaf_4k_0.6.1 works OK). Can't restart my PC for the next 6 hours or so (running transcode), so for now, I'll have to wait if after restart issue will be gone.

Or maybe you can release quick GPU fix for the v 1.3.1, until betas are polished enough?

fifonik commented 1 year ago

now I get occasional exception thrown at the start of FFmetrics 1.4.7 beta 1

So there is no such startup exception in 1.4.6b?

can't properly compute VMAF score with vmaf_0.6.1

Meaning? Error? Wrong score?

jeryll7 commented 1 year ago
fifonik commented 1 year ago

It will be hard to follow a number of different not related to the title issues here. Could you create separate issues for exception and for the wrong vmaf value please? Thanks.

jeryll7 commented 1 year ago

Of course