Performance regression when moving footprints

Description

In old builds, moving footprints didn't reduce the framerate much, but in recent builds, the framerate drops noticeably.

Profiler info

image

Steps to reproduce

  1. Select some footprints
  2. Move them around and see reduced framerate

KiCad Version

Application: KiCad PCB Editor (64-bit)

Version: (6.99.0-4464-g308576b78d-dirty), release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 4.2.0
	FontConfig 2.14.0
	libcurl/7.83.1-DEV Schannel zlib/1.2.12

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

Build Info:
	Date: Nov 25 2022 09:34:12
	wxWidgets: 3.2.1 (wchar_t,wx containers)
	Boost: 1.79.0
	OCC: 7.6.0
	Curl: 7.83.1-DEV
	Compiler: Visual C++ 1933 without C++ ABI

Build settings:
	KICAD_SPICE=OFF