what makes a game lag?

Hi, since I’m trying to build a multiplayer game And I want it to run smooth with little bandwidth I was wondering what was the thing that make a game lag ? (eg. complex animations, detailed textures, frame rate, etc.). thanks.

Dial-up causes lag!

ISP being a pain and many people downloading things on Internet Explorer, Firefox or Azureus :frowning: It happens most of the time here, unfortunately, since I live with a bunch of freeloaders.

Yes of course… I mean in the game itself what could cause lags.

with online games there are hundreds of things that can cause network lag. for system lag, Not enough ram wil make your system use virtual memory, so your hard drive will be doing the ram swaps insted of your ram just doing it.
outdated graphic cards, outdated drivers… using your neighbours non-pass word router. TSA wiretapping your little sister as a terrorist suspect for owning a pirated copy of redneck rampage.
Spyware
malware
Virus
non-updated windows
too many services running in the background.
too many programs running in the background.
File shareing application running in the backgound.
Microsoft deciding to supprise you with an update!
Your virus scanner updating in the background.

SETTING UP AUTO UPDATE ON ANY SOFTWARE, best to just do it manually .
outdated network adapter drivers.
The server your are playing on doubles as a porn file server.

inside the game:
Textures are set too high of resolution
Geometry set too high
Shaders set too high
hardware sound set to ON if you do not have hardware sound card.
Not enableing hardware sound if you do have hardware sound.
Using Voice over IP on dial up or DSL

Sure but I mean what could cause lags in multiplayer regardless of the internet connection. hope I explained myself .

i think that ingame things don’t really have much to do with lag, lag is related to how strong your net connection is, delay is caused by all ingame things like graphics set to high, a crapload of buffers(shader, light, all that stuff)

i play a lot of dota(warcraft3 map on Bnet), lag usually builds up when YOU don’y have a preety good connection with the HOST

my oppinion, plz don’t burn my soul for my lack networking:)

Ok, I wish my game could be played by almost any kind of connection (from dsl to cable) in game rooms with many players to do that I need to reduce the lags as possible. Well thanks.

Ok I isolated the non-network stuff, so you do not have to stop reading after the first sentence.

Not enough ram wil make your system use virtual memory, so your hard drive will be doing the ram swaps insted of your ram just doing it.
outdated graphic cards, outdated drivers…
Spyware
malware
Virus
non-updated windows
too many services running in the background.
too many programs running in the background.
File shareing application running in the backgound.
Microsoft deciding to supprise you with an update!
Your virus scanner updating in the background.

inside the game:
Textures are set too high of resolution
Geometry set too high
Shaders set too high
hardware sound set to ON if you do not have hardware sound card.
Not enableing hardware sound if you do have hardware sound.

I’m sorry if I’m to harsh, but I think that, if you lack this type of knowledge, your are in no conditions to make yourself a game.

Lag has to do with your connection, not with your game. Put any game in a bad connection and you will probably have lag. Of course that, the less information you need to transfer, the less the lag is going to be noticed.

It’w what I was saying, if a game contains too many ‘dynamic’ particles like explosions etc. you will lag even if you have a good connection…
I wanted to know how to optimize my game to make it lagless.

But you don’t need to transmit that kind of thing!

You are worried with something that, for that to become a real issue, you need many other things. But if you knew those other things, you would not be asking what they are.

Example:
You want to make a multiplayer game. OK
What do you know about networking, transfer protocols, etc?
You will need to know those if you want to do this game. When you study that and learn, you will learn the answers for most of your questions.

Well Falk, the first thing you worry about when making a multiplayer game are lags, and it’s not so easy to estimate them like you think. infact I can’t find a good tutorial about this.:evilgrin:

What do you know about networking, transfer protocols, etc?

My game would be written in c++,There are a few networking protocols written in c++ that I could use, like raknet. See you.

On a single player (and multi-player) one of the biggest things is your graphics card. If you have a very powerful one, and it still lags it’s your internet.

I never said it was easy.
I really don’t think you got my point.

What previous experiences in development of software do you have?
Aren’t you trying to give a step larger than your legs? (i 'm not sure if this expression exists in English).

I got your point, you say that who talk about such things is new to your view, well Ok it’s your opinion. good bye.

Why do you ask for help and ignore the advices you get.
What are you? 9 years old?

I don’t ignore the advices I get,
of course the smart ones…

I’m glad you opened my eyes to the reality that is my complete ignorance regarding software development… All those years of study, all wasted, since I obviously can’t provide a smart advice. Maybe I should quit grad-school…

Embrace this wisdom you showed here and you will be able to achieve anything, all by yourself!

Goodbye!

Ok… ok… this conversaion makes no sense. good bye.