fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(devtools/five): archetype list

Open packfile opened this issue 1 year ago • 4 comments

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

packfile avatar Oct 14 '23 19:10 packfile

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?

BugCode1 avatar Oct 16 '23 12:10 BugCode1

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

packfile avatar Oct 16 '23 18:10 packfile

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?

BugCode1 avatar Oct 16 '23 20:10 BugCode1

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.

blattersturm avatar Oct 19 '23 10:10 blattersturm