# Scaling textures at runtime

**URL:** <https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927>\
**Category:** Asset Creation\
**Tags:** resolution-scale, unreal-engine, question\
**Created:** [January 28, 2021, 4:52pm UTC](https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927 "2021-01-28T16:52:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subash4447](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Subash4447](https://forums.unrealengine.com/u/Subash4447)\
**Post date:** [January 28, 2021, 4:52pm UTC](https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927/1 "2021-01-28T16:52:25Z")

</div>

Hi, I am making an android game. I have all texture of resolution 1024 in my game. For supporting most android devices in terms of memory I think is there any way to scale the texture at runtime. For example when running on lower end device I need texture of resolution 512kb downscale automatically. How to upscale or downscale textures at runtime. I hope asked the question correctly. Please inform me if i am wrong. Thanks :). Sorry for bad English.

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [January 28, 2021, 7:26pm UTC](https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927/2 "2021-01-28T19:26:40Z")

</div>

I believe there is a console command that you can use the Execute Console Command node with. However, that one could get “ugly” because everything will probably take a few seconds to fix itself once you call it.

---

<div class="post-metadata">

**Author:** ![Subash4447](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Subash4447](https://forums.unrealengine.com/u/Subash4447)\
**Post date:** [January 29, 2021, 1:59am UTC](https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927/3 "2021-01-29T01:59:34Z")

</div>

Thanks for your response. It’s ok if you know tell the command I will give it a try. If it’s not suitable for my game atleast I have learnt something new. Thanks.

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [January 29, 2021, 1:59pm UTC](https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927/4 "2021-01-29T13:59:38Z")

</div>

[Here is a list of most of the scalability console commands.](https://docs.unrealengine.com/en-US/TestingAndOptimization/PerformanceAndProfiling/Scalability/ScalabilityReference/index.html)

I believe the one you would use is r.ScreenPercentage. It says to put a value of 10 to 100 after it to scale, but I’m not sure what that would equal in exact resolution measurements.

---

<div class="post-metadata">

**Author:** ![Subash4447](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Subash4447](https://forums.unrealengine.com/u/Subash4447)\
**Post date:** [January 29, 2021, 2:33pm UTC](https://forums.unrealengine.com/t/scaling-textures-at-runtime/477927/5 "2021-01-29T14:33:33Z")

</div>

Hello, Detach789 thanks for your response. I found that I need dynamic resolution.[link text](https://docs.unrealengine.com/en-US/RenderingAndGraphics/DynamicResolution/index.html)

Screen percentage also helps me. I learnt that screen percentage tells the GPU number pixels need to rendered. Value of 100 is 100% screen pixels are used to render and value of 10 is 10% of the screen pixels needs to be rendered. This increases the framerate a lot. Thanks detach789.
