Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-02-15 16:09:19 +0300
committerTon Roosendaal <ton@blender.org>2009-02-15 16:09:19 +0300
commit66d3dcf150503b860cf6e17d0ad646508eacc27e (patch)
treea059b6c3ea5c1faeff7fed8fdf2d721c7379950c /source/blender/windowmanager
parent50f789e9e8a379975e3d2708e13b99808615ee5c (diff)
2.5
Anim playback now uses "Sync" option, skipping frames to match real time (as set by the frames/sec button). This is a quicky for tests with audio. Note that the real time in seconds to update sound to in ED_update_for_newframe() would be: (scene->r.cfra / FPS) + screen->animtimer->duration Also this can have a slight inaccuracy, the time between the timer handler and the ED_update_for_newframe() notifier is not known, but in general nearly zero. A better implementation is possible, but thats for later. :)
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index a6eba6df0e6..dbd0b8f2205 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -528,7 +528,8 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr private)
/* This timer system only gives maximum 1 timer event per redraw cycle,
to prevent queues to get overloaded.
Timer handlers should check for delta to decide if they just
- update, or follow real time
+ update, or follow real time.
+ Timer handlers can also set duration to match frames passed */
*/
static int wm_window_timer(const bContext *C)
{