Draw polyine causes FPS drop

I created 2000 entities, and each entity has 2 adjacent entities. I drew a polyline between each entity. But the FPS dropped to 7. If I only loaded entities, the FPS would be around 50. I don’t understand why only 4,000 entities were added. Why would the FPS drop significantly?