I have a problem with the dxdraw.surface.fill taking ~10ms of cpu. During that 10ms my threads dont get any time.

What I have tried is to split it in 10rects and put application.processmessages between. But drawwing rects seems to go much slower.

Is there any fast method that gives time to other threads?

At the moment 5% of messages get ignored due to the filling process being bussy, not even to mention the message delay. For me 1% is acceptable.

thx in advance