Huge performance loss using UMG

Hi. I our game we bought a minimap plugin. Each icon on the minimap is a component wich then gets build onto the minimap. Now we want it to have so each foliage tree got an icon on the minimap. But we ran into huge performance problems. Do you guys have any tips if UMG is causing this ? Or if the Components are causing this.

Each tree has his own MapIcon component and MapIcon.

You probably need to figure out a way to cache or group the trees so they aren’t being updated every frame.

Unfortunately I don’t think UMG does any batching so you have to do it yourself.

UMG does batch. The minimap plugin may not use it correctly. If the minimap plugin is instancing hundreds of image widgets for each icon though, you’re gana have a bad time.