Gerbview is very slow with 45 degree hatch patterns.
Description
When a zone is filled with a 45 degree hatch pattern, then loading those layers in Gebview is sometimes very slow. This was reported today on the user forum: https://forum.kicad.info/t/inner-layer-1-doesnt-load-on-gerber-viewer-kicad-6-but-does-on-gerbview-kicad-5/35521
I have verified this by creating a test project and the F.Cu layer takes 25s to load on my relatively new PC (AMD 5600G)
My test project is just a resistor and connector on a PCB:
Steps to reproduce
Open the slow_gerber-F_Cu.gbr gerber layer in Gerbview.
The user who reported this on the user forum (gpapas) discovered that loading time in gerbview is normal if a small keepout zone is added to the top of the PCB. I have verified this also by opening the gerber file he has posted on the forum.
KiCad Version
Description
Steps to reproduce
KiCad Version
Application: KiCad Gerber Viewer
Version: 6.0.4-6f826c9f35~116~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
Platform: Linux 5.13.0-27-generic x86_64, 64 bit, Little endian, wxGTK, xfce, x11
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.81.0
ngspice: 31
Compiler: GCC 9.4.0 with C++ ABI 1013
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON