Skip to content

Compare frames based on bounds as well. #18

@gskinner

Description

@gskinner

Zoe uses the origin to compare frames to one another for frame reuse. This makes the most sense in a variety of cases, but it means it fails to reuse frames when the only change is a graphic translating (x,y). For example, an animation of a bouncing ball could be reduced to a single image frame, and a series of frame definitions with varying regY.

It would be nice if Zoe could also check for frame similarities based on the bounds of each frame (possibly aligning from the center, to reduce the impact of antialiasing). It would double the performance cost, but would likely be worth it.

See also:
http://community.createjs.com/discussions/zoe/115-when-variable-frames-and-reuse-frames-are-used-at-the-same-time-zoe-doesnt-provide-a-correct-output-for-the-frames-arrwy

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions