Question Function to get latency?

Discussion in 'Developer Support' started by muttaclien, Aug 3, 2015.

  1. Hey, I see server latency is listed in the misc section of developer telemetry panel. Can't seem to find any such function in the runemate jar. Can anyone point me in the right direction? (Or alternatively, what's a convenient tool/plugin for searching jars for functions containing key phrases?)

  2. No shit Mr. Sherlock. How do I spider this? Google doesn't have indexed very well.
  3. Hmm, guess I should have phrased more clearly - I'm looking for network latency not framerate latency. The misc section of developer panel shows both network latency and framerate(Ping: 315ms, FPS:50). Ended up just spidering the whole javadocs and grepping for anything containing "ping"|"latency", case insensitive. Nothing came up.
  4. Tagging @Cloud because I couldn't find it either.
  5. The reason that it's not currently in the API is because as far as I'm aware the rs client itself doesn't store it's ping. The ping that's displayed in the misc tab is calculated by us by measuring the amount of time it takes to connect to the world you're on. I could make an api method that would return a Future<Integer> for it that would calculate it (since we know the base server and such), but the problem is it would have to be recalculated a lot. You could cache it but ping changes a lot over a running session.
  6. Partially related to this; is it somehow possible to detect the state of the client? For example delay while it's loading etc; the not-very-powerful other botclient has this at Game#clientState()
  7. That feature is very rarely useful for more than simply checking if logged in and is a HUGE pain in the ass to make give consistent values because they change the expected values for each state in each gamepack and it requires mapping them back to more usable states.

Share This Page