-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
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 |
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? |
It's a limit for archetypes loaded at the same time.
If you load the type files at the same time anyway, this won't be helped if split. |
There was a problem hiding this 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.
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:
Example from a heavily modded server with addon maps, vehicles and weapons: