godotengine / godotengine/godot
Looping 2D animation flickers when physics interpolation is enabled
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
4.3 stable
### System information
macOS Monterey, iMac (Retina 4K, 21.5-inch, 2017), 3.4 ghz quad-core intel core i5, Radeon Pro 560 4 GB
### Issue description
I have several Sprite2Ds animated with AnimationPlayer (changing their position, rotation, scale and skew). The animation is set to a linear loop. When physics interpolation is enabled, the animation flickers at runtime at the start of the cycle. This doesn't happen in the editor, doesn't happen after changing the loop mode to Ping Pong, and, most importantly, doesn't happen when physics interpolation is disabled.
### Steps to reproduce
Open MRP, ensure that physics interpolation is enabled, run the project and observe. Then disable physics interpolation and run the project again to compare results.
### Minimal reproduction project (MRP)
[looping-animation-issue.zip](https://github.com/user-attachments/files/17004168/looping-animation-issue.zip)
Contributor guide
Assessment
This issue has not been assessed yet.