Periodic mikro-freeze on Debian

Description

The interface (EESchem and PCBNew) freezes about every second for a short time which makes working quite cumbersome. This is new in v9 and happens with Wayland and X11. Best seen in Video:

simplescreenrecorder-2025-03-11_12.27.20

(I pan constantly in the video, looks a bit stuttery because of frame rate)

Maybe related to #20060 (closed), but happens no matter if the search field is open or not.

Edit: Does not happen in empty project, seems to be only the case with projects converted from v8. Machine does not peak in CPU or RAM load.

simplescreenrecorder-2025-03-11_13.00.18

Steps to reproduce

KiCad Version

Application: KiCad x86_64 on x86_64

Version: 9.0.0+1, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 6.0.0
	FontConfig 2.14.1
	libcurl/7.88.1 OpenSSL/3.0.15 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13

Platform: Debian GNU/Linux 12 (bookworm), 64 bit, Little endian, wxGTK, X11, KDE, x11
OpenGL: NVIDIA Corporation, NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2, 4.6.0 NVIDIA 535.216.01

Build Info:
	Date: Mar  1 2025 11:58:55
	wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.6.3
	Curl: 7.88.1
	ngspice: 39
	Compiler: GCC 12.2.0 with C++ ABI 1017
	KICAD_IPC_API=ON

Locale: 
	Lang: en_US
	Enc: UTF-8
	Num: 1.234,5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)

Edited by Enrico Koeck