nurpax / petmate

PETSCII editor with Electron/React/Redux
MIT License
185 stars 14 forks source link

export multiple screens as a gif anim #44

Closed nurpax closed 6 years ago

nurpax commented 6 years ago

TODO:

forked from https://github.com/nurpax/petmate/issues/19

nurpax commented 6 years ago

Might want to have screen reordering for this one too: https://github.com/nurpax/petmate/issues/85

nurpax commented 6 years ago

anim

nurpax commented 6 years ago

I implemented this but it is SUPER slow. I profiled this in Chrome devtools and turns out it's spending most of the time recomputing a new quantized palette for the input frames in the gif-encoder's neuquant (that legendary Kosonen SOM neural net). This is of course quite wasteful since we don't need to event compute a palette as the inputs can only ever contain 16 colors.

I'm planning to patch gif-encoder by adding an option to pass in a palette that's used for quantization. This should make gif export run several orders of magnitude faster.

Esshahn commented 6 years ago

I had a good laugh finding this anim in my mailbox this morning! :D