AnimatedSprite2D incorrectly skips frames when the previous frame is too short
Tested versions
using v4.7.stable.official [5b4e0cb0f]
System information
Godot v4.7.stable - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 32.0.15.6094) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 threads) - 15.96 GiB memory - WASAPI (48000 Hz, Stereo/mono)
Issue description
When playing a SpriteFrames animation in an AnimatedSprite2D, when one frame's duration is very short (seems to be less than about 0.03s), then the next frame gets skipped, even if it is very long.
Steps to reproduce
How to reproduce: set one frame to x0.01 duration, and then the next to x99 duration. The x99 duration frame does not play even though it should last for several seconds. (the x99 is not important. A big number is chosen just to make it more obvious that something is wrong.)
Minimal reproduction project (MRP)
Source: godotengine/godot