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

Home » Public Forums » archive » Re: Multi Planar Viewer
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Multi Planar Viewer [message #50511] Wed, 04 October 2006 20:17 Go to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
> The message sending is very fast. The image re-draw is
> relatively slow

Indeed, it seems that too many calls to IDLgrWindow::draw is the
bottleneck today.

One thing that I've found really handy about OO is that my rendering
classes report the redraw time. For this particular application I have
a redraw time of around 200ms. I guess this makes messaging semantics
somewhat irrelevant.

My speed problem is definately too many redraws. I just implemented a
"redraw flag". A call to ::redaw just flips a flag. My event processing
routine checks for flipped flags at each iteration of the event loop,
which guaruntees that there will be only one redraw per widget_draw per
event.

I consider this solution a bit of a hack, because I should be able to
program visualisations such that ::redraw is only called when it is
absolutely necessary.

I'm still squeamish about messaging between visualisations. I've got 14
visualisations with various interdependancies. A single message could
trigger 2^13 messages if every dependancy was registered. I guess
that's a *good* reason not to use iTools :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multi Planar Viewer
Next Topic: Use Identifiers or Keywords

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

Current Time: Fri Oct 10 14:14:49 PDT 2025

Total time taken to generate the page: 0.78957 seconds