8169501: GIF animation is too fast #221
Conversation
|
While it does seem like the fix will make things better, the logic is a bit surprising to me. What it means is that very small values in the range What I would like to see, though, is a comparison of behavior between:
Can you find two images (the one in the bug report can be one of them) with a frame delay value in the 11-50 range and also something in the 51-70 range and run the tests? |
/reviewers 2 |
@kevinrushforth |
This is pending response to comments above. |
Without the fix, gif animation speed matches for all interval gifs with all other browser (Which includes firefox, safari, chrome). |
Is this related to https://bugs.openjdk.java.net/browse/JDK-8209560? |
it seems not. |
Using the images you posted above, it appears that the browsers (Firefox and Edge on Windows, Firefox and Safari on Mac) have a threshold of 20ms, not 51 ms. Looks like the formula should be delay < 20 : set to 100 Your fix does make the 19 ms image match the browsers (whereas existing WebView is too fast), but the 20ms, 21ms, and 40ms images no longer do (they are fine in the existing WebVIew and too slow with your patch). So I recommend changing the value to 20 and then re-testing. |
This PR is on hold. It can be reopened or a new PR can be sent as and when it is ready to proceed. |
issue is caused by the threshold value for frame duration used by javaFx before it gets normalized. JavaFx is using threshold value 10 while other browser (Safari, Firefox) is using 50 due to which, value between 10 and 50 don't get normalized and animation runs at faster speed. To fix the issue change frame duration normalization value to <= 50.
Safari : https://bugs.webkit.org/show_bug.cgi?id=14413
Firefox : https://bugzilla.mozilla.org/show_bug.cgi?id=386269
Progress
Issue
Download
$ git fetch https://git.openjdk.java.net/jfx pull/221/head:pull/221
$ git checkout pull/221