Merge pull request #88 from Nitwel/fix-78

Increase WebSocket buffer size
This commit is contained in:
Nitwel 2024-01-04 12:47:31 +01:00 committed by GitHub
commit 55306bec99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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()