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

tweak(data/five): increase audio occlusion related pool sizes #2298

Closed
wants to merge 1 commit into from

Conversation

nikez
Copy link
Contributor

@nikez nikez commented Dec 6, 2023

Goal of this PR

When linking multiple large interiors together, the amount of path nodes, portal infos and portal entities grows exponentially per interior linked. To allow for this, we need to increase the pool size.

How is this PR achieving the goal

By increasing the following pools;
OcclusionPathNode currently allocates 82 KB, new size would be 312 KB
OcclusionPortalInfo currently allocates 42 KB, new size would be 960 KB
OcclusionPortalEntity currently allocates 8 KB, new size would be 93 KB

So this would increase usage by 1366 KB, which is a reasonable increase for gained possibilities.

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: 2372, 2802

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

OcclusionPathNode currently allocates 82 KB, new size would be 312 KB
OcclusionPortalInfo currently allocates 42 KB, new size would be 960 KB
OcclusionPortalEntity currently allocates 8 KB, new size would be 93 KB

So this would increase usage by 1366 KB, which is a reasonable increase for gained possibilities.

When linking multiple large interiors together, the amount of path nodes, portal infos and portal entities grows exponentially per interior linked.

Co-authored-by: z3t4s <[email protected]>
Co-authored-by: okqut <[email protected]>
@nihonium-cfx nihonium-cfx added the ready-to-merge This PR is enqueued for merging label Dec 7, 2023
@nihonium-cfx
Copy link
Contributor

Merged in 80f9e4a

@nikez nikez deleted the tweak/pools branch December 11, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants