optimize case of sequential shared radius circle drawing by reusing the geometry by just offsetting it

This commit is contained in:
veclavtalica
2024-11-03 22:33:18 +03:00
parent e4da4a8b7f
commit 26c75ffd7c
2 changed files with 23 additions and 5 deletions

View File

@ -255,6 +255,10 @@ static void drawdef(Player *player) {
draw_circle((Vec2) { 256, 128 },
24,
(Color) { 255, 0, 0, 255 });
draw_circle((Vec2) { 304, 128 },
24,
(Color) { 255, 0, 0, 255 });
}