Dorset 3

A fantastic patch for MSTS 1 that adds immense extra capabilities and fixes. See more at http://mstsbin.uktrainsim.com

Moderator: Moderators

NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

Dorset 3

Post by NeutronIC »

I'm writing a tool to remove extra LoD objects from shape files, some folks over on train-sim.com have been testing the technique manually and found that by doing this they can start to use the big routes that normally throw up with inability to load files all the time. The theory being that MSTS can handle poly's now with most graphics cards people have got, but since MSTS is bad at memory, removing the LoD's helps a lot - even with the patch which increases the memory limits, if you reduce all the shape files down then it has that much less to load in the first place. The tool also ensures that every shape file is compressed when it's finished, there are quite a lot which aren't.

I ran it on Dorset 3 last night as a first test, taking about 45 minutes to run it reduced the shapes folder from about 27mb to about 18mb and in the process wiped out nearly 3,000 LoD shapes. It also resets distance levels so they are all the same.

Also using the patch, I just ran with maximum detail settings from Dorset to a few miles past Woking, lowest frame rate was about 9fps, minimal stuttering, and this was an activity with plenty of other AI traffic all the time as well so my bet is that a chunk of the stuttering was AI traffic starting.

I've got some more work to do on the tool yet to tune how it reconfigures LoD's and also make it capable of processing stock as well. Experiences over at train-sim.com indicate that with this processing you can run routes on max detail even without the patch in many cases.

I take no credit for the idea, that's Gary Gagnew's credit, I just wrote a quick tool that makes use of Okrasa Ghia's "TK" msts tools .NET library to do automatically what his Archibald helps you do manually :)

Matt.
User avatar
andrewgadd
Well Established Forum Member
Posts: 910
Joined: Sat Aug 02, 2003 1:22 pm
Location: CME Office, Bodgit & Scarper Engineering.
Contact:

Post by andrewgadd »

Sounds good Matt,

The default scenery shapes are the worst offenders here, some shapes (even simple one's) have many LOD's!!!
Could this affect RouteRiter ability to condence routes?

Another practice I've found, is to build as much scenery as possible into one shape, i.e. on my old route I managed to build a teminus station including fences, misc. buildings, trees, etc. as only one shape. It makes one hell of a diference. And if you can use the same .ace files over again, better still!!!

Andrew.
tinsley
Very Active Forum Member
Posts: 1247
Joined: Tue Dec 04, 2001 12:00 am
Location: LONDON

Post by tinsley »

Thanks Matt,
A good idea that will help MSTS to run better..and that is always a bonus.. :wink:
Georges
User avatar
petethetim
Very Active Forum Member
Posts: 4599
Joined: Sun Oct 16, 2005 9:27 pm
Location: a Secret Location in Belfast
Contact:

Post by petethetim »

Will It Require a lot of Knowledge to Use It Matt?
Regards & Best Wishes

Peter
PETETHETIM
NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

Post by NeutronIC »

No, once you have the .NET Framework installed (you need it for Route Riter also I think?) then it's just a matter of pointing it at a folder full of shape files and pressing the start button, it does all the rest itself.

Shouldn't affect any other tools since it's just making a shape file smaller, the basic shape is not touched, just the lods removed.

I think that between this and savetex the amount of space used in memory ought to be considerably reduced - or if not, then certainly the amount of data being shifted in to memory should be.

More testing to do yet though before releasing it, need to make sure it doesn't have undesirable side-effects. But i was quite happy to go from Waterloo through Clapham and out the other side of Woking without a problem! :)

GaryG has just got back to me with his manual approach for this so i'm going to get that automated, add the ability to process sub-folders (which will make stock processing rather less tedious) and then give it another go - with all the lods removed on stock I imagine that'll be a lot less memory too. I'm also going to see whether compressing eng/wag/sd/con etc files is a) possible and b) an improvement. I figure if it Okrasa's tool can do it, it can't hurt - it's all less parsing that the MSTS engine has to do up front, once it's in binary format it's in exactly the format that it will be used in-memory.

Will keep you all updated :)

