Timeline: Limit fequency of project loading progress updates.

This drastically improves project load times.
This commit is contained in:
Jonathan Moore Liles 2012-12-10 17:21:28 -08:00
parent 63d6da1f2f
commit e0b9c34f45
1 changed files with 10 additions and 4 deletions

View File

@ -939,14 +939,20 @@ else if ( 0 == p )
progress_group->hide(); progress_group->hide();
} }
static int oldp;
static char pat[10]; static char pat[10];
nsm_send_progress( nsm, p / 100.0f ); if ( p != oldp )
update_progress( progress, pat, p ); {
oldp = p;
nsm_send_progress( nsm, p / 100.0f );
update_progress( progress, pat, p );
progress->redraw(); progress->redraw();
Fl::check();} {} Fl::check();
}
} {}
} }
Function {show_help_dialog( const char *file )} {open private return_type {static void} Function {show_help_dialog( const char *file )} {open private return_type {static void}
} { } {