Befeepilf/crevis

Renderer::fillTriangle() causes a lot of malloc and _int_free calls

Opened this issue · 0 comments

I used perf to track down the exact line inside the fillTriangle method and found that this issue has something to do with Vec2d P (x - p1.x(), y - p1.y()); (currently on line 336 of src/renderer/renderer.cpp).

Screenshot from 2020-07-04 11-14-36