Home »
Public Forums »
archive »
Re: Speedup in Object Graphics
Re: Speedup in Object Graphics [message #29753] |
Mon, 18 March 2002 14:00  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
"Pavel A. Romashkin" <pavel_romashkin@hotmail.com> wrote in message
news:3C962091.F7A5C1B1@hotmail.com...
> lyubo wrote:
>>
>> What are the general ways to speed up a program using Object
>> Graphics ?
>
> Get a faster video card, maybe? They are about $60 now.
I second that. Other possibilities: reduce complexity of your graphics
tree; avoid having large numbers of separate objects; reduce
dimensions of your destination object; reduce dimensions and colour
depth of your screen; experiment with alternative representations
(IDLgrImage vs IDLgrSurface to represent a coloured surface, etc).
>> When I run a profiler report I can see that I have to speed up the
>> WIDGET_PROCESS_EVENTS but I have no idea how to do that.
>
> Do you have a huge, nested widget tree? Then it is not really the OG
> problem, it is the tons of events that slow it down.
Maybe. Or perhaps the graphics tree is being redrawn inside a widget
event handler.
In my experience a widget tree has to get quite complicated before it
takes as long to refresh as it does to redraw a simple graphic.
I think you (lyubo) will have to tell us more about what you are doing
before we can help more.
--
Mark Hadfield
m.hadfield@niwa.co.nz Ka puwaha et tai nei
http://katipo.niwa.co.nz/~hadfield Hoea tatou
National Institute for Water and Atmospheric Research (NIWA)
|
|
|
Current Time: Sat Oct 11 08:27:29 PDT 2025
Total time taken to generate the page: 1.12111 seconds