Questions tagged [lag]

Lag is a common word meaning to fail to keep up or to fall behind. In real-time applications, the term is used when the application cannot keep up with performance demand or user input. In other words, it refers to when the application is not keeping up with it's "real-time" concept, due to problems related to poor rate of cycles-per-second, a (possibly cumulative) lateness of response to user input, or other problems.

Lag is a common word meaning to fail to keep up or to fall behind.

In the software context, it usually refers to when a real-time application fails to keep up with demand or input.

The most common cases of lag are:

  • The application fails to respond in a timely fashion to inputs, usually due to a slow internet connection, server latency or overworked hardware.
  • The application fails to keep a good rate of Frames-Per-Second (FPS), which is very important for media playing (mainly video) and in real-time-rendering (mainly games).

Reference and further reading: Lag - Wikipedia

2078 questions
58
votes
3 answers

subtract value from previous row by group

In R, let's say I have this data frame: Data id date value 2380 10/30/12 21.01 2380 10/31/12 22.04 2380 11/1/12 22.65 2380 11/2/12 23.11 20100 10/30/12 35.21 20100 10/31/12 37.07 20100 11/1/12 …
haitham
  • 3,398
  • 6
  • 21
  • 35
30
votes
1 answer

Minimize Android GLSurfaceView lag

Following some other questions on Stack Overflow, I've read the guide to the internals of Android Surfaces, SurfaceViews, etc from here: https://source.android.com/devices/graphics/architecture.html That guide has given me a much improved…
tangobravo
  • 898
  • 10
  • 24
29
votes
3 answers

AVAudioPlayer produces lag despite prepareToPlay() in Swift

Playing a very short sound (~0.5s) produces a hiccup (like a lag) in my SpriteKit iOS game programmed in Swift. In other questions, I read that I should prepareToPlay() the sound, which I did. I even used a variable (soundReady) to check if the…
Timme
  • 415
  • 4
  • 9
27
votes
4 answers

What's the minimum lag detectable by a human?

Possible Duplicate: What is the shortest perceivable application response delay? I've been profiling some JavaScript UI code because it feels a little laggy. So far, I've found some bottlenecks and optimized them out, but I'd like to define a…
pepsi
  • 6,785
  • 6
  • 42
  • 74
24
votes
5 answers

Why is time.sleep() accuracy influenced by Chrome?

I've noticed some strange behaviour that may or may not be specific to my system. (lenovo t430 running windows 8) With this script: import time now = time.time() while True: then = now now = time.time() dif = now - then print(dif) …
kpie
  • 9,588
  • 5
  • 28
  • 50
23
votes
5 answers

Remove/collapse consecutive duplicate values in sequence

I have the following dataframe: a a a b c c d e a a b b b e e d d The required result should be a b c d e a b e d It means no two consecutive rows should have same value. How it can be done without using loop. As my data set is quite huge,…
Amarjeet
  • 907
  • 2
  • 9
  • 14
17
votes
4 answers

Lag() with condition in sql server

i have a table like this: Number Price Type Date Time ------ ----- ---- ---------- --------- 23456 0,665 SV 2014/02/02 08:00:02 23457 1,3 EC 2014/02/02 07:50:45 23460 0,668 SV …
user3292586
  • 179
  • 1
  • 1
  • 5
16
votes
10 answers

Visual Studio Freezing On Opening Project

My Visual Studio seems to be freezing/lagging when I open a existing project. I have added NHibernate framework into my code and it seems to lag my computer (at least that's what I think). When I open other projects, I do not lag or freeze at all.…
kevin
  • 161
  • 1
  • 1
  • 3
16
votes
4 answers

How to prevent this strange jQuery .animate() lag?

See demo: jsFiddle I have a simple form that is being toggled when clicking 'show' / 'cancel' Everything works fine, but if you click 'cancel' shortly after the form is revealed, there's a good 2-3 seconds lag before the animation even begins.…
Roy
  • 1,307
  • 1
  • 13
  • 29
15
votes
4 answers

Find time shift of two signals using cross correlation

I have two signals which are related to each other and have been captured by two different measurement devices simultaneously. Since the two measurements are not time synchronized there is a small time delay between them which I want to calculate.…
Rickson
  • 1,040
  • 2
  • 16
  • 40
15
votes
6 answers

Android - onStop() will be called with a delay

I found my activities onStop() method will be called with a less than 10 seconds delay. I've never seen before this behavior. Note :- The activity is singleTop and it starts with Intent.FLAG_ACTIVITY_REORDER_TO_FRONT flag. Note :- I'm using Build…
Alex
  • 1,623
  • 1
  • 24
  • 48
15
votes
2 answers

How to use LEAD and LAG In Where?

i have a table like this: Number Price Type Date Time ------ ----- ---- ---------- --------- 23456 0,665 SV 2014/02/02 08:00:02 23457 1,3 EC 2014/02/02 07:50:45 23460 0,668 SV …
Salem Ahmed
  • 1,067
  • 2
  • 12
  • 18
13
votes
8 answers

general lag in time series panel data

I have a dataset akin to this User Date Value A 2012-01-01 4 A 2012-01-02 5 A 2012-01-03 6 A 2012-01-04 7 B 2012-01-01 2 B 2012-01-02 3 B 2012-01-03 4 B 2012-01-04 5 I want to…
Daniel Egan
  • 826
  • 1
  • 9
  • 22
13
votes
8 answers

Visual Studio 2010 Intellisense slows down everything

I have the issue with Visual Studio 2010, after a while, running exceptionally slowly and slowing everything else down with it. I'm meaning: Most other open windows become unresponsive Typing is delayed Build times increase 10-fold Saving takes…
13
votes
4 answers

What's the opposite function to lag for an R vector/dataframe?

I have a problem dealing with time series in R. #--------------read data wb = loadWorkbook("Countries_Europe_Prices.xlsx") df = readWorksheet(wb, sheet="Sheet2") x <- df$Year y <- df$Index1 y <- lag(y, 1, na.pad = TRUE) cbind(x, y) It gives me…
Gilles Cosyn
  • 435
  • 2
  • 9
  • 17
1
2 3
99 100