From 467567575e9fc1369cbf6557cacac07dd604bc35 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Thu, 4 Jan 2024 12:45:22 +0100 Subject: [PATCH] increase ws buffer size --- .github/workflows/build-prod.yml | 5 +---- export_presets.cfg | 4 ++-- lib/home_apis/hass_ws/hass.gd | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-prod.yml b/.github/workflows/build-prod.yml index da409d9..bc178ef 100644 --- a/.github/workflows/build-prod.yml +++ b/.github/workflows/build-prod.yml @@ -57,11 +57,8 @@ jobs: sed -i 's/singleInstancePerTask/singleTask/g' ./android/build/AndroidManifest.xml - versioncode=$(eval "git tag | grep -v "test" | wc -l") - sed -i "s/BUILD_VERSION_CODE/$versioncode/g" export_presets.cfg + versioncode=$(eval "cat export_presets.cfg | grep version/code | tail -1 | cut -d'=' -f2") sed -i "s/android:versionCode=\"1\"/android:versionCode=\"$versioncode\"/g" ./android/build/AndroidManifest.xml - - sed -i 's/BUILD_VERSION/${{ github.ref_name }}/g' export_presets.cfg sed -i "s/android:versionName=\"1.0\"/android:versionName=\"${{ github.ref_name }}\"/g" ./android/build/AndroidManifest.xml - name: export game diff --git a/export_presets.cfg b/export_presets.cfg index 5c00108..a0d5431 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -248,8 +248,8 @@ architectures/armeabi-v7a=false architectures/arm64-v8a=true architectures/x86=false architectures/x86_64=false -version/code=6 -version/name="v0.2.0" +version/code=8 +version/name="v0.2.1" package/unique_name="de.nitwel.$genname" package/name="Immersive Home" package/signed=true diff --git a/lib/home_apis/hass_ws/hass.gd b/lib/home_apis/hass_ws/hass.gd index 863d935..c04a3ff 100644 --- a/lib/home_apis/hass_ws/hass.gd +++ b/lib/home_apis/hass_ws/hass.gd @@ -40,7 +40,7 @@ func connect_ws(): # https://github.com/godotengine/godot/issues/84423 # Otherwise the WebSocketPeer will crash when receiving large packets - socket.set_inbound_buffer_size(65535 * 4) + socket.set_inbound_buffer_size(pow(2, 22)) # ~4MB buffer func _process(delta): socket.poll()