lag in camerapick()

Blitz3D Forums/Blitz3D Programming/lag in camerapick()

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

use mousehit(1)???

I do it this way and it seems pretty fast with about 100 entitys to scan and pick from:
;
If MouseHit(1) = True Then
	hat=CameraPick(camera,x,y)
	If hat=0 Then Goto outme
		Select empty 
			Case empty
			xx=EntityX(entity)
			zz=EntityZ(entity) 
			Default 
			pp=0
		End Select
.outme
EndIf
;