Skip to content

Port per-tile glyph/icon atlases #4876

Closed

Activity

  1. added
    GL native → GL JS
    on Jun 23, 2017
  2. self-assigned this
    on Jun 26, 2017
  3. jfirebaugh commented on Jul 7, 2017

    @jfirebaugh
    ContributorAuthor

    The gl-native implementation relies on transferring references to immutable objects across threads. Unfortunately, we don't have that option in JS -- we can only copy JSON or move ArrayBuffers. For icons and glyphs, that means copying image and glyph data from the main thread to the worker. Might be expensive. :(

    SharedArrayBuffer is a possible future solution, but it'll be a while before support is widespread.

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

Metadata

Metadata

Assignees

Labels

GL native → GL JS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions