no performance in window-region

Hi!

I wrote a custom widget with its own draw routine. The problem I had:
everytime I placed my widget in a normal PtWindow, the drawing seemed to
be very slow (i.e. flicker). But if my widget creates its own region as
child of root-region (rid=Ph_ROOT_RID) there’s no more flicker at all.
This aproach isn’t acceptable, because I have to write my own event-loop
in order get the normal widget’s behaviour…

Any idea with this window-region?

Replied via email.

Regards,
Dave B.

“mirtch” <mirtch@gmx.net> wrote in message
news:b7gbuc$1sc$1@tiger.openqnx.com

Hi!

I wrote a custom widget with its own draw routine. The problem I had:
everytime I placed my widget in a normal PtWindow, the drawing seemed to
be very slow (i.e. flicker). But if my widget creates its own region as
child of root-region (rid=Ph_ROOT_RID) there’s no more flicker at all.
This aproach isn’t acceptable, because I have to write my own event-loop
in order get the normal widget’s behaviour…

Any idea with this window-region?
\

Can you post the reply please.

“Dave Boltz” <dboltz@qnx.com> wrote in message
news:b7kbva$k1s$1@inn.qnx.com

Replied via email.

Regards,
Dave B.

“mirtch” <> mirtch@gmx.net> > wrote in message
news:b7gbuc$1sc$> 1@tiger.openqnx.com> …
Hi!

I wrote a custom widget with its own draw routine. The problem I had:
everytime I placed my widget in a normal PtWindow, the drawing seemed to
be very slow (i.e. flicker). But if my widget creates its own region as
child of root-region (rid=Ph_ROOT_RID) there’s no more flicker at all.
This aproach isn’t acceptable, because I have to write my own event-loop
in order get the normal widget’s behaviour…

Any idea with this window-region?


\

Rejean Senecal wrote:

Can you post the reply please.

“Dave Boltz” <> dboltz@qnx.com> > wrote in message
news:b7kbva$k1s$> 1@inn.qnx.com> …

Replied via email.

Regards,
Dave B.

“mirtch” <> mirtch@gmx.net> > wrote in message
news:b7gbuc$1sc$> 1@tiger.openqnx.com> …

Hi!

I wrote a custom widget with its own draw routine. The problem I had:
everytime I placed my widget in a normal PtWindow, the drawing seemed to
be very slow (i.e. flicker). But if my widget creates its own region as
child of root-region (rid=Ph_ROOT_RID) there’s no more flicker at all.
This aproach isn’t acceptable, because I have to write my own event-loop
in order get the normal widget’s behaviour…

Any idea with this window-region?





\

sorry, i can’t find original reply but as i can remember, dave supposed
there’s some transparency caused by region’s sense/opacity flags. but
that wasn’t the problem

now i just discovered the true bottleneck in my performance-problem: the
drawing of images in widget draw routines leads to terrible flicker
effects regardless in which way you draw them (shared memory or not).
so, i dont’ know what i’m doing wrong …

regards,
mirtch