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

SQL Server: Lead/Lag analytic function across groups (and not within groups)

Sorry for the long post, but I have provided copy & paste sample data and a possible solution approach below. The relevant part of the question is in the upper part of the post (above the horizontal rule). I have the following table Dt …
cryo111
  • 4,444
  • 1
  • 15
  • 37
11
votes
2 answers

AudioTrack lag: obtainBuffer timed out

I'm playing WAVs on my Android phone by loading the file and feeding the bytes into AudioTrack.write() via the FileInputStream > BufferedInputStream > DataInputStream method. The audio plays fine and when it is, I can easily adjust sample rate,…
BTR
  • 4,880
  • 4
  • 24
  • 21
11
votes
3 answers

What might cause this >1000ms lag in webrtc data channel messages?

When I setup a data channel between 2 browsers (testing on 2 different machines on the same network), I get different results regarding lag in the following 2 cases. Case 1: sending / receiving only When I setup one side to be sending test messages,…
user125661
  • 1,558
  • 12
  • 28
11
votes
1 answer

MapControl Xaml Element Lagging when dragging map

I have a windows phone runtime app where I display a push pin on a map using xaml.
sidy3d
  • 440
  • 2
  • 8
  • 22
11
votes
6 answers

Eclipse (Aptana) Typing Lag

I've been using Aptana for some time now, and as of recent I've been dealing with files that are really, really big (500+ lines of code, which is huge for me, being a novice developer). Whenever I deal with smaller files, I get that weird sensation…
Zack
  • 2,274
  • 3
  • 24
  • 26
10
votes
4 answers

lead or lag function to get several values, not just the nth

I have a tibble with a list of words for each row. I want to create a new variable from a function that searches for a keyword and, if it finds the keyword, creates a string composed of the keyword plus-and-minus 3 words. The code below is close,…
wscampbell
  • 351
  • 2
  • 11
10
votes
3 answers

Eclipse Mars running slow

I am running mac OS X El Capitan. Eclipse is running really slow. Especially the scrolling. I am using the macbook's trackpad. Macbook retina 13" 2015 8 GB ram, intel i5 (two cores at 2.7 ghz)
harveyslash
  • 5,906
  • 12
  • 58
  • 111
10
votes
5 answers

How to create lag variables

I want to create lagged variable for a variable pm10 and used the following code. However, I could not get what I wanted. How could I create a lag of pm10? df2$l1pm10 <- lag(df2$pm10, -1, na.pad = TRUE) df2$l1pm102 <- lag(df2$pm10,…
WangoR
  • 361
  • 2
  • 5
  • 10
10
votes
2 answers

Custom ListView with Pinned Header , causing Jank when setting padding

I have a custom listView which contains one pinned header, and x amounts of "push-up" views, which can be pushed up and hidden above the list view. I have attached image to explain them. Sorry for the "black censorship", just to hide customers logo…
havchr
  • 1,132
  • 1
  • 10
  • 25
9
votes
2 answers

CSS3 box-shadow causes scroll-lag (slow performance) on Safari 5.0.2?

Hey there, this time I have a quite rare issue that's occurring only in Safari 5.0.2. When using CSS3's box-shadow parameter, Safari's performance is that bad, you can't even scroll down properly or interact as expected with the site. I have a
cr0z3r
  • 711
  • 4
  • 9
  • 24
9
votes
1 answer

Recursively retrieve LAG() value of previous record

I've made the following calculation involving LAG(): (lag(fValue,1,fValue) OVER (PARTITION BY Cluster ORDER BY iSequence) + fValue) / 2 as fValueAjusted It takes the previous (based on iSequence) record's fValue, sums with current one, and divides…
Hikari
  • 3,797
  • 12
  • 47
  • 77
9
votes
1 answer

DirectX application "hiccups" every 3 seconds

I've been investigating an issue in my DirectX 11 C++ application for over a week now, and so I'm turning to the good people on StackOverflow for any insight that may help me track this one down. My application will run mostly at 60-90 frames per…
Tim Coolman
  • 595
  • 1
  • 9
  • 19
8
votes
1 answer

VoiceOver very laggy/slow on screen with many subViews

I am building full accessibility into my iOS Game called Swordy Quest: https://apps.apple.com/us/app/swordy-quest-an-rpg-adventure/id1446641513 As you can see from the screenshots on the above link, there is a Map I have created with 50x50…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
8
votes
1 answer

Select previous row which satisfies a condition in hive

I have product data like this Product Date Sales Availbility xyz 2017-12-31 724.5 6.0 xyz 2018-01-07 362.25 7.0 xyz 2018-01-14 281.75 7.0 xyz 2018-01-21 442.75 7.0 xyz …
av abhishiek
  • 647
  • 2
  • 11
  • 26
8
votes
1 answer

r group lag sum

I have some data with groups for which I want to compute a summary (sum or mean) over a fixed number of periods. I'm trying to do this with a group_by followed by mutate and then operating with the variable and its dplyr::lag. Here is an…
josemz
  • 1,283
  • 7
  • 15