Skip to content

particle fixes and subsystem speedup#7271

Merged
Goober5000 merged 1 commit intoscp-fs2open:masterfrom
Goober5000:particle_fixes
Mar 9, 2026
Merged

particle fixes and subsystem speedup#7271
Goober5000 merged 1 commit intoscp-fs2open:masterfrom
Goober5000:particle_fixes

Conversation

@Goober5000
Copy link
Contributor

  1. Modify ship_get_subsys_for_submodel to use the subsystem indexer. This changes the operation from O(n) to O(1) and also allows the function to work with turret gun barrels.
  2. Add an isValid check to ParticleSource::finishCreation to prevent unknown state from being accessed if the source is not valid.
  3. Tweak EffectHostTurret and make sure it works for fighter beams.

This should fix all of the beam particle issues discovered by Star Fox: Event Horizon.

@Goober5000 Goober5000 requested a review from BMagnu March 8, 2026 21:18
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. Point Release Candidate An already merged bugfix that may be merged into a previous stable version labels Mar 8, 2026
@Goober5000 Goober5000 force-pushed the particle_fixes branch 2 times, most recently from d0f7a0b to d94e869 Compare March 8, 2026 22:43
1. Modify `ship_get_subsys_for_submodel` to use the subsystem indexer.  This changes the operation from O(n) to O(1) and also allows the function to work with turret gun barrels.
2. Add an `isValid` check to `ParticleSource::finishCreation` to prevent unknown state from being accessed if the source is not valid.
3. Tweak `EffectHostTurret` and make sure it works for fighter beams.
4. Prevent `createOnTurret` from running on submodels that are not turrets.
@Goober5000 Goober5000 added this to the Release 25.0.1 milestone Mar 9, 2026
@Goober5000 Goober5000 merged commit fbf5870 into scp-fs2open:master Mar 9, 2026
20 checks passed
@Goober5000 Goober5000 deleted the particle_fixes branch March 9, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. Point Release Candidate An already merged bugfix that may be merged into a previous stable version Requested by Active Mod A feature request that has been requested by a mod that is actively in development.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants