Wish: Reduce cpu usage of Pcbnew with Modern canvas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Moving any object but graphical lines makes Pcbnew use a lot of cpu resources.
I previously reported 1778321 and Tomasz reduced the cpu load when moving graphical lines avoiding the calculation of ratsnets. However moving vias without a net or footprints without pads also produce high cpu usage and moving graphical lines still use a lot of cpu.
The high cpu usage is annoying when working in a laptop as the fan can be spinning at high speed for periods of time when working on a board. It also could increase the battery drain.
I've attached a simple test project.
The high cpu usage is also present in Windows 10 with same machine.
Application: kicad
Version: (5.0.0-rc3-dev), release build
Libraries:
wxWidgets 3.0.4
libcurl/7.60.0 GnuTLS/3.5.18 zlib/1.2.11 libidn2/2.0.4 libpsl/0.20.2 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.32.0 librtmp/2.3
Platform: Linux 4.16.0-2-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.62.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.60.0
Compiler: GCC 7.3.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=OFF
Changed in kicad: | |
status: | New → Opinion |
Changed in kicad: | |
status: | Opinion → Fix Committed |
milestone: | none → 5.1.0 |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
I've attached a video showing the CPU load when moving objects.
Maybe something is wrong with my hardware, at least it's not OS dependent.
If this is the expected CPU load for such operations then I'm fine with it.