Updated SammiClient

Removed await get_tree().process_frame from tight loop
This commit is contained in:
Mario Steele 2025-04-30 15:01:38 -05:00
parent d6e60ff204
commit 482ae21121

View file

@ -112,7 +112,6 @@ func _read_response() -> void:
return return
if buffer.size() < 4: if buffer.size() < 4:
await get_tree().process_frame
client.poll() client.poll()
continue continue
@ -122,7 +121,6 @@ func _read_response() -> void:
buffer = [] buffer = []
headers = data.replace("\r", "").rstrip("\n\n").split("\n") headers = data.replace("\r", "").rstrip("\n\n").split("\n")
break break
await get_tree().process_frame
client.poll() client.poll()
if headers.size() == 0: if headers.size() == 0: