Open Bug 1835514 Opened 1 year ago Updated 6 months ago

"image-rendering: pixelated" canvases are unstable over redraws.

Categories

(Core :: Graphics: WebRender, defect)

Firefox 113
defect

Tracking

()

UNCONFIRMED

People

(Reporter: majaharding, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(6 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0

Steps to reproduce:

If you set a scaled-up canvas to have "image-rendering: pixelated", the exact mapping from source pixels to scaled pixels changes between re-draws, causing visual flickering. You can cause a re-draw by hovering over UI elements such as different tabs, or using javascript to paint to the canvas.

Actual results:

Random pixel widths change between redraws, flickering back and forth. Which exact columns of pixels are flickering can be changed by hovering over different UI elements. See the attached video.

Expected results:

The exact scale mapping should stay constant and should not change over time. (Probably, it should also be stable over things like size and position.)

Attached file stripetest.html

I've also reported a possibly related bug with "pixelated" on images here: https://bugzilla.mozilla.org/show_bug.cgi?id=1835515

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

Thanks for the report! I can't seem to be able to reproduce the flickering. Can you attach the contents of your about:support?

Flags: needinfo?(majaharding)
Attached file about support.txt
Flags: needinfo?(majaharding)
Attached file about support json.txt

There you go.

You may need to play around, change the size of the window etc. to see it. The flickering is intermittent and a bit fickle (on my machine anyway).

I was able to reproduce this on two different Desktop computers (with Nvidia GPUs) and my Laptop (both using it's Nvidia GPU and it's Intel GPU).

I found that it was much harder to make it happen on the laptop than the desktops. It seemed to only happen when the window was small, about a quarter of the size of the screen. I'll attach a video of of what that looks like.
I also saw strange mode of flickering, where not all of the pixels in the same column were changing. I'll attach that too.

Thanks for the info! I'm still unable to reproduce it however, this most likely has the same root cause as 1835515.

Severity: -- → S3
Component: Graphics: Canvas2D → Graphics: WebRender
Blocks: wr-blurry
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: