Questions tagged [lag]

A visible delay between input and screen update.

Filter by
Sorted by
Tagged with
0 votes
0 answers
83 views

Huge framerate drops in an empty scene - what is going on?

I would really appreciate you guys helping me out with a baffling problem I am experiencing. I have a near-empty scene. It has one object, i.e., a ball bouncing in it, targeting 60FPS. I am deploying ...
Cato's user avatar
  • 83
0 votes
1 answer
134 views

What is the general technique of optimizing a game's lag by updating thousands of mesh vertices using DOTS parallelism?

*Edit: I finally figured out after some profiling that the problematic code was not actually the ones part of ECS, but this line over here: ...
rasputin's user avatar
0 votes
1 answer
216 views

WebGL FPS is sometimes higher than max. FPS setting - why?

In lots of WebGL online games (all games I tested were made with Unity), my FPS is sometimes higher than the max, FPS setting of my PC (75), but why?
EarthAndMoon's user avatar
1 vote
0 answers
842 views

Unity 2021/2022 laggy/stuttering Android performance compared to Unity 2020

I have been working for quite a lot of time with the Unity 2020.3 LTS releases and everything seems to be running smoothly when building for the Android platform. I recently decided to upgrade the ...
Panagiotis Iatrou's user avatar
0 votes
0 answers
66 views

Application.WaitForAsyncOperationToComplete() causes game-freeze in Editor

I'm creating a pause menu for my game and I have two scenes: a menu scene (Scene1) and a game scene (Scene2). I load them using the command 'SceneManager.LoadScene(1);' for the menu scene and '...
AshwinTheGammer's user avatar
0 votes
1 answer
775 views

Visual stutter from "Editor Loop" on project with few assets

I have a plane, a first person camera, and a player controller in a scene. There's a weird stutter in the game preview even though there are not a lot of assets in the project, average FPS, and don't ...
jenkatan29's user avatar
0 votes
0 answers
526 views

Pygame lags on simple game

I am trying to build a game in pygame, however any movement feels laggy. Its not a big lag but more like a small stuttering. I created a boiled down version to showcase this. The code in the git below ...
Ogorf's user avatar
  • 1
0 votes
1 answer
85 views

Unity 2021 Silicon Build Performs Poorly with DynamicGI.UpdateEnvironment()

I recently upgraded my large-scale RPG world project from 2019 LTS version to 2021 for the native Silicon support. I have a Silicon based Mac and even though the game seems to have smoother FPS in the ...
Sarp Saysel's user avatar
3 votes
1 answer
70 views

Handling acks during 1+ second packet loss with Glenn Fiedler's Reliable UDP Solution

I've read through Glenn Fiedler's awesome guide on Reliability over UDP and I'm currently working on my own implementation for fun and learning purposes. One pretty cool piece of Glenn's guide is that ...
sailormoon's user avatar
0 votes
0 answers
126 views

Huge input lag in C++ DX9 application when having many entities

So I have created a 2D game engine used for creating top down singleplayer shooters and now I encounter some massive input lags when I have spawned a few entities (maybe 20 opponents). This results in ...
frontend-newb's user avatar
0 votes
1 answer
55 views

Lag Spike When Creating Model

I am creating a game using OpenGl in c++. Whenever I create a new model while the game is running, such as fire a bullet, there is a huge lag spike. The function that creates the model is below. ...
Aubrey Champagne's user avatar
1 vote
0 answers
78 views

How can I deduce my RPG lags for better performance? [closed]

Okay, so I've started making a game using Khan Academy's Processing JavaScript, and I'm trying to delag it a bit since the framerate is very shaky. So, I've taken the advice of someone, and they told ...
Potato's user avatar
  • 111
0 votes
2 answers
218 views

How to give a certain scene different preference settings then other scenes unity

In my unity game that I am creating there are 4 scenes. 3 of those scenes rely on a backdrop because they are the main menu, death screen and the escape screen(for when you escape the place). ...
Object's user avatar
  • 289
0 votes
0 answers
130 views

How do I solve this physics slowdown?

within 10-20 min without touching the android game it would lag. Here is the Unity Profiler Debug. This if the fish clicker script where I started noticing lag. ...
MM1Content's user avatar
3 votes
1 answer
7k views

Unity FPS Drop on Android Low end devices

I have stumbled upon an issue that is now taking a lot more time than I assumed. I have a game that has a lagging issue and I have tried almost all techniques that I could remember to fix that but now ...
Syed Munim Raza's user avatar
1 vote
0 answers
415 views

Unity post processing Bloom lags on mobile

I made my (first) game today and noticed, that it looked kind of boring, so I decided to add some bloom to my camera and it was looking waaay better. The only problem was the performance, it dropped ...
Liquid's user avatar
  • 11
