You might think it's ONLY BECAUSE of the hosts connection, but it is NOT. Many games that can be multioplayer offlines (NPCs), such as Plan of Attack, can be played offline with bots.
Today I was playing some solo games and they were incredibly laggy. I just didnt get it, but today I was looking at some of my old codes, and I looked how newbie I coded. These games were massively laggy.
But, there are many games that like, 9 or 10 people play, and it runs smoothly ( D4RK3 54B3R 's games runs so smooth... :') ).
That might be a result of Trash Code?
But, what is Trash Code??
mob/verb/Say(T as text)
if(src.client)
if(T)
world << "[src] says: [html_encode(T)]"
OR
//blah blah....
if(Health == 0)
world << "blah blah. Whatever."
if(Health < 0)
world << "blah blah. Whatever."
Yes. Noobish if's and unnecessary lines.
Most lag is produced by HUDs. ( It has been BYONDly proved by me! (I took all HUD away from a game, and cpu lag decreased by 15 while playing))
On the 2nd example, it has 2 unnecessary lines. these lines could be 'fixed' by using || stuff.
I think that many games lag on multiplayer because of this. D4RK3 54B3R should give a class to newbie people, explaining to them how to decrease lag.
ANYWAYS
BE part of the Anti-Trash Code program! Post in the games forums which games should be re-coded!! FIGHT AGAINST LAG!
#Gooseheaded#
-Exophus