Maybe it would help to make an object to thin the amount of rays sent out when you approach the wall would minimize the issues? Like if you are in collision with an object near the corner you send out 50% amount of rays.
Perhaps, but today there is no time to check. Try testing the second optimization. I have sent a private message to the Gdevelop forum
I recieved it :)
Ok, which is faster?
I am still getting better fps with the raycasting example.