From bbb2e0614fc3c017f4dbcdb8a26be612e8cb282e Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 23 Jun 2020 07:59:34 +0200 Subject: Performance: Draw play head as an overlay When playing back animations a playhead is updated in all the animation editors. The drawing of the playhead is part of the drawing of the main region `RGN_TYPE_WINDOW` that redraws the whole region. This change will draw the play head and window scrollers when updating the screen. This affects the Action editor, Timeline, Graph editor, NLA editor and Sequence editor. There is noticeable speedup when using complex animation files. Spring 02_020_A.anim.blend fps went from 11.8 to 12.5 when showing a timeline and a action editor on a Ryzen 1700. * When playing back animation the markers don't jump up/down when near the frame. This could be added back. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D8066 --- source/blender/editors/include/ED_time_scrub_ui.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/include/ED_time_scrub_ui.h') diff --git a/source/blender/editors/include/ED_time_scrub_ui.h b/source/blender/editors/include/ED_time_scrub_ui.h index d5b9fa2a553..483dce56577 100644 --- a/source/blender/editors/include/ED_time_scrub_ui.h +++ b/source/blender/editors/include/ED_time_scrub_ui.h @@ -32,6 +32,11 @@ struct bContext; struct bDopeSheet; struct wmEvent; +void ED_time_scrub_draw_current_frame(const struct ARegion *region, + const struct Scene *scene, + bool display_seconds, + bool draw_vert_line); + void ED_time_scrub_draw(const struct ARegion *region, const struct Scene *scene, bool display_seconds, -- cgit v1.2.3