Creates a new frame source that will execute when the timeout interval for the source has elapsed.
The timing will try to synchronize based on the end time of the animation.
frames_per_sec |
Target frames per second. |
callback |
A TaskSourceFunc to execute. |
user_data |
User data for |
A source id that can be removed with remove. |