From 90a7b3b8dd89d053a7fd28b5949b9ef2c10446b1 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:14:48 -0400 Subject: [PATCH] Updated Upstream (Gale) Upstream has released updates that appear to apply and compile correctly Gale Changes: Dreeam-qwq/Gale@457c34b Fix wrong decompile fix --- gradle.properties | 2 +- patches/server/0124-Optimize-Entity-distanceToSqr.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index cdc80437..8506f928 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ group = cn.dreeam.leaf mcVersion = 1.21.1 version = 1.21.1-R0.1-SNAPSHOT -galeCommit = 8fe4d471848f4d3f6b45758e77bb17edfd68ecbc +galeCommit = 457c34b77d142b69b07e657842dd3e16078889e9 org.gradle.caching = true org.gradle.parallel = true diff --git a/patches/server/0124-Optimize-Entity-distanceToSqr.patch b/patches/server/0124-Optimize-Entity-distanceToSqr.patch index 6c193b80..5cbf8452 100644 --- a/patches/server/0124-Optimize-Entity-distanceToSqr.patch +++ b/patches/server/0124-Optimize-Entity-distanceToSqr.patch @@ -1,6 +1,6 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: HaHaWTH <102713261+HaHaWTH@users.noreply.github.com> -Date: Tue, 29 Oct 2077 00:00:00 +0800 +Date: Fri, 29 Oct 2077 00:00:00 +0800 Subject: [PATCH] Optimize Entity distanceToSqr This patch optimizes Entity#distanceToSqr call by using Math#fma which is around 1.2x to 4x faster than original method on CPUs support Fused Multiply-Add (FMA) operation,