WesselKroos / youtube-ambilight

This browser extension adds ambient light to YouTube videos
MIT License
87 stars 8 forks source link

Ambient light always displays red after Nvidia GPU driver update #206

Closed travilist closed 9 months ago

travilist commented 9 months ago

Bug description

Ambient light always displays red after Nvidia GPU driver update

Steps to reproduce the behavior

  1. Update GeForce game ready driver to 546.29
  2. Open YouTube video

Browser

Chrome

Operating system

Windows

Extension version

2.38.0

The bug still happens in these conditions

Additional context and/or screenshots

Chrome ANGLE graphics backend is set to "OpenGL" instead of "D3D11" to fix flickering issues in YouTube. Application previously worked with this setting.

chrome_fCpt4xRBaG

WesselKroos commented 9 months ago

@travilist That's a strange bug. We might need to report this to Google and/or NVidia to get this resolved if it's really a specific driver and/or hardware issue.

Have you tried rebooting Windows already?

We might be able to already narrow it down to a specific hardware/software setup to help them out:

  1. What is your graphics card model?
  2. Did you also check if it happens with Angle set to D3D11?
  3. What Windows version and build number are you on?
  4. What is the refresh rate of your monitor and do you have a single or multiple monitors?
  5. Have you specifically enabled/disabled any NVidia/Windows features that we could narrow this down to? (NVidia Video RTX VSR, GSync, GSync-compatible, Windows Hardware-Accelerated GPU Scheduling, Resizable BAR, Multi-Plane Overlay (MPO), etc)
WesselKroos commented 9 months ago

@travilist I'm unable to reproduce this bug on Windows 11 on Chrome with an NVidia RTX 2070 Super with NVidia GForce game ready driver version 546.29. Please provide your answers to the above questions and an export of your settings.

travilist commented 9 months ago

Sorry for the late response. With the new NVidia graphics driver (546.29), it seems as if rasterization is turned off in Chrome when using the OpenGL ANGLE backend. Switching to D3D11 re-enables rasterization and Ambient Light works again. Here are the following if they could still help:

  1. NVidia RTX 4070 ti
  2. Yes, this seems to fix the issue. It is just strange that OpenGL previously worked before the driver update.
  3. Windows 11 Build 22631.2792
  4. My primary monitor refreshes at 165Hz, I do have multiple monitors
  5. I have not touched any of these settings
WesselKroos commented 9 months ago

I'm afraid that I can't fix this issue for you, instead you might have to report this issue to the Chromium or NVidia developers. But we could try to narrow down what exactly fails.

I have found a bunch of my old ambient light tests which you can try out. The question is then, which of these webpages display a correct copy or blurred copy of the video when you play the video and which ones display a faulty red (blurry) square?

  1. https://cdpn.io/pen/debug/LYgNzJK (Extra instructions: Click to play the video)
  2. https://cdpn.io/pen/debug/eYVJLzY (Extra instructions: Play the video until 3 seconds, then click on the "Draw x times" button, wait 1 second and click on the "Draw x times" button again. Do all 2 destination column display 3 images?)
  3. https://cdpn.io/pen/debug/OJOgeOa/40f653ddf52b4b6ce1934e472112527e
  4. https://cdpn.io/pen/debug/wvPMERM/676794c8fefaba9d752ff08a565f0b16
  5. https://cdpn.io/pen/debug/oNojvWb/f6cb7b1445755aa4574faeab82d98d39
  6. https://cdpn.io/pen/debug/yLPyPVa
  7. https://cdpn.io/pen/debug/gOMLyRp
  8. https://cdpn.io/pen/debug/oNbXYXX

You could also check the DevTools console for errors/warnings that are being logged in there.