Hello as you can see in this video
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
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
- test drag selecting at start of game to get a feel with the smooth drag selection
- press Z four times, ( Z spawns 50 actors) 4x50 = 200 actors
- drag select them all, all actors are stationary = no lag yet
- no right click to move them to randomly
- now mouse drag selection lags…
- 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…