insane delay in my map?

Status
Not open for further replies.
Level 8
Joined
Mar 3, 2009
Messages
327
I have a map with a problem, and no idea whats causing it. After a few minutes in game, a massive delay builds up, but the fps is still 60 or so. The delay just gets worse and worse...
i dont think it's leaks, dont they tend to reduce your fps?

I've attatched the map. The controls are arrows to move, select to shoot. The main buildings are bugged too, you cant see them unless the center of them is in your camera view. But the main problem here is the delay, i think i know how to fix the rest.
 

Attachments

  • fps.w3x
    93.5 KB · Views: 67
Last edited:
Level 8
Joined
Mar 3, 2009
Messages
327
@crazed seal:
1. No
2. obviously
3. quite possibly
@doctor super good
no im not using wait for conditions. You could download the map and have a look at it :)

edit: while im at it, how can i use jass to refer to my unit type, h00A?
 
Last edited:
Level 8
Joined
Mar 3, 2009
Messages
327
thanks. Could you tell me exactly what the leaks are and how to fix them in case i dont know?

ive been thinking ill remake the map when sc2 comes out anyway. Apparently its got more natives for the kinds of things i wanted to do but couldnt with wc3.

anyway... maybe it only lags out on bnet.
 
Level 5
Joined
Dec 21, 2008
Messages
101
Well I've just started learning to remove leaks with the help of Leak Check and This :p

Red = Leak
Unit - Create 1 Marine for (Picked player) at ((Picked player) start location) facing (Center of (Playable map area))

(Suggested Fix)
  • Set MyLocation = (Center of (Playable map area))
  • Unit - Create 1 Marine for (Picked player) at ((Picked player) start location) facing MyLocation area))
  • Custom script: call RemoveLocation(udg_MyLocation)
the other one is a bit complicated for me i guess or im just lazy hehehe.. but all of them are just location leaks..
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
No you can not lag in singleplayer.

All orders are issued imediatly as you give them cause there is nothing to delay it.

The closest you can get to lag in singleplayer is if your frame rate drops into single figures, the mouse loses responsiveness and orders can take a few frames to issue cause the interface is updated ever few seconds.

You are probably confusing low frame rate with lag. Low frame rate is not lag.

Low frame rate is caused by some piece of hardware in your compuer bottleknecking the game so it can not run at full frame rate. This usually is the result of a badly made game (map in the case of WC3) or a game with to high system requirements for your PC.

Lag is when commands from the user are noticably delayed before the game aknowledges them. There are multiple causes to lag. The most common is a poor internet connection in syncronized multiplayer games, the result is that it takes a long time for an order to sync and as such you might have to wait many seconds before an order is carried out by the game. Another cause of lag is extreemly low frame rate, whereby the frames are comming so slowly that there is a cognitive gap between doing something and it happening on screen, however this is purly a side effect of the real problem as the orders are being sent instantly but are comming in slower due to the computer not coping with the game and so should be referd to as low frame rate and not lag (or atleast frame rate lag so as not to be confused with connection lag).

In warcraft 3, people get confused cause in multiplayer games you can get 2 kinds of lag happening.
Response delay is when the host is in a geographically bad position or has a bad connection and can not send out orders at a reasonable rate so orders can be put into que for up to many seconds before they are carried out. All the time the game runs normally, just you can not do usual tactics like kiting mobs or retreating from a battle (all ability to micro is lost).
Stuttering is when a player is in a geographically bad position or has a bad connection so can not update with the host in time (host is receving orders slower from him). The result is everyone in the game is put on hold until he updates making it look like framerate has hit 0 or very low numbers. If the bursts become bad enough, eventually you start to get the waiting for player dialog after a few seconds. Despite the whole game appearing to freeze and hang, the game is actually still running at normal frame rate and it is not caused by PC bottleknecks.
 
Status
Not open for further replies.
Top