diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-12 03:44:26 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-12 03:44:26 +0300 |
commit | b482b8543eb10102c6c09756e08977a3b69ff633 (patch) | |
tree | 4532177f73045cc5cdb3582766d1e121604a53a1 /source/blender/editors/include/ED_screen_types.h | |
parent | f0e873cabe0797c74fba440c8b11b4e2c038f791 (diff) |
Bugfix #21051: Restored 'Playback FPS'
This commit restores the 'Playback FPS' option which showed an indicator of the frame rate of animation playback in the 3D-View.
The info for this is now stored in a temp struct in scene data, with the status info being updated by the "animation step" operator instead of relying on globals as the old code did. This seems a lot more stable than in 2.49, but the accuracy is still questionable.
Diffstat (limited to 'source/blender/editors/include/ED_screen_types.h')
-rw-r--r-- | source/blender/editors/include/ED_screen_types.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_screen_types.h b/source/blender/editors/include/ED_screen_types.h index 0deda5a2a84..3ce3ac7a5f2 100644 --- a/source/blender/editors/include/ED_screen_types.h +++ b/source/blender/editors/include/ED_screen_types.h @@ -29,6 +29,8 @@ #ifndef ED_SCREEN_TYPES_H__ #define ED_SCREEN_TYPES_H__ +/* ----------------------------------------------------- */ + /* for animplayer */ typedef struct ScreenAnimData { ARegion *ar; /* do not read from this, only for comparing if region exists */ @@ -49,6 +51,21 @@ enum { ANIMPLAY_FLAG_NO_SYNC = (1<<3), }; +/* ----------------------------------------------------- */ + +#define REDRAW_FRAME_AVERAGE 8 + +/* for playback framerate info + * stored during runtime as scene->fps_info + */ +typedef struct ScreenFrameRateInfo { + double redrawtime; + double lredrawtime; + float redrawtimes_fps[REDRAW_FRAME_AVERAGE]; + short redrawtime_index; +} ScreenFrameRateInfo; + +/* ----------------------------------------------------- */ /* for editing areas/regions */ typedef struct AZone { |