WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
269704
OffscreenCanvas flickers during rendering
https://bugs.webkit.org/show_bug.cgi?id=269704
Summary
OffscreenCanvas flickers during rendering
Ashley Gullen
Reported
2024-02-19 05:19:38 PST
We make a web-based game engine Construct (www.construct.net). It supports running the engine both in the DOM with a standard HTML canvas, and in a Web Worker and rendering with OffscreenCanvas. Only in Safari and only when using OffscreenCanvas, sometimes the displayed canvas flickers. It looks like perhaps the canvas is not drawn for a single frame, causing its content to momentarily disappear and then reappear, which looks like a distracting flicker. Repro URLs: Using DOM canvas:
https://downloads.scirra.com/labs/bugs/canvasflicker/dom/index.html
Using OffscreenCanvas:
https://downloads.scirra.com/labs/bugs/canvasflicker/worker/index.html
Steps to reproduce: 1. Visit the first URL using DOM canvas 2. Wait for the content to load 3. Press the "Spin" button several times, waiting for the animation to finish each time 4. Repeat with second URL using OffscreenCanvas Observed result: In Safari and when using OffscreenCanvas only, sometimes the canvas momentarily disappears, resulting in a flicker. This can most obviously be seen in the "Flicker check" box at the top. This reproduces in Safari 17 on both macOS and iOS. Expected result: No flickering. This is how it appears in DOM mode in Safari, but also both modes always display correctly in Chrome and Firefox on Windows and Chrome on Android.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-02-26 05:20:13 PST
<
rdar://problem/123626765
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug