citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.57k stars 2.11k forks source link

Hitches with large clothing asset IFRs #1951

Open ghost opened 1 year ago

ghost commented 1 year ago

Players on my server are having major issues with hitches when entering areas with groups of players, I've done some testing and found that when IFRs for clothing assets, in particular, are being requested in bulk, the game freezes. The more requested assets, the longer the freeze.

I was wondering if this is something that can be fixed, potentially by staggering large asset requests so they don't cause long freezes, or via some other complex process, such as requesting different types of clothing components at different proximities.

OR

If it's an issue purely with the assets themselves, which would be resolved by removing them or decreasing their file size.

Clip: https://cdn.discordapp.com/attachments/1000172223757299824/1098377025577812078/Untitled_video_1.mp4

blattersturm commented 1 year ago

Instead of a 'clip' with no reproduction steps, can you provide a .etl trace at least?

Also, since a common cause for this also is VRAM exhaustion (which can't be fixed with client changes), how much VRAM does the user have here and what's the 'extended budget scale' set to?

ghost commented 1 year ago

Yeah sorry I'll get you a trace tomorrow as soon as I figure out how to generate one. I wasn't entirely sure what might be useful for you guys. Is there any other information I can provide that would be helpful?

gottfriedleibniz commented 9 months ago

For generating an ETW trace, see https://support.cfx.re/hc/en-us/articles/8366604193436-Creating-an-ETW-trace. Also see related conversation in Discord: https://discord.com/channels/192358910387159041/892141345987235840/1129446662352412702