From e4a8cb3d0294697c96f7b83a5a0a4d605fde20ca Mon Sep 17 00:00:00 2001 From: Lveyou <1339484752@qq.com> Date: Wed, 20 May 2026 20:24:52 +0800 Subject: [PATCH] 1 --- build/android/gradle.properties | 2 +- dl/math/dl_physics.cpp | 4 ++-- dl/system/dl_engine.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/android/gradle.properties b/build/android/gradle.properties index 05c85200..12c9ea48 100644 --- a/build/android/gradle.properties +++ b/build/android/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. For more details, visit # https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects diff --git a/dl/math/dl_physics.cpp b/dl/math/dl_physics.cpp index ec900db4..77a741c4 100644 --- a/dl/math/dl_physics.cpp +++ b/dl/math/dl_physics.cpp @@ -31,11 +31,11 @@ Physics* g_physics; using namespace JPH; // joltPhysic 是y向上的右手坐标系(只修改重力方向应该也没有问题) -static RVec3 to_rvec3(const Position3& pos) +inline RVec3 to_rvec3(const Position3& pos) { return RVec3(pos.x, pos.y, pos.z); } -static Position3 to_pos3(const RVec3& pos) +inline Position3 to_pos3(const RVec3& pos) { return { pos.GetX(), pos.GetY(), pos.GetZ() }; } diff --git a/dl/system/dl_engine.cpp b/dl/system/dl_engine.cpp index fd6ffe7c..ad07723a 100644 --- a/dl/system/dl_engine.cpp +++ b/dl/system/dl_engine.cpp @@ -29,7 +29,7 @@ #include "system/dl_midi.h" #include "script/dl_lua.h" #include "system/dl_test.h" -#include "/misc/dl_value.h" +#include "misc/dl_value.h" namespace dl