Graphics too slow :-(

Istvan Albert ialbert at
Fri Jul 9 20:01:35 CEST 2004

O-Zone wrote:

> i've written a widget that emulate a LED Matrix. All works but drawing in
> too slow. How i can speed-up ?

It looks like you are using 2D lists and a lot of w * h iterations.
You repeat these at least 6 times per update event. Those add up
real fast.

You could probably speed things up considerably by using a single
list of size w*h and indexed accordingly. Then modifying and
copying these list could be done a lot faster, without explicit

But I think the real solution is to do away with iterating w*h times.
Define bigger (and static) display elements, and iterate over
those instead of the window resolution.


More information about the Python-list mailing list