|
@@ -784,9 +784,6 @@ function nettest(dt) |
|
|
local data |
|
|
local data |
|
|
local datanumtest = 0 |
|
|
local datanumtest = 0 |
|
|
data = udp:receive() |
|
|
data = udp:receive() |
|
|
if not data then |
|
|
|
|
|
confirmation = "D" |
|
|
|
|
|
end |
|
|
|
|
|
repeat |
|
|
repeat |
|
|
datanumtest = datanumtest + 1 |
|
|
datanumtest = datanumtest + 1 |
|
|
print("LATENCY: " .. tostring(datanumtest)) |
|
|
print("LATENCY: " .. tostring(datanumtest)) |
|
@@ -825,9 +822,7 @@ function clienttest(dt) |
|
|
local data |
|
|
local data |
|
|
local datanumtest = 0 |
|
|
local datanumtest = 0 |
|
|
data = udp:receive() |
|
|
data = udp:receive() |
|
|
if not data then |
|
|
|
|
|
confirmation = "D" |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
repeat |
|
|
repeat |
|
|
datanumtest = datanumtest + 1 |
|
|
datanumtest = datanumtest + 1 |
|
|
print("LATENCY: " .. tostring(datanumtest)) |
|
|
print("LATENCY: " .. tostring(datanumtest)) |
|
|