You have a typo there... It is not canavs, but canvas
路路路
-----Original message-----
From: Ralf Werner
Sent: 04.03.2013, 20:12
To: wxpython-users@googlegroups.com
Subject: [wxPython-users] Pan operation with many objects is very slow
Hello,
im programming a viewer application for Gerber Files.
A Gerber File describes an image of a printed circuit board.
One Gerber File one image one layer. A printed circuit board
can have multiple layers. So i have to read and display
multiple files.
Here comes my problem. I have to draw many objects to an wx.DC.
My currently biggest file has 5500 objects (circles, lines, rectangles).
This is only one layer. I have to read and display 6 layers.
I have implemented a Pan Operation wich is very slow.
Set primitives_count in wxWindowsGerberCanavs.MakeNewData to 20.
Panning is a smooth operation. Ok, with some flicker. But thats
another problem.
Set primitives_count in wxWindowsGerberCanavs.MakeNewData to 2000.
Panning is no more smooth.
My Question is how can i optimize my code, so that pan is a smooth
operation with so many objects.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.