Skip to content

[Impeller] Consider optimizing out "useless" atlas blending #121723

@jonahwilliams

Description

@jonahwilliams

For example, by default Flame's sprite batcher will call drawAtlas with a srcOver blend mode and a clear color (https://github.com/flame-engine/flame/blob/main/packages/flame/lib/src/sprite_batch.dart#L16-L17). this is equivalent to drawing the operation without any blending.

Since we're probably going to be walking the list of colors anyway, we could detect this case and elide the blend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecte: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions