From e58a6252fc3aab0a9a8a43c8f505e060051ecc92 Mon Sep 17 00:00:00 2001 From: dPavlenko Date: Fri, 7 Nov 2025 17:49:25 +0300 Subject: [PATCH 1/3] Android java memory 2048m --- templates/android/template/gradle.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/android/template/gradle.properties b/templates/android/template/gradle.properties index dcf0a583d7..eb775826cb 100644 --- a/templates/android/template/gradle.properties +++ b/templates/android/template/gradle.properties @@ -6,7 +6,8 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx2048m +# -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit From 1fbe9b033cc5ccfd44a7c16ce3291718f2a1278e Mon Sep 17 00:00:00 2001 From: dPavlenko Date: Wed, 12 Nov 2025 15:12:24 +0300 Subject: [PATCH 2/3] Gaps fix for HTML5 window --- .../_internal/backend/html5/HTML5Window.hx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lime/_internal/backend/html5/HTML5Window.hx b/src/lime/_internal/backend/html5/HTML5Window.hx index 424e8ead4a..2a34a71f69 100644 --- a/src/lime/_internal/backend/html5/HTML5Window.hx +++ b/src/lime/_internal/backend/html5/HTML5Window.hx @@ -177,8 +177,8 @@ class HTML5Window if (canvas != null) { - canvas.width = Math.round(parent.__width * scale); - canvas.height = Math.round(parent.__height * scale); + canvas.width = Math.floor(parent.__width * scale); + canvas.height = Math.floor(parent.__height * scale); canvas.style.width = parent.__width + "px"; canvas.style.height = parent.__height + "px"; @@ -1015,8 +1015,8 @@ class HTML5Window if (rect.width > 0 && rect.height > 0) { var canvas2:CanvasElement = cast Browser.document.createElement("canvas"); - canvas2.width = Std.int(rect.width); - canvas2.height = Std.int(rect.height); + canvas2.width = Math.floor(rect.width); + canvas2.height = Math.floor(rect.height); var context = canvas2.getContext("2d"); context.drawImage(canvas, -rect.x, -rect.y); @@ -1380,8 +1380,8 @@ class HTML5Window { if (parent.element != cast canvas) { - canvas.width = Math.round(elementWidth * scale); - canvas.height = Math.round(elementHeight * scale); + canvas.width = Math.floor(elementWidth * scale); + canvas.height = Math.floor(elementHeight * scale); canvas.style.width = elementWidth + "px"; canvas.style.height = elementHeight + "px"; @@ -1408,13 +1408,13 @@ class HTML5Window if (scaleX < scaleY) { - targetHeight = Math.floor(setHeight * scaleX); - marginTop = Math.floor((elementHeight - targetHeight) / 2); + targetHeight = Math.ceil(setHeight * scaleX); + marginTop = Math.ceil((elementHeight - targetHeight) / 2); } else { - targetWidth = Math.floor(setWidth * scaleY); - marginLeft = Math.floor((elementWidth - targetWidth) / 2); + targetWidth = Math.ceil(setWidth * scaleY); + marginLeft = Math.ceil((elementWidth - targetWidth) / 2); } if (canvas != null) From a9200a30ea6c63a7e5351c81287b1a8ccb542ad3 Mon Sep 17 00:00:00 2001 From: dPavlenko Date: Wed, 12 Nov 2025 15:16:48 +0300 Subject: [PATCH 3/3] gradle.properties reverted to default --- templates/android/template/gradle.properties | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/android/template/gradle.properties b/templates/android/template/gradle.properties index eb775826cb..dcf0a583d7 100644 --- a/templates/android/template/gradle.properties +++ b/templates/android/template/gradle.properties @@ -6,8 +6,7 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m -org.gradle.jvmargs=-Xmx2048m -# -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit