From 4d1b567fe52ed6de6cb669c2be0ef624dfd94d92 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sun, 1 Oct 2023 01:28:13 -0400 Subject: [PATCH] second: more box optimization --- demos/second/part18_3d/auto/NOTES | 6 +++--- demos/second/part18_3d/auto/box_convert.c | 21 +++++++++++++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/demos/second/part18_3d/auto/NOTES b/demos/second/part18_3d/auto/NOTES index 609e8859..b0898676 100644 --- a/demos/second/part18_3d/auto/NOTES +++ b/demos/second/part18_3d/auto/NOTES @@ -19,15 +19,15 @@ todo, compressed: 522 bytes: try9: optimize HLIN to HLIN_ADD variants 506 bytes: try10: sort types per color 498 bytes: try11: sort HLIN by Y1 + 431 bytes: try12: with don't cares TODO: Add don't cares Try all color combos - Sort the color results to have consecutive HLINs together MOVE PLOTS one line before HLIN -Possible size boxes - 48x40,39,38....1 + + diff --git a/demos/second/part18_3d/auto/box_convert.c b/demos/second/part18_3d/auto/box_convert.c index 77942b14..86d70cda 100644 --- a/demos/second/part18_3d/auto/box_convert.c +++ b/demos/second/part18_3d/auto/box_convert.c @@ -168,15 +168,23 @@ int create_using_boxes(void) { for(box=0;box