Reduce graphic processing requirement for pulse bar
Increase sleep time to decrease pulse bar update frequency. Debian Bug 499193 - gparted: 100% cpu usage Debian Bug 519764 - gparted: Lots of animation makes use over SSH X-tunnel slow
This commit is contained in:
parent
08357b6e81
commit
7c5b5edaef
|
@ -222,7 +222,7 @@ void Dialog_Progress::on_signal_show()
|
|||
while ( Gtk::Main::events_pending() )
|
||||
Gtk::Main::iteration();
|
||||
gdk_threads_leave();
|
||||
usleep( 10000 ) ;
|
||||
usleep( 100000 ) ;
|
||||
gdk_threads_enter();
|
||||
}
|
||||
|
||||
|
|
|
@ -618,7 +618,7 @@ void Win_GParted::show_pulsebar( const Glib::ustring & status_message )
|
|||
while ( Gtk::Main::events_pending() )
|
||||
Gtk::Main::iteration();
|
||||
gdk_threads_leave();
|
||||
usleep( 10000 );
|
||||
usleep( 100000 );
|
||||
gdk_threads_enter();
|
||||
Glib::ustring tmp_msg = gparted_core .get_thread_status_message() ;
|
||||
if ( tmp_msg != "" )
|
||||
|
|
Loading…
Reference in New Issue