comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Speedup in Object Graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Speedup in Object Graphics [message #29753] Mon, 18 March 2002 14:00
Mark Hadfield is currently offline  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)
Re: Speedup in Object Graphics [message #29754 is a reply to message #29753] Mon, 18 March 2002 09:14 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
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.

> 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.

> Also which one is faster - drawing a scene or drawing several views
> separately?

I always thought that scenes are just containers that loop through draw
calls to their children, and drawing a scene simply spares you several
calls to draw each view separately.
Good luck,
Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Any update on OS X
Next Topic: reading unformatted data into a structure

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:28:08 PDT 2025

Total time taken to generate the page: 0.00530 seconds