Pcbnew lags down when track hits arc board edge

Description

When dragging or routing with router set to PnS/Walk around mode, hitting the arc board edge graphics causes Pcbnew to stop responding for some time.

Steps to reproduce

  1. Open a new Pcbnew window
  2. Draw arcs on Edge.Cuts layer
  3. Place tracks on the board and hit the edge graphics with tracks.

KiCad Version


Version: (6.0.1), release build

Libraries:
	wxWidgets 3.1.5
	libcurl/7.78.0-DEV Schannel zlib/1.2.11

Platform: Windows 10 (build 19041), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Jan 15 2022 13:36:27
	wxWidgets: 3.1.5 (wchar_t,wx containers)
	Boost: 1.76.0
	OCC: 7.5.0
	Curl: 7.78.0-DEV
	ngspice: 35
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON