fivem
fivem copied to clipboard
feat(devtools/five): archetype list
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:
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?
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?
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.