Hey guys. Can you tell me, what optimizations can I apply for raycast if I gonna use a very short ray in a known area (small area around a known coordinate). I use raycast on a huge mesh with a lot of faces to find a normal and UV coordinate near the coordinate that already lies on the surface of this mesh.
I have to use some raycasts at each draw tick and have a performance problem with it (especially on phones where even one raycast action in one draw round greatly reduce performance).
May be I have to cut my big mesh into small pieces or something like that? Who has any ideas about this?