Mercury icon indicating copy to clipboard operation
Mercury copied to clipboard

100% CPU constant usage on "Data Decoder" and "GPU"

Open rohitsaha29 opened this issue 1 year ago • 14 comments

Windows 11 Pro 23H2 Intel i7-13700k & 2080ti

Version: [v.129.0.2] AVX2 and AVX

Hardware Acceleration is forced and on, stock no custom user js or anything

image

rohitsaha29 avatar Oct 11 '24 02:10 rohitsaha29

Isn't this the expected behavior with HW turned on?

gz83 avatar Oct 11 '24 05:10 gz83

Isn't this the expected behavior with HW turned on?

No it is not, i have a 100% cpu usage when I have HW acell on. This doesnt happen on stock firefox or any other fork of firefox. This even happens on the normal non AVX build of mercury.

rohitsaha29 avatar Oct 11 '24 13:10 rohitsaha29

Sorry, I didn't read your description clearly when I was typing that comment a few hours ago on my phone.

Can you confirm that you have installed the HEVC plugin from the Microsoft Store?

gz83 avatar Oct 11 '24 13:10 gz83

Sorry, I didn't read your description clearly when I was typing that comment a few hours ago on my phone.

Can you confirm that you have installed the HEVC plugin from the Microsoft Store?

Yes I do have it installed.

rohitsaha29 avatar Oct 11 '24 13:10 rohitsaha29

@rohitsaha29 Do you have Intel CPU with Intel Graphics and an NVidia GPU?

Soromeister avatar Oct 14 '24 10:10 Soromeister

@Soromeister yes i do actually. is there something i need to change or do

rohitsaha29 avatar Oct 14 '24 14:10 rohitsaha29

has anyone found or know the fix for this please?

rohitsaha29 avatar Nov 06 '24 19:11 rohitsaha29

@rohitsaha29 I managed to fix this following the below:

  • Go to about:config and set these values:
dom.webgpu.enabled = true
dom.webgpu.indirect-dispatch.enabled = true
dom.webgpu.workers.enabled = true
gfx.vsync.force-disable-waitforvblank = true
gfx.webrender.all = true
gfx.webrender.dcomp-video-hw-overlay-win-force-enabled = true
gfx.webrender.triple-buffering.enabled = false
media.hardware-video-decoding.force-enabled = true
security.sandbox.gpu.level = 0
  • After doing this, please make sure you close all Mercury processes;
  • In your Windows 11, go to Settings > System > Display > Graphics and find Mercury there. If it's not there, add it. Make sure that GPU Preference is set to High Performance with your NVidia GPU listed there.
  • Open NVidia Control Panel, go to 3D Settings > Manage 3D Settings > Program Settings and select Mercury from the list, or simply add it via the "Add" button. Once Mercury is added / selected, set it to run using High Performance NVIDIA Processor and, from the list below, set Power Management Mode to Adaptive. Click on Apply to apply the settings.
  • Preferably, to make sure this gets applied, reboot your computer and then start Mercury. Using Task Manager, you can monitor which GPU is being used (GPU 0 is Intel, GPU 1 is NVidia). Mercury should now show up as using GPU 1 and you shouldn't get the issue anymore.

Soromeister avatar Nov 14 '24 09:11 Soromeister

@Soromeister unfortunately this did not work for me. I think its just a issue with mercury itself because my friend was able to replicate it on his system and the same happened for another PC of mine. and this issue doesn't happen on FF Dev or Stable. Hopefully Alex is aware of this issue and can fix it in the next release.

rohitsaha29 avatar Nov 14 '24 16:11 rohitsaha29

Technically, the security.sandbox.gpu.level = 0 should be enough to fix 100% GPU usage. Not sure about that "Data Decoder".

Soromeister avatar Nov 15 '24 09:11 Soromeister

@Soromeister yeah i don't get it on GPU anymore but I get 100-150% on CPU usage for Data Decoder after all the thing you mentioned applied. {D652C9F6-4DD0-47AE-8A39-6AB08116DFAC}

rohitsaha29 avatar Nov 15 '24 16:11 rohitsaha29

Hi all, this has been covered serval times already. This issue is caused by the name of the Mercury executable and NVIDIA having mercury.exe as an excutable for Gotham Knights game which causes high GPU usage as NVIDIA thinks a game is running. https://github.com/Alex313031/Mercury/issues/116#issuecomment-2053985541

inteliboy avatar Dec 06 '24 08:12 inteliboy

Hi all, this has been covered serval times already. This issue is caused by the name of the Mercury executable and NVIDIA having mercury.exe as an excutable for Gotham Knights game which causes high GPU usage as NVIDIA thinks a game is running. #116 (comment)

So is there a fix that I can do on my end? or do I have to wait for Alex to incorportate a fix?

rohitsaha29 avatar Dec 06 '24 17:12 rohitsaha29

Hi all, this has been covered serval times already. This issue is caused by the name of the Mercury executable and NVIDIA having mercury.exe as an excutable for Gotham Knights game which causes high GPU usage as NVIDIA thinks a game is running. #116 (comment)

So is there a fix that I can do on my end? or do I have to wait for Alex to incorportate a fix?

couldn't you change the name for the exe file as a fix? or tweak nvidia's settings

totherpage955 avatar Feb 17 '25 02:02 totherpage955