octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backend('fltk') use large amount CPU resources on MinGW


From: Michael Goffioul
Subject: Re: backend('fltk') use large amount CPU resources on MinGW
Date: Sat, 25 Dec 2010 09:28:07 +0100

When initializing the FLTK backend, a readline idle event hook is installed
to process FLTK events synchronously with octave.This event hook is called
every 100ms IIRC. This is the only thing I can imagine can start eating CPU
cycles, although when there are no events to process, the load of such
function should be rather low.

What you can try is to disable FLTK events processing in __fltk_redraw__
(Fl::check()) to see whether the problem is coming from FLTK or from
octave.

Michael.


2010/12/25 Tatsuro MATSUOKA <address@hidden>:
> Hello
>
> I have carried out dbstep trace.
>
> octave:2> backend('fltk')
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 33
> 33:   name = "";
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 34
> 34:   hlist = [];
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 36
> 36:   if (nargin == 1)
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 36
> 36:   if (nargin == 1)
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 37
> 37:     if (ischar (varargin{1}))
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 37
> 37:     if (ischar (varargin{1}))
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 38
> 38:       name = varargin{1};
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 55
> 55:   if (! any (strcmp (available_backends (), name)))
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 55
> 55:   if (! any (strcmp (available_backends (), name)))
> debug> dbstep
> stopped in C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\backend.m at 
> line 56
> 56:     feval (["__init_", name, "__"]);
> debug> name
> name = fltk
>
> From feval (["__init_", name, "__"]);, the not small amount of CPU resources 
> are used.
>
> Regards
>
> Tatsuro
> --- Tatsuro MATSUOKA  wrote:
>
>> Hello
>>
>> When I execute
>>
>> >>backend('fltk')
>>
>> the amount 55-80 % CPU resources are used on my old computer (Win XP 
>> Celeron-M 1.2 GHz) on
>> recent
>> development source.  The platform is Windows
>>
>> The above happens even if no plot was carried out.
>>
>> I cannot
>> Of course, for recent powerful computers this is not so serious.
>> However, considering of use of netbook, this might not be desirable.
>>
>> Why only the backend('fltk') (without plots) command use large amount of the 
>> CPU resources?
>> Is this specific to the windows.
>>
>> Octave 3.2.4 has an experimental version fltk backend.  In the case,
>>
>> >>backend('fltk')
>>
>> does not use so much CPU resources.
>>
>> Anyway I will look into this using debug facilities of the octave.
>>
>> If someone give me suggestions, it will be grateful.
>>
>> Regards
>>
>> Tatsuro
>>
>>
>>
>>
>> --------------------------------------
>> Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
>> http://pr.mail.yahoo.co.jp/ie8/
>>
>
>
> --------------------------------------
> Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
> http://pr.mail.yahoo.co.jp/ie8/
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]