# Change ES3\_1 bone number limit to 256

**URL:** <https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569>\
**Category:** Rendering\
**Tags:** es31, unreal-engine, Rendering, question\
**Created:** [August 29, 2019, 9:33am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569 "2019-08-29T09:33:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6b2b9fac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6b2b9fac](https://forums.unrealengine.com/u/anonymous_user_6b2b9fac)\
**Post date:** [August 29, 2019, 9:33am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/1 "2019-08-29T09:33:43Z")

</div>

With UE4.20, we have sucessfully increased the bone number limit for es3\_1 from 75 to 256 to match the hardware limit. Basically we replaced the uniform buffer with the vertex SRV buffer(which is the default path for feature level sm4 and above) to transmit bone matrices to GPU, and it works fine.

But with UE4.23 preview 4, this change fails to work. It seems the srv buffer method no longer works for es3\_1. I noticed some code changes in GPUSkinVertexFactory but none of them seem relevant.

Any input on this?

---

<div class="post-metadata">

**Author:** ![Liu.Wei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Liu.Wei](https://forums.unrealengine.com/u/Liu.Wei)\
**Post date:** [August 30, 2019, 4:28am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/2 "2019-08-30T04:28:16Z")

</div>

Hi, zxy165777

There are two functions have to be modified, the GetFeatureLevelMaxNumberOfBones and SupportsBonesBufferSRV.

Change the limitation to support FeatureLevel::ES3\_1 and the max bone number to 256.

Don’t forget to recompile the shaders, or SkeletalMesh will use the old shaders which were cached in DDC.

---

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [December 16, 2020, 10:00am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/3 "2020-12-16T10:00:02Z")

</div>

Hi.

I am trying to increase the number of bones on 4.25, I could find GetFeatureLevelMaxNumberOfBones in RHIDefinitions, can you please point me what to change SupportsBonesBufferSRV?

Thank you!

---

<div class="post-metadata">

**Author:** ![Liu.Wei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Liu.Wei](https://forums.unrealengine.com/u/Liu.Wei)\
**Post date:** [December 18, 2020, 4:47am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/4 "2020-12-18T04:47:18Z")

</div>

Hi NaitguoIf,  
Just change the SupportsBonesBufferSRV to return true for all feature levels and shader platforms.

---

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [January 6, 2021, 2:59am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/5 "2021-01-06T02:59:56Z")

</div>

Thank you Liu. Now preview render works (no more crash) sadly, the model is broken once is deployed on the device (tried S8+ and Razer v2.

---

<div class="post-metadata">

**Author:** ![Liu.Wei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Liu.Wei](https://forums.unrealengine.com/u/Liu.Wei)\
**Post date:** [January 6, 2021, 3:21am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/6 "2021-01-06T03:21:31Z")

</div>

I believe you should invalidate the shader to let it rebuild. You could add any comment in the MobileBasePassVertexShader.usf to make it modified and let the DDC invalidate, so the shader will be rebuild.

---

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [January 6, 2021, 4:34am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/7 "2021-01-06T04:34:27Z")

</div>

Awesome, it is working! Many, many thanks!!!

---

<div class="post-metadata">

**Author:** ![gotgrassct](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gotgrassct/32/734850_2.png) [@gotgrassct](https://forums.unrealengine.com/u/gotgrassct)\
**Post date:** [January 9, 2021, 6:52pm UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/8 "2021-01-09T18:52:56Z")

</div>

Guys, i’m lost. Can someone point me in the right direction so i could also make these changes?

---

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [January 12, 2021, 10:37am UTC](https://forums.unrealengine.com/t/change-es3_1-bone-number-limit-to-256/454569/9 "2021-01-12T10:37:05Z")

</div>

Hi, these are the steps I followed:

**How to increase bone limit for ES 3.1?**

Source:  
_Engine\Source\Runtime\RHI\Public\RHIDefinitions.h line 1634_

return 75; —\> return 144;

_Engine\Source\Runtime\Engine\Private\GPUSkinVertexFactory.cpp_

line 92:

IsFeatureLevelSupported(Platform, ERHIFeatureLevel::SM5) || IsVulkanPlatform(Platform) || IsMetalPlatform(Platform); —\> return true;

line 99:

InFeatureLevel \> ERHIFeatureLevel::ES3\_1 || IsVulkanPlatform(GMaxRHIShaderPlatform) || IsMetalPlatform(GMaxRHIShaderPlatform); —\> return true;

_Engine\Shaders\Private\MobileBasePassVertexShader.usf_

line 02 add:

// this comment to force recompile shaders.

Recompile the engine.

Cheers.
