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