Blender Git Loki

Git Commits -> Revision 10528a5

Revision 10528a5 by Sebastian Parborg (master)
May 19, 2020, 10:22 (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: 10528a5cd4eacad7d67e0939f0e0941d8c499876
Parent Commit: 24e5c64
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021