Files
fs2open.github.com/code
Goober5000andClaude Opus 5.5 bb2b2f2869 Remove dead modelinterp code (#7782)
* Remove dead BSP-parsing and software-interp code

model_interp_defpoints has had no callers since model_interp_sub was
removed (1ef7688fa), and the parse_bsp and find_tri_counts chains have
had no entry point since bsp_polygon_data replaced them (c62037235).
Remove them, along with the globals that only they read: tri_count,
model_radius, GEOMETRY_NOISE, Interp_flags, Interp_lights,
Interp_thrust_scale_subobj and Interp_warp_scale_*.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* Remove the interp-data allocator; give the BE swap path its own vertex list

On big-endian builds, swap_bsp_defpoints was the only remaining caller
of model_allocate_interp_data, and swap_bsp_flatpoly the only reader of
the buffers it allocated (Interp_verts).  Pass a local vertex list
through the BSP swap functions instead, and remove the allocator, the
deallocator, and the Interp_* buffers and lighting globals it managed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* Remove write-only interp state and the functions that only set it

The thruster, outline, detail-lock, insignia, forced-bitmap and box-scale
globals in modelinterp.cpp are written but never read; rendering takes
these from model_render_params instead.  Remove them, along with
model_set_thrust and model_set_outline_color (no callers),
model_set_detail_level (its calls sit beside the real
set_detail_level_lock), interp_clear_instance, and the unused
modelstats_num_sortnorms and modelstats_num_boxes counters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Drop the unused big-endian flat-poly recompute

swap_bsp_flatpoly recomputed the center and radius of pre-2003 flat
polygons, but nothing reads those fields on any platform: collision
reads the normal and vertices, bsp_polygon_data reads the count, color
and vertices, and flash_ball skips flat polygons.  Remove it, along with
the vertex list that only it needed, so swap_bsp_data is back to its
original shape with only the dead code deleted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* remove unused Interp_detail_level

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-11-12 14:58:49 -05:00
..
2026-04-30 00:35:19 -04:00
2026-11-05 20:56:36 +01:00
2026-11-02 22:40:54 -05:00
2026-07-23 15:52:27 +02:00
2018-07-15 19:37:24 +02:00
2026-11-05 20:56:36 +01:00
2026-07-23 15:52:27 +02:00
2026-11-12 14:58:49 -05:00
2025-08-18 11:59:22 -04:00
2026-09-12 03:57:27 +00:00
2026-05-12 11:31:20 -04:00
2026-04-30 00:35:19 -04:00
2026-11-02 22:40:54 -05:00
2026-09-08 10:48:13 -04:00
2026-07-20 23:04:56 -04:00
2026-07-23 15:52:27 +02:00
2026-11-05 20:56:36 +01:00
2016-07-22 12:07:19 +02:00