# Input lag when creating and removing widget button (Also can break player's input and potential memory leaks)

**URL:** <https://forums.unrealengine.com/t/input-lag-when-creating-and-removing-widget-button-also-can-break-players-input-and-potential-memory-leaks/2016748>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, bug-report, fortnite\
**Created:** [September 11, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/input-lag-when-creating-and-removing-widget-button-also-can-break-players-input-and-potential-memory-leaks/2016748 "2024-09-11T19:43:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![UselessMouth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/uselessmouth/32/976514_2.png) [@UselessMouth](https://forums.unrealengine.com/u/UselessMouth)\
**Post date:** [September 25, 2024, 8:06am UTC](https://forums.unrealengine.com/t/input-lag-when-creating-and-removing-widget-button-also-can-break-players-input-and-potential-memory-leaks/2016748/3 "2024-09-25T08:06:03Z")

</div>

There’s an old thread about memory leak:

> [@Bug - Permanent server slowdown caused by potential memory leak when creating UI widgets from Verse](https://forums.unrealengine.com/t/bug-permanent-server-slowdown-caused-by-potential-memory-leak-when-creating-ui-widgets-from-verse/836064):
>
> If you create a bunch of UI widgets every frame/tick and remove and recreate them the next frame, over and over, gradually your server will run slower and slower. Once the server is running slow, you have to end the session and start a new one in order to get back to normal (which probably just moves you to a new server). I’ve tried this with creating 100 widgets per tick and the server became almost immediately unresponsive. With 30 widgets per tick, the effect is more gradual, but if you leav…

---

_[View the full topic](https://forums.unrealengine.com/t/input-lag-when-creating-and-removing-widget-button-also-can-break-players-input-and-potential-memory-leaks/2016748)._
