3b1b / manim

Animation engine for explanatory math videos
MIT License
70.78k stars 6.23k forks source link

Update scene.py to make scene.time more accurate #2168

Closed zhujisheng closed 1 month ago

zhujisheng commented 1 month ago

When the time intervals are (0, dt, 2dt, ...), during the first frame processing, only the video is inserted, but the update parameter is 0, which causes scene.time to be inaccurate. The correct time intervals should be (dt, 2dt, ...)

Motivation

Proposed changes

Test

Code:

Result: