View unanswered posts | View active topics It is currently Wed Sep 19, 2018 4:34 pm



Reply to topic  [ 3 posts ] 
 SWATH UserDefinedCommand 
Author Message
1st Sergeant

Joined: Thu Aug 21, 2003 2:00 am
Posts: 31
Location: USA
Unread post SWATH UserDefinedCommand
The conversation last week around SWATH vs TWX performance prompted me to check into something I had never used before. In SWATH everything is Java, which means everything is a Class. All the scripts I have ever seen are built on (inherit from) the UserDefinedScript class, but this weekend I finally built something using the UserDefinedCommand class. The functionality is quite different and you have access to the actual text buffer coming from the game. The performance improvement is really noticeable, and the text search and parse functionality is very powerful. If you have ever used regular expressions in Java, it's pretty clear they just wrapped this in their own functions and it would be easy to bypass those wrappers altogether if it made a difference.

Anyone else ever used this approach? I'm really curious now about how much improvement this would be. Would anyone care to suggest a good TWX script to benchmark against and how to carry out a test?


Sun Jul 08, 2018 9:55 am
Profile ICQ
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 3732
Location: USA
Unread post Re: SWATH UserDefinedCommand
Go into SK's game H. Try to mow figs without getting photoned by Xanos.

_________________
Image
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team


Classic Style Games Here:
telnet://Cruncherstw.no-ip.biz:2002

Web page from 1990's: https://web.archive.org/web/20170103155 ... adewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Sun Jul 08, 2018 3:15 pm
Profile ICQ WWW
1st Sergeant

Joined: Thu Aug 21, 2003 2:00 am
Posts: 31
Location: USA
Unread post Re: SWATH UserDefinedCommand
This is one of those times when you wish you could see the expression on someone's face as they write. How far do you expect me to get?

Let's see, Game H... Oh, here we go. There you are Ms C. Looks like Xanos has things pretty well in hand. Only 9 days in and 2.1 million figs, wow.

But I take it from this that the lawnmower script is the real test for speed. I would have guessed the same too. More to avoiding getting hit than just straight line speed, though. I know that much. Anyone want to help out with the finer points of gridding? A high performance grid tool for SWATH would be a big help to the noobs and less advanced players.


Sun Jul 08, 2018 3:55 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.