2 votes
2 answers
942 views

Lagging problem with chunk creation in Godot

We are developing a 2D game in Godot and we are stuck while trying to divide the map in chunks. Namely, the scene is a forest, where trees spawn positions were generated by noise: since the trees are ...
Cristofer Villani's user avatar
0 votes
1 answer
2k views

How to make a smooth projectile in roblox?

I am trying to make a projectile (Energy ball) for my game. I am using body velocities, but the issue is is that it seems laggy. I shoot it then half a second through flight it seems to stop in mid ...
user avatar
0 votes
2 answers
511 views

Unity Custom InputManger for Cross-Platform Input

I have been working on my game for quite a while. one of its key features is cross-platform local multiplayer for example 2 players on 1 keyboard and some people on the controller. here is the 4th ...
FlamesWillBurst's user avatar
0 votes
0 answers
303 views

How to fx low FPS in a single threaded Directx9 3D game

We're having issues with low FPS in a third-person shooter 3D game. This happens when you have too many polygons on screen. The FPS is locked to 60, and the gameplay is fine, but the moment when you ...
ryspbsk's user avatar
0 votes
1 answer
117 views

What aspect of performance should I be optimizing my code towards? (asynchronous chunk modification)

Preface I realized that the root of my question is a little simpler than all of the details below make it out to be. All other things being equal, what is the most important system aspect to optimize ...
MPStoering's user avatar
0 votes
1 answer
393 views

How do online games deal with lerp overshooting?

From what I understand, when you lerp in an online game, you travel from point a to b based on the elapsed time since the last update. The problem is when you have a higher latency, and you start ...
Dup Dup's user avatar
0 votes
1 answer
608 views

lag compensation for slow bullets (opposing players perspective)

I have figured out how the server is suppose to "rewind" for bullet collisions so that when you hit a player on your screen, the server will also say you hit them. However, when you press a key to ...
wilson wilson's user avatar
1 vote
1 answer
520 views

My Java Game's movement looks awfull. Maybe Problem with Thread.sleep

I have a big problem with my Java games. In every game I make the movement of the player and objects just looks awfull. The framerate is 60 fps without any problems. But the movement looks extremly ...
MarTUN Up's user avatar
1 vote
0 answers
45 views

Handling game message packet loss at low speed and at a microcontroller level

I read this: How do I handle packet loss in a client-server network model? ...But I'm looking for more advice. Currently I'm implementing my own lazertag vests. I'm programming hardware (8051 ...
Mike -- No longer here's user avatar
3 votes
1 answer
798 views

Lag Compensation in a Real-Time Game

I have been trying to implement some lag compensation techniques for a real-time game, I've found some good resources online, but I don't think I fully understand the server-side part of the problem. ...
Paul's user avatar
  • 67
1 vote
0 answers
265 views

How should I implement lag compensation in my racing game?

I've looked around and I see a lot of discussion about lag compensation for FPS's, but none for racing games. I know Mario Kart uses some sort of interpolation for other racers, but it doesn't ...
kensho20's user avatar
0 votes
0 answers
365 views

The websocket messages in my online game are being served too slow

Im attempting to make a online game in python, though I have ran into a problem. Basically I want the game to be playable in many regions, but the websockets are to laggy to be played in farther ...
Dup Dup's user avatar
0 votes
1 answer
3k views

how to do client side prediction with server side collision detection?

I recently started working on my first multiplayer game and learning multiple game server mechanics. The game itself uses mouse movement. For the first version I used a very simple approach, where ...
SpeekaDievs's user avatar
0 votes
3 answers
789 views

Alternative to canvases (unity)?

I have a Unity project which requires a bunch of Canvases and, surprise surprise, they're creating a lot of lag. I've already turned off the graphics raycaster for every single one, but they still ...
jack gallerdude galler's user avatar
2 votes
1 answer
2k views

Delayed linear interpolation for networking

I'm trying to implement the delayed snapshot interpolation presented at Valve's article and also Gambetta's. My current implementation is almost identical as described in the 'Multiplayer object ...
Lucas Montenegro Carvalhaes's user avatar
0 votes
2 answers
2k views

MMO Server with C# asynchronous sockets performance

I have developed a 2D RPG MMO client / server. The server is developed in C# with asynchronous sockets. It is a pretty simplet implementation. The server gets the client's input / coordinates and ...
hapablap's user avatar
  • 111
3 votes
2 answers
3k views

Server reconciliation for multiplayer games

Reading the usual resources on multiplayer games (1, 2, 3); I have started working on my own multiplayer game. I used a naïve approach that for every input I receive from a client, I immediately run ...
Ron's user avatar
  • 656
0 votes
1 answer
967 views

How Many Entities can the Unity Game Engine Handle Before it Starts to Lag?

