Hi Martin
i made a simple test across msegui & lazarus & wxwidgets to see who's
uses less cpu
the test is very simple : a paintbox & timer , i set the timer
interval to 16ms and in its ontimer event i invalidate the paintbox to
trigger its paint event , in the paint event i draw a rectangle
after execution i maximized the form and see the cpu usage , well the
results was :
msegui : 90% per on cpu core
lazarus : 18%
wxwidgets: 2%
i just wondering why this slowdown from msegui
note : in wxwidgets there is no paintbox so i used wxPanel instead
note2 : the screen resolution is 1680x1050
the program :
type
tmainfo = class(tmainform)
tpaintbox1: tpaintbox;
ttimer1: ttimer; // 16ms
procedure onpaintbox_paint(const sender: twidget; const acanvas: tcanvas);
procedure on_timer(const sender: TObject);
end;
var
mainfo: tmainfo;
implementation
uses
main_mfm;
procedure tmainfo.onpaintbox_paint(const sender: twidget;
const acanvas: tcanvas);
begin
acanvas.fillrect(makerect(30,10,100,50),cl_Red);
end;
procedure tmainfo.on_timer(const sender: TObject);
begin
tpaintbox1.invalidate;
end;
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk