From 60b28d846f90a82281493313d5169810a6c7e1bb Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Sat, 6 Apr 2024 17:55:03 -0400 Subject: [PATCH] make it more clear what's actually being done --- src/GPU3D_Soft.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GPU3D_Soft.h b/src/GPU3D_Soft.h index ddb3f7b2..a4342431 100644 --- a/src/GPU3D_Soft.h +++ b/src/GPU3D_Soft.h @@ -193,6 +193,8 @@ private: } else { + // unoptimized algorithm is: z0 + ((z1-z0 >> 1) / xdiff * x << 1); + // or alternatively there's: z0 + (z1-z0) / (xdiff<<1) * (x<<1); return zcounter += zincr; } }