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

JavaFX: Moving hundreds of ImageViews simultaneously inside a Pane (Performance problems)

I am currently developing a tower defence game for a university project. At higher waves there are hundreds of enemies moving arround. My problem is that it's getting very inperforment at about 300+ enemies moving simultaneously. Every enemy is a…
GreenLegend
  • 41
  • 1
  • 4
0
votes
2 answers

libgdx why does my game lag when switching screens

When I switch screens it lags and takes a really long time to load it on android, but on desktop launcher it does it instantly. An example of a screen that takes a long time load is the level screen, it goes there from the main menu. This is the…
0
votes
1 answer

ping and packet loss go up when receiving data from wit.ai

I'm trying to make a discord bot that works with voice commands, (using wit.ai for speech to text) and I have got it working but when it sends or receives data to/from wit.ai the ping goes way up to like 350 ms. Also the outbound packet loss rate…
Max
  • 160
  • 3
  • 15
0
votes
2 answers

Substract date from previous row by group (using R)

I'm having a similar question to this one (subtract value from previous row by group), but I want to subtract the previous date from the current date, by group ID in order to have an estimated number of days. I tried editing the scripts suggesed…
KTE
  • 1
  • 4
0
votes
1 answer

Date difference for same ID

I ve got a data set similar to +----+------------+------------+------------+ | ID | Udate | last_code | Ddate | +----+------------+------------+------------+ | 1 | 05/11/2018 | ACCEPTED | 13/10/2018 | | 1 |…
madlicksxxx
  • 57
  • 1
  • 8
0
votes
1 answer

Postgres window function using group and lag and other possible ways

Assume I have the table below and I would like to return only those rows where Price != price in the previous row but only within a group where the grouping is by Time ID : { 1 , 2 , 3 , 4 , 5 , 6 } Time …
aajkaltak
  • 1,437
  • 4
  • 20
  • 28
0
votes
1 answer

Create lags relative to whole change within group

I've tried creating a variable that represents the lagged version of another variable relative to the whole change of the variable within the group. Let's use this example dataframe: game_data <- data.frame(player = c(1,1,1,2,2,2,3,3,3), level =…
Scijens
  • 541
  • 2
  • 11
0
votes
0 answers

Coredata and NSTableview - Delay on focus when open modal window after mac osx system update

I have a mac osx app built with xcode 5 which runs on mac osx 10.8. My app has a lot of windows with table view and all the data are managed by coredata frameworks via several NSArraycontrollers. The app runs properly. I have updated my system to…
Max Colla
  • 61
  • 4
0
votes
1 answer

Eclipse Photon Lag When Typing in Java

I work on Spring MVC project in Eclipse Photon, The problem is that When I type in java pages the IDE becomes unresponsive, It takes 2 or 3 sec to type a character and same behavior when backspacing too. I have tried some suggestions from other…
Akshay Som
  • 121
  • 1
  • 5
0
votes
1 answer

ASA Lag is returning a result from outside given duration

I try to use Azure stream analytics to filter results that are too far from the last 2 reads. However, if last read is more than 720 minutes back (by reading time) I don't want to discard current read because of this difference. I noticed the…
Dani Toker
  • 406
  • 6
  • 19
0
votes
1 answer

SQL: Count of rows between first and last occurrence - with a twist

I want to find the count of rows between first and last occurrence of a value. However when there are five or more records of a different value between them, stop counting. So if last occurrence is today and first occurrence is yesterday, the result…
Peete
  • 125
  • 11
0
votes
1 answer

Page controller and UITableView causes small lag

I have a page controller which consists of five table views. When swiping between these table views, there is a short lag. Is this normal or could it be caused by some bad code? I have uploaded a short video demonstrating the issue. [Video]…
simonbs
  • 7,932
  • 13
  • 69
  • 115
0
votes
1 answer

Populating a new column based the value of the prior value of the newly created column

I have an existing dataframe with 2 columns. I want to create a third column (s) based on these specifications: Current value of s = prior value of s + [prior value of s * current value of X2] I have managed to get some calculations as such which…
Aksel Etingu
  • 195
  • 2
  • 15
0
votes
2 answers

WPF Application DispatcherTimer not working correctly (lag)

I have been trying to run a very simple application that moves a 20 by 20 pixel square 20 pixels to the right on a canvas every second. I am using a dispatchertimer to fire the event every second. The problem is that the square doesn't move to the…
Supahotfire420
  • 441
  • 1
  • 4
  • 10
0
votes
2 answers

How to fill NAs with the last date entered for each group

I’d like replace NAs in my column with the last date entered for that ID. Below is the example for one ID=1: to convert DATE_old column to DATE_new column below: DF = ID DATE_old DATE_new 1 1/1/2018 1/1/2018 1 NA …
Ana
  • 1,516
  • 3
  • 15
  • 26