Fix #20250: smooth view poor performance compared to 2.49. Increased the

frame rate of smooth view from 30 to 100, makes it looks smoother when it
can redraw at that speed, otherwise will simply drop frames anyway.
This commit is contained in:
Brecht Van Lommel 2009-12-14 21:31:36 +00:00
parent e7b4d36fd6
commit fd70334242

@ -297,7 +297,7 @@ void smooth_view(bContext *C, Object *oldcamera, Object *camera, float *ofs, flo
if(rv3d->smooth_timer)
WM_event_remove_timer(CTX_wm_manager(C), CTX_wm_window(C), rv3d->smooth_timer);
/* TIMER1 is hardcoded in keymap */
rv3d->smooth_timer= WM_event_add_timer(CTX_wm_manager(C), CTX_wm_window(C), TIMER1, 1.0/30.0); /* max 30 frs/sec */
rv3d->smooth_timer= WM_event_add_timer(CTX_wm_manager(C), CTX_wm_window(C), TIMER1, 1.0/100.0); /* max 30 frs/sec */
return;
}