When entity on pick mode

Blitz3D Forums/Blitz3D Beginners Area/When entity on pick mode

Hardcoal(Posted April) [#1]
Hi.. If all my entities are in pickmode
Does it make the engine slower?


Matty(Posted April) [#2]
Only when you perform a pick for an instant.


Hardcoal(Posted April) [#3]
so its ok to leave them all on pickmode 2 ?


RemiD(Posted April) [#4]
Yes it will take more time if you have many entities set as pickable.
some ways to decrease the time it takes to camerapick/linepick :
->use entityradius or entitybox or low details meshes for pickables
->before throwing the camerapick/linepick, check if the entities you want to pick are in range (with a distance check), then set as pickable only those who are reachable


Hardcoal(Posted April) [#5]
Cool remi. Good idea there..


RemiD(Posted April) [#6]
A way to quickly unset the entities which have been set pickable, after a camerapick/linepick, is to put the kind (list name) and the index/handle of each entity that you set pickable in a temporary list, then use this list (after you got the informations about the results of the pick) to set the pickmode of these entities to not pickable.