From 99c0f9b4ec0766dfd666b9e530c53a37aff96cc2 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Mon, 29 Jan 2024 22:38:02 -0500 Subject: [PATCH] Even faster join dialog --- core/src/mindustry/ui/dialogs/JoinDialog.java | 14 -------------- gradle.properties | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/core/src/mindustry/ui/dialogs/JoinDialog.java b/core/src/mindustry/ui/dialogs/JoinDialog.java index 43b4492f29..514f8cd605 100644 --- a/core/src/mindustry/ui/dialogs/JoinDialog.java +++ b/core/src/mindustry/ui/dialogs/JoinDialog.java @@ -449,20 +449,6 @@ public void refreshCommunity(){ Cons[] cons = new Cons[]{null}; net.pingHost(resaddress, resport, cons[0] = res -> { - var frame = Core.graphics.getFrameId(); - if (lastFrame[0] == frame && Time.timeSinceMillis(start[0]) > 5) { // Limit frames to 5ms (arbitrary value) - queued[0]++; - Core.app.post(() -> cons[0].get(res)); - return; - } else { // Save the time on the first call each frame - start[0] = Time.millis(); - if (queued[0] > 0) { - Log.debug("Queued server additions: @", queued[0]); - queued[0] = 0; - } - } - lastFrame[0] = frame; - if(refreshes != cur) return; res.port = resport; res.group = group.name; diff --git a/gradle.properties b/gradle.properties index d69b857ef0..fade734496 100644 --- a/gradle.properties +++ b/gradle.properties @@ -28,4 +28,4 @@ org.gradle.internal.http.connectionTimeout=180000 #kapt.verbose=true # For some reason kapt ir is just completely broken for us. I don't know why. kapt.use.jvm.ir=false -archash=7270dc9f2c7058afb4d07ee9a101f6480aae144f +archash=fed63f365839b5d0d3e8b6fe02307c373360e36e