latency

Detect or Approximate Bluetooth Latency on Android (Audio Playback)

心不动则不痛 提交于 2019-12-05 00:42:35
I am currently working on an Android audio visualizer using connected smart home devices (such as Philips hue) to visualize music. I have trouble compensating the delay caused by bluetooth speakers. I have noticed, that the Youtube app, in difference to many other video streaming apps, has almost no delay between audio and video, when using bluetooth speakers. I figure, that they must compensate for the bluetooth latency by adjusting (delaying) the video signal. Is there a reasonable way of detecting or approximating the latency/delay of bluetooth speakers? Thank you very much for you help!!

Memory hierarchy latency information

淺唱寂寞╮ 提交于 2019-12-05 00:32:00
问题 In the "Example" section of this post, the author lists the latencies of all memory components register/L1/L2/RAM... My question is: how do you measure (find online) what the real latencies are for any given chip? Let's say model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz stepping : 13 cpu MHz : 1200.000 I've tried digging up the information from the Intel Manuals as well, but for the life of me, those things are huge, I wouldn't know where to look for the information. Thanks. 回答1: A

Networking problems in games

两盒软妹~` 提交于 2019-12-04 12:17:21
问题 I am looking for networking designs and tricks specific to games. I know about a few problems and I have some partial solutions to some of them but there can be problems I can't see yet. I think there is no definite answer to this but I will accept an answer I really like. I can think of 4 categories of problems. Bad network The messages sent by the clients take some time to reach the server. The server can't just process them FCFS because that is unfair against players with higher latency. A

CentOS VirtualBox 5 second latency on http requests

匆匆过客 提交于 2019-12-04 11:19:17
问题 I'm running centos 6.3 inside of VirtualBox 4.2.1 on my OSX 10.8.2 machine, and have encountered a latency issue I do not comprehend. Basically, every http request to anywhere has an additional 5000ms delay. Ping has no additional delay. [vagrant@localhost ~]$ curl -o /dev/null https://google.com -w "" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 110 220 110 220 0 0 42 0 0:00:05 0:00:05 --:--:-- 7586 [vagrant@localhost ~]$ curl -o /dev

What does “connecting” mean in Chrome Developer Tools in the Network Tab, and why does it show up only for some sites?

元气小坏坏 提交于 2019-12-04 10:55:33
问题 I've been trying to look for an explanation online but I can't seem to find one. If you go to a site like youtube.com on Chrome and hover over the blue bar corresponding to the file name "http://www.youtube.com/", you'll see four different things: -Blocking -Sending -Waiting -Receiving While viewing a different site's page in the network tab, I see -DNS Lookup -Connecting -Sending -Waiting -Receiving It takes a long time to do all these things, even though the page is so simple. What makes my

Do good multiplayer/mmo client<>server games use latency within movement calculations?

半世苍凉 提交于 2019-12-04 08:22:28
问题 There's a couple of questions here. Imagine I have client A who's going to send the following message to Server: "START MOVEMENT FORWARD". The server will not receive this message instantly, as there is a delay because of latency. Question 1: ping (or better: round trip time) is the amount of time it takes for the client to send a message to the server and receive a response back. Does this mean the following if you can ignore the time it takes for the server to notice that it has received a

Simple bandwidth / latency test to estimate a users experience

怎甘沉沦 提交于 2019-12-04 07:05:47
I write web based applications. Performance is obviously a key factor. Whilst database load and page rendering time are things I have control of, the users internet connection is not. What I'm looking for is a way to indicate what sort of a connection a user has. Something along the lines of a traffic light in the corner of a website that shows the user what sort of a connection they have to the site and therefore indicating what sort of perceived performance they should expect. e.g. Maybe the app just seems slow because everyone else in your company is browsing facebook on their lunch hour.

Live streaming video latency

匆匆过客 提交于 2019-12-04 07:03:01
Trying to determine what's "most" responsible for latency - the round trip my video makes from my encoder, to my server, and back down to the player in my browser. I'm at about 12 seconds right now with a player I like. Is it buffering in my player? Buffering on the way out by FMLE? The reason I ask is I feel I've eliminated other culprits with my little test scenario outlined below. And also, all else equal, swapping other players in produces the greatest variance in the latency. One takes it down to 4 seconds. Can't get any lower than that though. Eliminating other culprits: -Bad network?

how to dispatch network requests to the (geographically) closest server

喜夏-厌秋 提交于 2019-12-04 05:09:05
I'm a Java coder and not very familiar with how networks work (other than basic UDP/TCP connections) Say I have servers running on machines in the US, Asia, Latin America and Europe. When a user requests a service, I want their request to go to the server closest to them. Is it possible for me to have one address: mycompany.com, and somehow get requests routed to the appropriate server? Apparently when someone goes to cnn.com, they receive the pictures, videos, etc. from a server close to them. Frankly, I don't see how that works. By the way, my servers don't serve web pages, they serve other

How to Reduce Thread.sleep() Latency in Android

妖精的绣舞 提交于 2019-12-04 03:57:12
问题 I am generating timing events in a loop in a (non-UI) thread in an Android application, and I need those events to occur at precise intervals in time, (precise here means not varying any more than +/- 5 millisecs). Any errors of +/-10 millisecs (and certainly +/- 20 millisecs) can be perceived by the user. At the top of this loop I do some other calculations that take a variable amount of time, but at the bottom of the loop, I need the event to occur at a pre-calculated time. A higly