Staredit Network > Forums > SC2 Assistance > Topic: WASD Control without lag?
WASD Control without lag?
Aug 2 2010, 9:52 pm
By: Devourer  

Aug 6 2010, 10:29 pm shmeeps Post #21



That's pretty much what i said. The key press functions must be horrifically coded to cause that much lag. Either that or my triggers are. I'd assume the former though. You would think with how versatile those kind of triggers could be, a little more effort would be put into making them function normally.



None.

Aug 11 2010, 11:43 pm payne Post #22

:payne:

http://www.sc2mapster.com/assets/wasd-lagless-movement/

I haven't read much of the thread, but here's a link people might want to check. ;o



None.

Aug 12 2010, 7:24 pm shmeeps Post #23



Quote from payne
http://www.sc2mapster.com/assets/wasd-lagless-movement/

I haven't read much of the thread, but here's a link people might want to check. ;o
Interesting, haven't had a chance to check out the map, but if that really is "lagless" it would see to imply that either the camera pitch/yaw functions (doubtable) or the trigonometric functions of sine/cosine/tangent (very plausible) are causing most of the lag. If that's the case I assume someone could write a more efficient custom script for these, or even something as simple as a table look up for values.

I highly doubt it is the camera/pitch/yaw functions though, most camera classes rely on these (or quaternions, or a similar imaginary vector) to prevent gimbal lock. A function to get these values should be nothing more or less than looking for the private field data within the camera class.



None.

Aug 14 2010, 3:30 am shmeeps Post #24



I've converted a C++ quicksine/quickcosine formula into my map with WASD controls. I was hoping, if it has been calculated right, and assuming SC2 uses the standard C++/C# math library, these should run anywhere from 8-15 times quicker, and the performance benefit should be noticeable.

Turns out, it is noticeable. Lag spikes seem to be down quite a bit, resulting in an about .5 second response time that is steady (IE: Doesn't seem to lag any more or less). I still need to test it with more people playing to see if multiple users create more lag.

I'm going to look into optimizing this more, see what I can come up with.



None.

Aug 14 2010, 12:39 pm Syphon Post #25



Quote from Centreri
Really? Hrrm. That's fairly retarded. When it's faster to take a roundabout path like making dummy abilities just to detect button presses..

Lols.

That's the cost, I guess.



None.

Sep 2 2010, 10:48 am payne Post #26

:payne:

Updates: http://forums.sc2mapster.com/resources/tutorials/10104-tutorial-lagless-wasd-system-using-data-editor/#p1
:O



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: zsnakezz, jun3hong