When entity on pick mode
Blitz3D Forums/Blitz3D Beginners Area/When entity on pick mode
| ||
Hi.. If all my entities are in pickmode Does it make the engine slower? |
| ||
Only when you perform a pick for an instant. |
| ||
so its ok to leave them all on pickmode 2 ? |
| ||
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 |
| ||
Cool remi. Good idea there.. |
| ||
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. |