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
8
votes
1 answer

Can I use dynlm without any lagged variables?

I am trying to use a dynamic linear regression using dynlm command in R programming since I need to analyze my panel data but I do not want to use panel regression. However, my model specification do not contain any lagged variables at all. Can I…
Eric
  • 528
  • 1
  • 8
  • 26
8
votes
4 answers

Android eclipse plugin lags on type (3.6 - Helios)

Possible Duplicate: Eclipse Android SDK slow Content Assist performance When I write a code like so: TextView tv = new TextView(context); tv. // Here auto-complete window appears, and laaaaag, // and lag and…
semen
  • 161
  • 2
  • 12
8
votes
1 answer

mix-blend-mode scroll lag issues

Just using 'mix-blend-mode:overlay' on a text element and it causes my browser to scroll really slow while the text is in the screen view. As soon as you scroll past the text item, the scroll goes back to butter smooth. The lag effect, which affects…
Danny
  • 81
  • 1
  • 2
8
votes
2 answers

Extremely Laggy RecyclerView Performance

I have a RecyclerView implementation inside of a ViewPager, and its performance is pretty horrible. Here's a video of the performance in question. I have two view types, and am using the ViewHolder pattern (so it's not inflation or finding views…
ccrama
  • 724
  • 1
  • 8
  • 23
8
votes
3 answers

Cumulative sum with lag

I have a very large dataset that looks simplified like this: row. member_id entry_id comment_count timestamp 1 1 a 4 2008-06-09 12:41:00 2 1 b 1 2008-07-14…
Nikolas
  • 132
  • 1
  • 7
8
votes
3 answers

ThreeJS Stop Rendering

I am working with ThreeJS on a basic 3d scene that has OrbitControls. Everything works great, except it causes my entire site to lag, as it is looping itself even when the user is not looking at it. I want a function that I can call to start and…
Bjornir
  • 105
  • 1
  • 1
  • 6
8
votes
3 answers

Lagging Forward in plm

This is a very simple question, but I haven't been able to find a definitive answer, so I thought I would ask it. I use the plm package for dealing with panel data. I am attempting to use the lag function to lag a variable FORWARD in time (the…
Matt
  • 537
  • 5
  • 19
8
votes
3 answers

Eclipse Juno typing lag on OS X Lion

this is mostly to raise awareness and promote certain bugs on the Eclipse team I guess. Env: MacOSX 10.7.4 -Eclipse Juno final 64bit Core2Duo MacBookPro 2009 SSD main HD. Java 6 SDK used (latest revision from Apple Update) It seems on quite…
javapapo
  • 1,342
  • 14
  • 26
7
votes
1 answer

R: dplyr::lag throws error when trying to lag characters in tibble

I'm getting the following error in R when I try to use the lag function (from the dplyr library) on a column of characters in a tibble: Error in mutate_impl(.data, dots) : Expecting a single string value: [type=logical; extent=1]. This error…
Kimberly Brink
  • 143
  • 1
  • 5
7
votes
3 answers

lag to get first non null value since the previous null value

Below is an example of what I'm trying to achieve in a Redshift Database. I have a variable current_value and I want to create a new column value_desired that is: the same as current_value if the previous row is null equal to the last preceding…
Francesco Rinaldi
  • 163
  • 1
  • 1
  • 8
7
votes
3 answers

Android Recyclerview lag while scrolling down

I have a fragment with a recyclerview (GridlayoutManager) inside. The items in the recyclerview are not complicated or have images but while scrolling down the recyclerview lags (tested on a Nexus 5). I set hasFixedSize and hasStableIds to true Has…
Johann Feser
  • 445
  • 1
  • 7
  • 17
7
votes
6 answers

Lag multiple variables multiple times in R

So, I'm working with a data frame that has daily data over a period of 444 days. I have several variables that I want to lag for use in a regression model (lm). I want to lag them 7 times each. I'm currently generating the lags like…
John Chrysostom
  • 3,973
  • 1
  • 34
  • 50
7
votes
4 answers

Why lag in r is not working for matrix?

I am trying to lag a matrix: > B = matrix( c(2, 4, 3, 1, 5, 7), nrow=3, ncol=2) > B [,1] [,2] [1,] 2 1 [2,] 4 5 [3,] 3 7 > lag(B) [,1] [,2] [1,] 2 1 [2,] 4 5 [3,] 3 7 Why does lag(B) NOT give: >…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
7
votes
4 answers

google maps api v3 no smooth dragging

I started implementing my software using maps api v3. Unfortunatelly i found out that v3 API has some serious issues which draws me back from bying a bussiness licence. My clients use monitors with HD resolution which is 1920x1080 and the map takes…
Joro Seksa
  • 1,525
  • 3
  • 18
  • 44
7
votes
3 answers

Java KeyListener stutters

I'm making a very simple pong game in java and I'm doing this using KeyListener. I want it so when the user presses the right or left keys on the keypad, the pong block goes in that direction. This is a simple enough task, but what I'm finding out…
applemavs
  • 503
  • 3
  • 9
  • 22