Major lag in Surveyor 2.0 when editing an older route

Okay, it's 7:29 AM. When I opened the route in Surveyor 2.0, it was very choppy. Setting the priority to "high" in Task Manager made it less choppy, but it's still choppy. There must be something else causing it. I don't know what because I just started the computer, so there shouldn't be anything else running.🤔
There are many things that cause this including Windows updates, a dirty internet cache needing clearing, a number of background tasks that run on schedule and need to finish up, etc.

Go to the task manager and click on start-up items. In Windows 11 it's a button located on the left that looks like a meter, while in Windows 10 it's an easier to find tab.

Look for unnecessary things running at startup such as your browser, chat applications, Discord, Microsoft Teams, and Spotify. All of these things can run when you want to use them rather than running on startup which uses resources and bogs down the computer.

What you want are drivers for your soundcard, antivirus, any required links such as Phone Link if you use that including Mobile Devices.

When I start up my computer in the morning, I always check for Windows updates first before running any programs. This ensures that they are out of the way and not impacting the performance and what I am doing. Sometimes, I'm not lucky but most of the time this isn't a problem.

In addition to regular Windows updates, I keep other programs and drivers up-to-date as needed. This requires a manual check and avoids automatic checks if they do that.
One of my manual checks is done using a PowerShell terminal with admin rights aka terminal (admin), and then running winget.

At the prompt, type in:

winget update and press enter.

This will list anything that needs updating.

Then type in:

winget update followed by the id (name of update) using the exact spelling in the update.

Code:
PS C:\Users\jcitr> winget update
Name                             Id                            Version       Available      Source
--------------------------------------------------------------------------------------------------
Mozilla Firefox (x64 en-US)      Mozilla.Firefox               129.0         129.0.1        winget
Microsoft Edge                   Microsoft.Edge                127.0.2651.98 127.0.2651.105 winget
Microsoft Edge WebView2 Runtime  Microsoft.EdgeWebView2Runtime 127.0.2651.98 127.0.2651.105 winget
AOMEI Partition Assistant 10.4.0 AOMEI.PartitionAssistant      10.4.0        10.4.1         winget
Discord                          Discord.Discord               1.0.9155      1.0.9157       winget

These are the programs I can update manually. You may be asked to agree by pressing Y and a progress bar will run. Sometimes, the actual install wizard will run.

To update Firefox, type in:

winget update Mozilla.Firefox

As I said, there are many other things that can cause this, so try this first and then we can look elsewhere.
 
When your running Trainz do a task mgr n see what is running in memory?

Screen shot if you can so we can see n possibly offer some advice.
 
I'm working on a fictional railfanning park. This route was originally made for an older version of Trainz, but I'm updating it to Trainz 2022. I'm experiencing major lag in Surveyor, but I don't know what's causing it. I deleted most of the trees and that helped a little bit, but it still lags a lot. I can still get things done, but it's distracting and annoying. I've started replacing traffic lights with unsignalled roundabouts, but it's still lagging. There's hardly anything on the route right now besides roads, tracks, water and land formations. I feel like this shouldn't be enough to cause that much lag.

It doesn't lag at all in driver.
Since you're just running Trainz Surveyor - disable your internet connection and then open Trainz and try. You don't need internet to just run Trainz. If it is faster with no internet connection then we need to look elsewhere.
 
Why are you running two antivirus programs?

Running two concurrently can cause performance problems. Disable one of them and exclude your Trainz program and data-folder from real-time scanning. Antivirus programs will scan your data every time you open an asset.
 
Why are you running two antivirus programs?
Interesting story. I grew up using Kaspersky as it was my fathers go-to app. He swore by it. He even got his parents to install it. I used it out of sheer brand recognition.

But one day, I noticed that when searching on Google Chrome, it kept redirecting me to Yahoo. I was told by a computer forum that Kaspersky isn't that good at searching for malware, and they recommended Malwarebytes.
Upon installing Malwarebytes, it immediately noticed some malware, deleted it and the problem went away. I should probably get rid of Kaspersky.
 
You might look at - In Trainz Startup menu under Performance and advise whether PhysX setting is checked or not. I don't have mine checked. Also check on far right under Dev - Set Maximise Compatibility under Compatibility Mode. Once selected.. shutdown Trainz and crank back up and see if better.
 
