18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 18:14:53 +01:00
Files
maj00r 7f42a1642a refactor(render): the section walks of the local lights and of the texture read-ahead in helpers of their own
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.
2026-12-03 03:25:03 +01:00
..
2026-11-09 20:58:02 +01:00
2026-11-09 20:58:02 +01:00
2026-11-17 01:02:52 +01:00