Blender Git Commit Log

Git Commits -> Revision 94734d6

Revision 94734d6 by Sebastian Parborg (master)
May 12, 2020, 11:24 (GMT)
Fix Frame Dropping not dropping the correct amount of frames

Previously the playback mode "Frame Dropping" would not drop the correct
number of frames which would lead to slow playback.

For example, the playback target is 60fps. However we can only muster
around 32 fps.

The delta frames from the last step is in this case ~1.98 or so.

With the previous code, we would floor this. That would lead us to step
forward one frame each time, effectively playing back the animation at
half the speed as we will try to render every frame.

To fix this we simply save the remaining fraction from the previous
frame and use it to compute the current frame step.

Reviewed By: Sybren

Differential Revision: https://developer.blender.org/D7694

Commit Details:

Full Hash: 94734d64542bf7c5f8ff2b129f230173af5e1996
Parent Commit: 07fc240
Lines Changed: +28, -11

2 Modified Paths:

/source/blender/editors/include/ED_screen_types.h (+5, -5) (Diff)
/source/blender/editors/screen/screen_ops.c (+23, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021