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

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

No files matched your search

+4
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 });
}