Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] cache for saving with different frame speeds #211

Open
JohannesMP opened this issue Nov 22, 2017 · 1 comment
Open

[feature request] cache for saving with different frame speeds #211

JohannesMP opened this issue Nov 22, 2017 · 1 comment
Assignees
Labels
🔷Enhancement Type • Improvements for the software.

Comments

@JohannesMP
Copy link

If you save a gif, where it is analyzed for changes between frames and then saved to a file, that information could be preserved to make saving the gif much faster if all the user does is change frame times.

For example, if you save a gif with frame timings of 50 ms, but realize that that is too slow, overriding frame times to 30 ms would not change the individual frame-to-frame compression that has to occur when saving. Even modifying individual frames, such as extending a frame in case where it contains text that otherwise would disappear too quickly to be readable, would not change the frame-to-frame compression.

It should be possible to cache the compression data after saving the gif the first time, and use that on subsequent saves. Changes like overriding or decreasing frame times would not invalidate the cache, but reversing, transitions, etc. would.

This would vastly speed up workflows where all that a user does is change frametimes.

Since such a cache would take up additional system memory, this could be an option in the save dialogue or settings, so that users that don't often modify frame times as part of their workflow don't have additional memory usage for something they don't benefit from.

@NickeManarin NickeManarin added the 🔷Enhancement Type • Improvements for the software. label Nov 23, 2017
@NickeManarin NickeManarin self-assigned this Nov 23, 2017
@NickeManarin
Copy link
Owner

Alright. :)

Just to add some details of how it works right now:

  • The frames are only analyzed if the option Detect unchanged pixels is enabled. (So, if you disable this option right now, you can speed up your framerate tests)

  • The frames are cut (if they retain the same pixels of the previous frame) and saved into a new file inside a temp folder.

  • This temporary folder gets deleted after the encoding, so the analyzed frames are lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔷Enhancement Type • Improvements for the software.
Projects
None yet
Development

No branches or pull requests

2 participants