Matt.

Matt.
User avatar
petethetim
Very Active Forum Member
Posts: 4599
Joined: Sun Oct 16, 2005 9:27 pm
Location: a Secret Location in Belfast
Contact:

Post by petethetim »

Hi Matt
Net Frame Is that the Thing Route Riter or Con Builder requires ?? If Yes I got It
Regards & Best Wishes

Peter
PETETHETIM
NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

Post by NeutronIC »

Yeah it's just a simple windows app, doddle to run, took about 30 minutes to process Dorset Coast route shape files.

Matt.
User avatar
jbilton
Very Active Forum Member
Posts: 19267
Joined: Fri Oct 10, 2003 12:08 pm
Location: At home ..waiting to go to Work.
Contact:

Post by jbilton »

Hi Matt
Was there any outcome to these tests?
Cheers
Jon
------------------------Supporting whats good in the British community------------------------
Image
User avatar
seern1
Been on the forums for a while
Posts: 165
Joined: Fri May 07, 2004 12:49 am
Location: Virginia, USA

Post by seern1 »

This sounds very promising. I have know Gary Gagnon for several years and he enjoys tweaking MSTS to gets its fullest potential. A tool like this will be of great help. I look forward to using it.
Activities are what makes MSTS run

Sharon Evans
Glen Allen, Virginia
User avatar
ccsdc
Very Active Forum Member
Posts: 2804
Joined: Thu Apr 10, 2003 8:49 pm
Location: Poole in Sunny Dorset

Post by ccsdc »

I got hold of Matt's LOD killer utility this weekend at the Aldershot show, so I shall be experimenting on both Dorset Coast and Thames Mersey in the coming days.

Dave
Creator of the Thames-Mersey and Dorset Coast routes.
Image
User avatar
systema
Very Active Forum Member
Posts: 3829
Joined: Mon Sep 08, 2003 8:00 pm
Location: The Heart of Cheshire

Post by systema »

Matt,

A couple of questions.

What's Savetex?

Will your tool allow the distance all objects appear to be varied, that is can you set it at what you like?

Looking forward to trying this on MidEastPlus.

Mick Clarke
User avatar
jbilton
Very Active Forum Member
Posts: 19267
Joined: Fri Oct 10, 2003 12:08 pm
Location: At home ..waiting to go to Work.
Contact:

Post by jbilton »

ccsdc wrote:I got hold of Matt's LOD killer utility this weekend at the Aldershot show, so I shall be experimenting on both Dorset Coast and Thames Mersey in the coming days.

Dave
Hi Dave
Was there any improvement?
I got a new graphics card the other week, and using the bin patch still unfortunately get single frame rates at Crewe.
Cheers
Jon
------------------------Supporting whats good in the British community------------------------
Image
User avatar
ccsdc
Very Active Forum Member
Posts: 2804
Joined: Thu Apr 10, 2003 8:49 pm
Location: Poole in Sunny Dorset

Post by ccsdc »

Jon,

To be honest I have not had time to look at the fps rates yet. I have run both routes through the LOD killer though.

With Peter at UKTS now testing the TM4 DVD, I will probably have a need to revisit some TM activities, so I will test it out then.

Dave
Creator of the Thames-Mersey and Dorset Coast routes.
Image
User avatar
seern1
Been on the forums for a while
Posts: 165
Joined: Fri May 07, 2004 12:49 am
Location: Virginia, USA

Post by seern1 »

Ok, when is the LOD killer going to be available to us?
Activities are what makes MSTS run

Sharon Evans
Glen Allen, Virginia
User avatar
petethetim
Very Active Forum Member
Posts: 4599
Joined: Sun Oct 16, 2005 9:27 pm
Location: a Secret Location in Belfast
Contact:

Post by petethetim »

Dave Is it easy enough to use :-)
Regards & Best Wishes

Peter
PETETHETIM
Locked

Return to “[MSTS1] MSTSbin”