Add some tracking for the lightmapper's dirty state


Added some more tracking of the lightmapper's dirty state to avoid
re-setting it on each frame, which includes a full string compare each
time of the same string over and over again.
This code path was showing up during profiling when there's a lot of
view3ds active at the same time.

Pick-to: 6.11
Change-Id: I57a0a4dad40b4e519457fe8bf19100aaa52cdf51
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
commita6d1bb2f1aa05c9278003af0e43d3fe61c2fd7af
parentd8dfb412e8440bf392abbf415f526f5e2fb0762f
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeMon, 4 May 2026 16:55:53 +0000