How to reduce flicker ?

I do some draw on a PtRaw widget.When I redraw it at a high frequency, it
flicker very much ,how can I reduce this flicker?

Waiting for your help.