Pcbnew very slow loading pcb (with lots of polygons in OpenGL mode)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
Tomasz Wlostowski |
Bug Description
Using:
Application: kicad
Version: (2018-01-23 revision 975c08c46)-makepkg, release build
Libraries:
wxWidgets 3.0.3
libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.60.0
Curl: 7.54.1
Compiler: GCC 7.1.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
Since a few weeks, Pcbnew has become really slow opening and saving a PCB file. It's worth noting that I've been working with this file for months and never noticed a performance issue before.
Here is a sample project with a (heavy) footprint: a halftone picture of the product designers.
The project takes minutes to save.
I understand that the footprint is big, although I never experienced performance issues before.
summary: |
- Pcbnew very slow saving pcb + Pcbnew very slow loading pcb (with lots of polygons in OpenGL mode) |
Changed in kicad: | |
assignee: | nobody → Tomasz Wlostowski (twlostow) |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
I went back to 413008344 (June) and can confirm a couple aspects of this bug report.
1) Opening
- Starting pcbnew in OpenGL canvas takes ~2x as long with current master as it did with 413008344 when the sample project is loaded. All of the extra time occurs with a completely blank screen in pcbnew (no icons).
- Starting pcbnew with Legacy or Cairo canvas is instant for 413008344 using the sample project.
- Starting pcbnew with Legacy or Cairo canvas in current master is also fast (almost instant)
2) Selecting the silkscreen
- Using opengl, selecting the silkscreen locks pcbnew for about 20s. This is the same in master as well as in 413008344.
- Using cairo or legacy, selecting the silkscreen is instant.
3) Saving the file
- Using 413008344, saving is instant, regardless of canvas.
- Using master, saving takes a _long_ time (minutes), regardless of canvas.
4) Closing pcbnew
- Closing pcbnew with the sample project in current master takes ~30s of completely locked window. In fact, X thinks that the application has crashed and offers to kill it for me. This is without changing the board or saving.
- Closing pcbnew in 413008344 is instant.