Skip to content

Avoid copyPixels for full-sheet frames.#23

Open
Leander1P wants to merge 1 commit intoskylarkstudio:masterfrom
Leander1P:avoid-copypixels-for-full-frames
Open

Avoid copyPixels for full-sheet frames.#23
Leander1P wants to merge 1 commit intoskylarkstudio:masterfrom
Leander1P:avoid-copypixels-for-full-frames

Conversation

@Leander1P
Copy link

Our toolchain is a little naive and occasionally produces a Spritesheet
with a single full-image frame.

This avoids taking copyPixels overhead when this happens, instead
referencing the existing sourceImage directly. This does require that
sourceImageAlpha is null (otherwise the copyChannel would break this).

Posting this mostly as an RFC; I could see some possible arguments against it.

Our toolchain is a little naive and occasionally produces a Spritesheet
with a single full-image frame.

This avoids taking copyPixels overhead when this happens, instead
referencing the existing sourceImage directly.  This does require that
sourceImageAlpha is null (otherwise the copyChannel would break this).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant