Material issue

I switched to the universal render pipeline and I noticed that the materials started having these triangular shadows along the edge and when I select any object, my fps drops from 60+ to about 15.

168240-cubeshit.png

Edit: I found the solution to the shadow problem along the edges. But I still get low fps when I select something.