Skip to content

Common - Improve fnc_isTerrainObject#1816

Merged
PabstMirror merged 2 commits intoCBATeam:masterfrom
DartRuffian:improve-isTerrainObject
Mar 24, 2026
Merged

Common - Improve fnc_isTerrainObject#1816
PabstMirror merged 2 commits intoCBATeam:masterfrom
DartRuffian:improve-isTerrainObject

Conversation

@DartRuffian
Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • Improve fnc_isTerrainObject by checking its net id instead of using nearestTerrainObjects.
    • Saved ~4ms @ 10k iterations:
player call CBA_fnc_isTerrainObject; // Execution Time: 0.0041 ms  |  Cycles: 10000/10000  |  Total Time: 41 ms
player call ace_common_fnc_isTerrainObject; // Execution Time: 0.0037 ms  |  Cycles: 10000/10000  |  Total Time: 37 ms

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
@PabstMirror PabstMirror added this to the 3.18.6 milestone Mar 24, 2026
@PabstMirror PabstMirror merged commit 510e207 into CBATeam:master Mar 24, 2026
3 checks passed
PabstMirror added a commit that referenced this pull request Mar 27, 2026
…ject"

This reverts commit 510e207, reversing
changes made to 899d18b.
PabstMirror added a commit that referenced this pull request Mar 27, 2026
Revert "Merge pull request #1816 from DartRuffian/improve-isTerrainOb…
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.

2 participants