gtk_progress_bar_set_fraction is a cpu pig, why??
- From: Dave Andruczyk <djandruczyk yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_progress_bar_set_fraction is a cpu pig, why??
- Date: Sun, 18 Jul 2004 15:12:35 -0700 (PDT)
I have an app that uses (GTK+-2.4.1) gtk_progress_bars to display information
in a graphical way, updating more than a few each time new data comes in
(20times/sec) results in abnormally high processor usage for my app and X.
I've traced it with a profiler, and the gtk_progress_bar_set_fraction() is the
call that causes all the trouble. How does one enable GTK to be compiled with
profiling enabled so I can find out why the hell this is so inefficent?
I have other gtk apps (gtk-1.2 actually) that use
gdk_draw_points/lines/rectangles that draw 50,000 points/lines per second with
only about 5% X11 usage and 2% app usage.
updating a progressbar should NOT be such a pig in resource usage...
=====
Dave J. Andruczyk
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]