Layered Clothing - Due to AutoSkin, changing properties from the Character or their Tool causes Major Performance Issues

Old Abandoned Ticket: https://devforum.roblox.com/t/major-performance-issue-any-changes-to-properties-on-a-character-with-layered-clothing-causes-huge-performance-issues-due-to-autoskin/2777463

Description

At January 3rd I made a Private Bug Report through the old bug reporting way, before the new Bug Reporting System rolled out. At January 8th I received a response, mentioning that I’d hear back and that there would be a new update regarding this issue in a few weeks (from back to that date)

I haven’t heard back, so I am creating a public Bug Report about this.

 

Something is really strange when it comes to the Performance of Layered Clothing. Here specifically it’s AutoSkin.

Please note that the recording software (OBS), has exaggerated the blue lines in the Micro Profiler, but basically yes, these blue lines appear without OBS as well, just a bit more less laggier than in the recording

Re-production Steps

Download this Test Game:
bug_roblox_layered_clothing_2.rbxlx (1.1 MB)

It received some changes compared to the earlier version. I added more Layered Clothing to the Test Avatar.

What to look for:
There’s two Avatars in the Test game, one has Layered Clothing the other one doesn’t. There are buttons near the Test Rigs, that Enable a Client Context Script for the Tool, which starts making it go Rainbow. They both use the same logic.

  • The non-layered-clothing Rig doesn’t lag
  • The Layered Clothing Rig does lag
  1. Enter the Test Game
  2. Experiment with the button
  3. Observe

If you disable AutoSkin, you won’t get this issue.

Expected Result

That Layered Clothing doesn’t lag.

Actual Result

Layered Clothing AutoSkin causes a lag.

 

Is this important?

There was a survey that questioned us why certain games resize every Avatar or why they disable Layered Clothing.

This is evidence, that shows that this is one of the reasons why Layered Clothing is some games may get disabled, or why there’s certain Performance Issues.

It may be evident that if the Client has even more things going on in a game, that this Performance Issue will give similar results like in the OBS Recording.

9 Likes

Hi,

This is a known issue which I believe @LoboTheCzarnian is working on fixing now.

This method is also used maliciously to create LC laggers, where users equip multiple layered clothing items with high amounts of vertices and spam equip/unequip tools, causing extreme lag and crashing servers.

Looking forward to a resolution, but they mentioned it is a complicated system that handles this so it may take a while.

10 Likes

I tested FFlagFixLayeredClothingSpike and I’d have been thinking that it would resolve the issue. Same as it would maybe resolve this one as well Layered clothing causes lag spikes when updating unrelated part properties

 

But that Flag alone doesn’t seem to be it because when it is turned on it breaks the Avatar from the Re-production Steps

 

After checking more, the following flags need to be enabled from what I think:

  • FFlagFixLayeredClothingSpike ?
  • FFlagWrapDeformerContextOutputFileMeshData5
  • FFlagWrapTextureTransferEnabled ?
  • FFlagCleanWrapDeformerSolutionUsage ?
  • FFlagSharedWrapSolution ?

The ones with the question mark are ones I am unsure about if they’re required. And there might be missing ones.

The flag combos are a bit strange, because turning off FFlagFixLayeredClothingSpike still makes the fix work. But maybe not completely.

 

Though, the Rig with the Layered Clothing. The rainbow cube is it moving slower or is it just me that gets that impression?

Based on what I see, I don’t I am able to tell a difference anymore between the performance, it looks fixed. Not sure how deep to dig to analyze if it actually is fixed…

Also, compared to the older screenshot, did the Inspire Jacket change, or did Roblox change something on how Layered Clothing renders at certain graphic levels?

 

https://devforum.roblox.com/t/layered-clothing-lag-spikes-while-resizing/3308981

Regarding the spike from rescaling, not too sure, but it also looks fixed.

But rescaling is broken now. Pointing out that these flags seem to do something really special.

On rescaled avatars, when you re-enable Wrap Deformers the limbs now teleport into each other. But in the Server View the character appears normal, but each individual layered clothing is still at the scale it was at before.

 

 

Oh, maybe I found an issue.

The Lag Spike seems to come back if you ALT + TAB out and in, or something is strange about that, I only ran into that issue once so far, not sure what the spikes were.