(Urgent!) How can I make raycasting less laggy?

I’m trying to make a raycast alternative to try and optimize performance, and I’ll share it when it’s done if you’d like

That could be interesting. Might be able to get somewhat better performance by not using raycasting but that’ll prob be harder to code though