Skip to content

Conversation

@ryzokuken
Copy link
Collaborator

This change works on top of #20016 to move CanvasGraphics operations to a new/different worker thread, thus offloading the heavy page renders and freeing up the main thread.

@ryzokuken ryzokuken self-assigned this Jul 2, 2025
@ryzokuken ryzokuken changed the title Offload rendering to worker Offload rendering to a worker Jul 2, 2025
@ryzokuken ryzokuken force-pushed the worker-drawing branch 3 times, most recently from d44e924 to 525db91 Compare July 14, 2025 23:05
@github-project-automation github-project-automation bot moved this to In progress in PDF.js quality Jul 25, 2025
@ryzokuken ryzokuken force-pushed the worker-drawing branch 2 times, most recently from 23cfb34 to 12d033c Compare October 6, 2025 09:46
@Aditi-1400 Aditi-1400 force-pushed the worker-drawing branch 2 times, most recently from 1a58fe0 to f7a5984 Compare January 12, 2026 13:52
@nicolo-ribaudo
Copy link
Contributor

/botio browsertest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @nicolo-ribaudo received. Current queue size: 0

Live output at: http://54.193.163.58:8877/7bdfc7c43588c35/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @nicolo-ribaudo received. Current queue size: 0

Live output at: http://54.241.84.105:8877/6d80fccccf139e9/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/6d80fccccf139e9/output.txt

Total script time: 3.14 mins

  • Regression tests: FAILED
  errors: 1324

Image differences available at: http://54.241.84.105:8877/6d80fccccf139e9/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/7bdfc7c43588c35/output.txt

Total script time: 4.49 mins

  • Regression tests: FAILED
  errors: 1324

Image differences available at: http://54.193.163.58:8877/7bdfc7c43588c35/reftest-analyzer.html#web=eq.log

ryzokuken and others added 4 commits January 27, 2026 09:29
Move the work of drawing the PDF onto the cavas to a worker thread
using OffscreenCanvas. This should free up the main thread a bit by
moving all of the CanvasGraphics operations to this "renderer" worker.
@nicolo-ribaudo
Copy link
Contributor

/botio browsertest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @nicolo-ribaudo received. Current queue size: 0

Live output at: http://54.241.84.105:8877/26b7c970c7c62ad/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @nicolo-ribaudo received. Current queue size: 0

Live output at: http://54.193.163.58:8877/efc007bdccfc069/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/26b7c970c7c62ad/output.txt

Total script time: 6.79 mins

  • Regression tests: FAILED
  errors: 1165
  different ref/snapshot: 4

Image differences available at: http://54.241.84.105:8877/26b7c970c7c62ad/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/efc007bdccfc069/output.txt

Total script time: 7.54 mins

  • Regression tests: FAILED
  errors: 1212
  different ref/snapshot: 3

Image differences available at: http://54.193.163.58:8877/efc007bdccfc069/reftest-analyzer.html#web=eq.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

5 participants