Skip to content

Investigate implementation of OffscreenCanvas API #2481

@mvaligursky

Description

@mvaligursky

Investigate implementation of https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas. This would give us:

  • possible additional performance for the application, as playcanvas part of the application including webgl would execute on separate thread
  • ability to use Atomics library https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics on both webgl and worker threads, allowing us to write a job system which can execute jobs triggered on webgl thread and get results back inside the same frame, without using messages for synchronization.

Metadata

Metadata

Assignees

Labels

area: graphicsGraphics related issueperformanceRelating to load times or frame rate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions