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

feat(devtools/five): archetype list #2240

Closed
wants to merge 1 commit into from
Closed

feat(devtools/five): archetype list #2240

wants to merge 1 commit into from

Conversation

packfile
Copy link
Contributor

Adds a tool to view statistics related to loaded archetypes, this can be used by server developers to help diagnose one of the causes of LOD/SLODs displaying (aka ‘playdough’), as mentioned in https://forum.cfx.re/t/too-many-archetypes-leading-to-lod-slods-displaying.

The UI displays the distribution of archetypes across different model types (base, vehicle, weapon, ped, etc) to guide where a developer should look to resolving the issue. Also, the names of loaded YTYPs and their contribution towards the overall count are included, so one can see what content is problematic or unnecessarily loaded (looking at those that glob everything with a DLC_ITYP_REQUEST).

Example from an empty vanilla server:
FiveM_b2545_GameProcess_H2PU2BIe4j

Example from a heavily modded server with addon maps, vehicles and weapons:
image

@BugCode1
Copy link

So, is this problem related to the limitation of the number of archetypes? And if their amount is full 100%, how can this problem be solved?

@packfile
Copy link
Contributor Author

So, is this problem related to the limitation of the number of archetypes? And if their amount is full 100%, how can this problem be solved?

Not necessarily, there are other ways to cause similar behaviour (notably, issues arising from duplicate archetype definitions); the linked forum post and related topics have more in depth discussion on this

@BugCode1
Copy link

It is true. But there is no exact solution to solve this problem anywhere, and the question is, is this a general limit for archetypes or can this problem be solved by separating ytyps into several ytyps or creating several different resources for each ytyp?

@blattersturm
Copy link
Contributor

blattersturm commented Oct 19, 2023

is this a general limit for archetypes

It's a limit for archetypes loaded at the same time.

can this problem be solved by separating ytyps into several ytyps or creating several different resources for each ytyp?

If you load the type files at the same time anyway, this won't be helped if split.

Copy link
Contributor

@Disquse Disquse left a comment

Choose a reason for hiding this comment

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

Looks good, tested a bit, work as intended.

@nihonium-cfx nihonium-cfx added needs manual verification PRs that need manual verification by testing the change locally and removed needs manual verification PRs that need manual verification by testing the change locally labels Jan 11, 2024
@packfile packfile closed this Apr 21, 2024
@packfile packfile deleted the archetype-viewer branch April 21, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants