# Lag in selecting with mouse

**URL:** <https://forums.unrealengine.com/t/lag-in-selecting-with-mouse/368531>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, question, Blueprint\
**Created:** [August 28, 2016, 4:32pm UTC](https://forums.unrealengine.com/t/lag-in-selecting-with-mouse/368531 "2016-08-28T16:32:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanzco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanzco](https://forums.unrealengine.com/u/yanzco)\
**Post date:** [August 28, 2016, 4:32pm UTC](https://forums.unrealengine.com/t/lag-in-selecting-with-mouse/368531/1 "2016-08-28T16:32:08Z")

</div>

Hello as you can see in this video

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/c/53c2c908025ff088220a255a7bad32eae0feedc7.jpeg "selectionlag") ](https://www.youtube.com/watch?v=MSfmJGxryTU)

I have a selection box like any RTS games…  
there is a problem with drag selecting when there are many moving actors…

but when i select (hold mouse click) and move the camera… the selection box displays smooothly and selects properly…

i dont know why when i just use the mouse (left click and drag) lags…

If you want to download the whole test project:  
[http://www.mediafire.com/download/wj1jkwk3sun4dk9/Experiment2.rar](http://www.mediafire.com/download/wj1jkwk3sun4dk9/Experiment2.rar)

WSAD - camera movement  
z - spawn 50 actors ( press this 4 times )  
Left click to select / Drag Select  
Right click to move actors

Heres what i did to get the same results

1. test drag selecting at start of game to get a feel with the smooth drag selection
2. press Z four times, ( Z spawns 50 actors) 4x50 = 200 actors
3. drag select them all, all actors are stationary = no lag yet
4. no right click to move them to randomly
5. now mouse drag selection lags…
6. now hold left click and move the camera with WSAD - try selecting units…  
notice how smooth it is… ? why is it smooth, and mouse selecting lags?

- i also have a different version of marquee selection box  
using draw rect / drawtexture in HUD and multibox Trace  
same thing happens…

---

<div class="post-metadata">

**Author:** ![yanzco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanzco](https://forums.unrealengine.com/u/yanzco)\
**Post date:** [August 28, 2016, 6:27pm UTC](https://forums.unrealengine.com/t/lag-in-selecting-with-mouse/368531/2 "2016-08-28T18:27:07Z")

</div>

i tried it with a new project and migrate all needed files…

[http://www.mediafire.com/download/k1uu2kvr51r5wtf/TestMigrate412.rar](http://www.mediafire.com/download/k1uu2kvr51r5wtf/TestMigrate412.rar)

it has same result…  
lag / poor performance even when cooked…

using mouse to drag select lags.  
but while holding the left mouse and moving the camera runs smoothly…

---

<div class="post-metadata">

**Author:** ![yanzco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanzco](https://forums.unrealengine.com/u/yanzco)\
**Post date:** [August 29, 2016, 5:39am UTC](https://forums.unrealengine.com/t/lag-in-selecting-with-mouse/368531/3 "2016-08-29T05:39:52Z")

</div>

I have confirmed this is the bug UE-24527

refer to

> **[Setting ShowMouseCursor cause mouse free look lag](https://forums.unrealengine.com/questions/340096/setting-showmousecursor-cause-mouse-free-look-lag.html)**
>
> PROBLEM: Setting ShowMouseCursor cause mouse free look lag when lots of AI are on the screen. I uploaded a video: https://youtu.be/38koeuJSo5o (note: the first test I don't set the ShowMouseCursor at all, please watch entire video, you'll clearly...

seems that this bug is still not fixed
