Re: Problem with a TreeView - speed
- From: Murray Cumming <murrayc murrayc com>
- To: Dimitri Holz <d holz innoventis de>
- Cc: gtkmm-list gnome org
- Subject: Re: Problem with a TreeView - speed
- Date: Mon, 16 Mar 2009 13:25:21 +0100
On Mon, 2009-03-16 at 11:26 +0100, Dimitri Holz wrote:
> Hello,
>
> I'm trying to develope an opensource project, that will be run on win32
> and linux. It will be application like a CAN-Monitor -> CAN = Controller
> Area Network, that means It have to show CAN-Messages that are passing
> the network. For this are other applications using the same widget as
> TreeView and I'm trying it now too. But my problem is: It is possible
> that 8888 messages per second will going through CAN-Network and my
> Gtk::TreeView is able to adopt only 4000 messages / s, when there are
> more than the gui don't update itself and my CPU-Load is by 100%!
There is no sense in trying to update any widget thousands of times per
second. No human could perceive it, even if the graphics card and
monitor could show it. I suggest that you instead show the current state
via a timeout callback that runs every few seconds.
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/chapter-chapter-timeouts.html
> Than I
> made a test: on starting gui i had create 100000 CAN-messages and
> entered them to TreeView, after 10 seconds they were inside TreeView (I
> could see them), but the next two or three minutes the CPU-Load was by
> 100% and I couldn't move my application-window or doing something else
> -> my TreeView was anything doing in the background. What was the
> TreeView doing in the background and how can I improve the "speed" of it?
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]