v.143 - RED: First Impact Update Notes - Part 2
SaptaZapta Wrote:"Town lag" isn't server lag, it's client lag.
Your client is going over those NPC's scripts trying to decide which animation to show, over and over.
A room with all of them is just as laggy as a whole town (the room in Aquarium which had them is both example and proof: that small room is laggy, the big town outside is not).
Funny anecdote here. Last night I had to model an approximation of a thrust limit on a elevation/airspeed flight envelope, but the equation I used had airspeed as the dependent variable, and the function used a drag parameter dependent on Mach number, so I needed to use an iterative numerical method. The drag parameters had already been determined for several Mach numbers; I just had to converge onto the airspeed we'd be at.
Now, I'll admit, I've been pretty lazy in regards to programming, so I've been a bit rusty. So I went to plan out my program. For the drag parameters I took the currently iterated airspeed and passed it to another function, which would convert it to the Mach number and then perform several "if" comparisons in order to select the correct drag value for the Mach number. It took me all the way until I was typing out that function and then copy-pasting several times to realize that making 150 value comparisons was fucking insane and ridiculous, and so I used an array trick instead.

So yeah, for a while I went full Nexon.
Reply


Messages In This Thread
v.143 - RED: First Impact Update Notes - Part 2 - by xparasite9 - 2013-12-04, 01:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)