I am building a player model for my game, the model is very complicated due to its ability to be customizable. A single player entity can have 70 + entities including the head, parts to the face, arms,...
Kenneth Carrington's user avatar
2 votes
1 answer
2k views

How to solve "server lag" problems that break the game

How do real-time multiplayer games deal with latency problems (or “server lag”)? Imagine an online fighting game where 2 players battle head-to-head in real time. When a player performs an action, ...
clickbait's user avatar
  • 257
0 votes
0 answers
320 views

Unity has extreme lag while deleting trees from terrain

So I have a terrain with sections of water in it. I just placed a whole bunch of trees in the scene with mass place. However, it spawned trees in the water which I obviously want to remove. But when I ...
mr-matt's user avatar
  • 2,759
1 vote
1 answer
174 views

How to prevent clients from stuttering while keeping the game in sync in multiplayer Pong?

I wrote Pong in multiplayer. The clients all run their own game, but I have an authoritative server which enforces its ball position onto the clients. The game is in sync and playable, however, there ...
Z0q's user avatar
  • 155
0 votes
1 answer
489 views

Lag in collision detection

I am a beginner with PyGame and am currently making a simple game using but I am having difficulty with the collision detection. When the game runs, the response to the collision detection (printing ...
Lily Y's user avatar
  • 1
0 votes
1 answer
99 views

JVM voxel game engine lag spikes

I'm experiencing short lag spikes after some voxel chunks have been created while not moving the camera around. I profiled the application: the JVM implementation uses a lot more memory, about 2.5 ...
Russoul's user avatar
  • 282
3 votes
1 answer
1k views

LibGDX - FPS drops

I've been trying to record some gameplay footage of the game I'm currently working on, using the Android SDK and ADB to do it. Whilst the game runs at constant 60 fps in my medium-end phone, as soon ...
Francisco's user avatar
  • 231
1 vote
4 answers
7k views

A* pathfinding takes too long, shortcuts needed

So I have a game where the player can move on a grid 108 X 192 large. It uses a simple A* path-finding algorithm to move. Unfortunately, After 0.03 seconds, it would have only looked at about 300 ...
Demandooda's user avatar
0 votes
2 answers
257 views

The tolareable lag range in a multiplayer game

I am programming a multiplayer game. I calculate the ping in ms as : ping = the_time_i_recieved_pong - the_time_i_sent_ping I implemented client-side prediction ...
Oğuz Eroğlu's user avatar
1 vote
1 answer
197 views

OpenGL Applications Bring computer to halt

Whenever I run any application that utilizes the OpenGL interface, my entire computer comes to a halt, but it doesn't do this when it utilizes the DirectX interface. I run both Linux (Ubuntu 15.10) ...
Alexander C. Solon's user avatar
1 vote
2 answers
5k views

How can I simulate the effects of network latency to test my lag compensation?

I am trying to observe the effects of lag compensation in my game by increasing my ping to 200+, adding loss, and by the limiting bandwidth to simulate wide area network delays using Network Emulator ...
user1933466's user avatar
1 vote
1 answer
613 views

Too many if statements cause lag? [closed]

I am trying to make a vertical scroller game with collision tiles on both sides. I'm using Libgdx and android studio. The problem is that i have made every tile as an object with a rectangle for ...
Morti's user avatar
  • 11
3 votes
2 answers
3k views

2D Game has very bad lag because of one script?

I am making somewhat of a flappy bird clone (mostly for practice) and everything works fine, but it is just really slow with a low FPS of 13 and a max FPS of 28. Why would this be? So I ran a check ...
Abe Y 's user avatar
  • 41
6 votes
1 answer
692 views

Applying the input for the always-moving player in the multiplayer game

I've read several articles published on gambrielgambetta.com, gafferongames.com plus some pages about how Valve handles multiplayer networking in its games but I still can't get it how to implement ...
nmindiedev's user avatar
4 votes
1 answer
3k views

How to measure packet latency?

In the context of lag compensation, one needs to know when the command is instantiated on the client (this can be named as "command execution time" as well). AFAIK, there can be 2 methods for this: ...
Ali Ok's user avatar
  • 215
2 votes
1 answer
286 views

Lag compensation in rocket game context

I have read a lot of papers recently to understand the lag compensation concept recently. They were all about the same context: shooter game where bullets move in infinite velocity. The most ...
Ali Ok's user avatar
  • 215
2 votes
2 answers
8k views

What makes Minecraft so CPU intensive, and what could be done to improve it? [closed]

Recently I've been searching for VPSes that allow Minecraft servers to be hosted, and surprisingly very few do. Most allow for games - but Minecraft in specific is disallowed by many. Now it's fairly ...
Jon's user avatar
  • 251