From ec42f672d43ab8aecb863791ec55b22569436524 Mon Sep 17 00:00:00 2001 From: Brooke Vibber Date: Mon, 30 Dec 2024 19:48:28 -0800 Subject: [PATCH] use an 8-item z buffer for slightly fasterness --- mandel.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mandel.s b/mandel.s index 787243f..39e71b0 100644 --- a/mandel.s +++ b/mandel.s @@ -262,7 +262,10 @@ palette_chroma_entries = 15 .code -z_buffer_len = 16 +;z_buffer_len = 16 ; 10.863 ms/px +;z_buffer_len = 12 ; 10.619 ms/px +z_buffer_len = 8 ; 10.612 ms/px +;z_buffer_len = 4 ; 12.395 ms/px z_buffer_mask = z_buffer_len - 1 z_buffer: ; the last N zx/zy values