I would crank back your graphics settings too. There's a lot going on with the graphics and your 2080 is an "older" (sic) video card.

In your performance settings, lower the settings a bit. Try these:

Shadow quality: High
Shader quality: Basic (Basic used to be Standard)*
Texture detail: Normal
Post Processing: Low
Water quality: Low
Detail scenery: Clutter + TurfFX
Antialiasing: 2x

*Basic will also disable PBR texture-effect, making those textures 2d instead of 3d.

In game:
Draw Distance to 8000m or 10000m
Scenery Detail: Normal
Tree Quality: Normal
Post Processing: Low

Uncheck Process Objects Behind Camera.

If this works reasonably well, you can always tweak up any settings you have changed. I run these settings, except with Process Objects Behind Camera checked, and Water quality, and the lower Post Processing on High even on my RTX3080. These settings not only allow for better performance on busy routes, but they also lower the temperature of my GPU substantially.

You don't need to see 22km out unless you have grand vistas. I find that this really impacts the performance if there's a lot of buildings and trees because even though we're 22km away, TRS22 still wants to render the shadows that we never see. This causes awful lag due to the shadows being drawn in the distance. I find too that with some routes, such as mine in particular, with lots of trees and buildings, the long draw distance is a waste of energy because there's nothing to see out of a tree tunnel or through a city.
 
I'm a bit confused, though. This very expensive computer should have all the hardware necessary to run the game on Ultra without any lag. Plus it's only happening on one route. I checked and none of my other routes are like this, even one that's the entire east coast of North Carolina with a fictional high-speed railroad going through it. None of the other routes lag this much.

https://www.instagram.com/reel/C-6SX15x3db/
https://www.instagram.com/reel/C-6TtXjuA3A/
https://www.instagram.com/reel/C-6XYfWNWSm/
https://www.instagram.com/reel/C-6aIi4AKo8/
https://www.instagram.com/reel/C-6dCANti5H/
https://www.instagram.com/reel/C-6exIIs8zl/
https://www.instagram.com/reel/C-6gvQBtaaz/
https://www.instagram.com/reel/C-6om_nMbg7/

By the way, I had the scariest Trainz-related dream last night. I dreamed that I was driving a fire truck on my way to a house fire, but on my way there, someone selected the road I was on, then deleted to, which also deleted the truck and me. Then I woke up.
 
Reaching out there I know.. Since it is only occurring on 1 route.. Have you gone into Content Manager and looked at Faulty Assets/Dependency issues, especially those that may pertain to the route you are having issues with? Maybe a DBR or EDBR is in order? After any DBR/EDBR I always shutdown Trainz and crank it back up. Again, Just reaching out there.
 
Last edited:
By the way, I had the scariest Trainz-related dream last night. I dreamed that I was driving a fire truck on my way to a house fire, but on my way there, someone selected the road I was on, then deleted to, which also deleted the truck and me. Then I woke up.
Interesting! I wonder what would have happened if you hadn't woken up? Left in limbo?
 
Interesting! I wonder what would have happened if you hadn't woken up? Left in limbo?
No idea. What's really weird is that when the road was selected, time froze. The truck went silent, including the horn and siren, but I could still move freely and even attempt to blow the horn. I wonder what would've happened if I left the truck.
 
I don't have enough Trainz knowledge, hopefully someone who does will assist, but if you go into Driver/Surveyor, then Settings/Gen/Adv you can click on Show Performance for Driver and/or Surveyor.
I specifically looked at Worst Buffer Count, Worst Index Count 1st and both results pointed towards the same asset/kuid. I then looked at Worst Script Library which kept going higher and higher and it pointed towards a specific .gls file. Anyway maybe someone with more knowledge can pipe in. You can try it to see on the specific route you are having issues with.
 
A bad script will definitely do something like that because it's eating up cycle times, and hogging resources that can be used elsewhere. In the olden days programmers needed to watch loops and other programming because they could send the computer off into la-la land and freeze out input from users.
 
@janathan Glad it all worked out. Funny, that .gls script I mentioned above was a signal. Was going crazy. I love forums because I try to learn new things while helping others. Today I think we both learned something new and one day we can pass it on to someone else here as well. I am researching Polys, Draw Calls and LOD now.
 
Back
Top