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

Frag - only run addPfhRound on ammo that will frag (for master) #3129

Merged
merged 2 commits into from
Jan 20, 2016

Conversation

PabstMirror
Copy link
Contributor

Redo #3100 for master

If spall is not enabled (default) then calculate which ammo types will
actually cause a frag event, cache and then only track those.

before: (#2): 0.0883651ms - CODE: {_this call ace_frag_fnc_fired}
after: (#2): 0.0179289ms - CODE: {_this call ace_frag_fnc_fired}

More importantly this skips running frag simulation (tracking bullet position in a PFEH) for rounds that will never trigger a frag event.

Adds a ACE_HashLocation to CfgLocationTypes to common that should never be visible on the map (will still put it @ -10000, -10000)

If spall is not enabled (default) then calculate which ammo types will
actually cause a frag event, cache and then only track those.
@PabstMirror PabstMirror added the kind/cleanup Release Notes: **CHANGED:** label Jan 7, 2016
@PabstMirror PabstMirror added this to the 3.5.0 milestone Jan 7, 2016
@nicolasbadano
Copy link
Contributor

👍 for merging this. I'd like to use the ACE_HashLocation on #3082

PabstMirror added a commit that referenced this pull request Jan 20, 2016
Frag - only run addPfhRound on ammo that will frag (for master)
@PabstMirror PabstMirror merged commit abb01e0 into master Jan 20, 2016
@PabstMirror PabstMirror deleted the frag-cacheIfWillFrag branch January 20, 2016 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants