Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow turning Missile terrain height checks off #13628

Merged
merged 2 commits into from
Jul 15, 2017

Conversation

reaperrr
Copy link
Contributor

@reaperrr reaperrr commented Jul 13, 2017

And do so by default.

At second glance this was easier than expected, by just preventing all height-related helpers from triggering if !TerrainHeightAware.
Couldn't spot any regressions so far.

Closes #13616.

Debug builds on my system (Win7x64, i5-2500 @ 3.2GHz) show ~0.015ms savings per Dragon missile in RA.

@reaperrr
Copy link
Contributor Author

I know we've been scope-creeping the playtest a lot already so I won't insist on it, but for all mods without height levels - including our shipping mods - the savings in large battles can be rather significant, so if we can get this reviewed and mergable fast enough, I think it should go in. If the playtest turns up any regressions that were overlooked during review, we can still revert it in time for the release.

@abcdefg30
Copy link
Member

Needs a rebase.

This saves a good deal of performance for mods with no real height levels, including RA, TD and D2k.
@reaperrr
Copy link
Contributor Author

Rebased.

Copy link
Contributor

@GraionDilach GraionDilach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM then.

@reaperrr reaperrr merged commit ace353c into OpenRA:bleed Jul 15, 2017
@reaperrr reaperrr deleted the MissileTerrainToggle branch July 23, 2017 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants