8000 Optimise layer blending · Issue #56 · igorski/bitmappery · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Optimise layer blending #56
Open
Open
@igorski

Description

@igorski

There are two things we can do to make the new blended layer cache even more performant:

  1. In document-canvas#createLayerRenderers() we can surely omit looping through the same Layer list twice.
  2. Given that createLayerRenderers() determines the highest layer that has a blend mode filter, we can optimise layer-renderer#draw() to NOT render any lower layers that also have a blend mode filter (the highest layer is the only one that needs to cache the lower content).

When fixing point 2, the flush mechanism of the cache needs to be rethought (as it will reset the index of the highest layer causing possible missed renders when toggling blend modes / visibility between Layers).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0