mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 17:04:52 +01:00
7f42a1642a
Sonar's quality gate of #603 failed on its maintainability rating: the loops over the sections changed there for the unbounded region sit in two functions of a cognitive complexity of 51 (local_lights::gather) and 73 (opengl46_renderer::Update_Texture_Prefetch). The walk of the lights goes to gather_scenery() and gather_section(), the read-ahead to Prefetch_Cell(), Prefetch_Instances(), Prefetch_Vehicles(), Prefetch_Material() and Prefetch_Model(), the lambdas becoming member functions. The code moved, it didn't change: the same sections, cells, instances and textures in the same order. Checked in the game (--test 120 s, seed 1): the physics logs of td.scn and Glinojeck.scn the same bit for bit.