3D viewer performance regression from 5.1.10 to 5.99
Description
I am experiencing a major performance regression when rotating designs in the 3D viewer in KiCad 5.99.
My platform is Fedora 34, Intel i7-7600U / HD Graphics 620. The KiCad build is the nightly development build referenced here: https://www.kicad.org/download/fedora/
Steps to reproduce
Load e.g. the HackRF One or the MNT Reform2 Motherboard project referenced here, open the 3D viewer, and rotate the design: https://gitlab.com/kicad/code/kicad/-/wikis/Test-Boards#kicad-projects
Rotating the designs is fast and smooth in 5.1, and slow and choppy in 5.99. This even though most components are not rendered in 5.99 (no automatic conversion of the entire project).
Disabling everything under OpenGL Rendering Options (e.g. Anti-aliasing) does not seem to make much difference.
KiCad Version
Application: KiCad 3D Viewer
Version: 5.99.0-1.20210623git1d6ad4a.fc34, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.76.1 OpenSSL/1.1.1k-fips zlib/1.2.11 brotli/1.0.9 libidn2/2.3.1 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.9.5/openssl/zlib nghttp2/1.43.0
Platform: Linux 5.12.9-300.fc34.x86_64 x86_64, 64 bit, Little endian, wxGTK, cinnamon, x11
Build Info:
Date: Jun 23 2021 17:17:52
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.75.0
OCC: 7.5.0
Curl: 7.76.1
ngspice: 34
Compiler: GCC 11.1.1 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON