Frame Dropping due to Stockcar's from Trainz Forge.

NVMe Disk at 2%, GPU at 38%, CPU at 14% and memory at 46%. There's not a lot of maxing out going on and yet I'm getting about 15fps on my route.

I do have a constant message appearing in the logs, multiple times per second, saying "NamedObjectTable> Object tile mismatch..." which mentions the same named item.
Your results aren't related to the precaching, but the error makes sense. If a script is supposed to search for something that's supposed to match something else in a table and the object doesn't exist, this script will keep checking, putting the function into an endless loop as it searches continuously and eats up resources causing more performance problems.

Whoever wrote the script originally never took this issue into account, and the problem probably always existed but we were never aware of what was causing yet another performance issue. The script should have a timeout function built in such as check an X number of times before quitting, but instead this one goes off into a loop.
 
I don't think I get that but everything in game is like a delayed response like clicking to drive a route or see my rolling stock, just takes more then it needed to in past updates.
 
I don't think I get that but everything in game is like a delayed response like clicking to drive a route or see my rolling stock, just takes more then it needed to in past updates.
Check the logs and watch for streaming validating messages.
 
I am going to ask how I do that because like I don't know all the tech know how.
While in Trainz, click in the upper left corner to bring up the hidden 3-bar menu.

Click on the option to show the Launcher.
Click on Developer
Click on Show Client Logs.

This will open a window showing the activity while the program is running. If you see a lot of Validating asset <some kuid>, etc., followed by a bunch of warnings, then the program is precaching and checking the content while it's running.
 
Alright it shows the logging in and caching then it shows assets being shown as locally obsolete.
Yup, and there will be lots of them depending upon how much content you have. Your best bet is to let this finish before driving or even using Surveyor.

There's a way to speed up the process, but the precaching routine can take a very long time

Go into Trainz settings.
Click on the Dev tab
Click on Enable advanced debug tools.

Apply and close the window.

Click on Developer on the menu.
Click on Run trainzutil command...

Two windows will open up.

One will have a green bar moving back and forth while the other will let you type inside.
Put in prebuild and let it run.

This process can take a very long time, as I've said. We've seen 22 hours or more.
 
Well where is the Run Trainzutil command cause I clicked Developer on the menu.
Did you enable it first?

You need to click on Trainz settings on the Launcher, then click on the Dev tab, and click the box to enable advanced debug tools, before this will appear on the Developer menu.
 
Did you enable it first?

You need to click on Trainz settings on the Launcher, then click on the Dev tab, and click the box to enable advanced debug tools, before this will appear on the Developer menu.
So I ran it and there was where I could type in prebuild but no green bar I think.
 
It's weird cause my Util command runs pretty quick actually. No long wait though I am going to try it with the routes I might reinstall.
 
That's good. It means you don't have a lot of content. Mine ran for 22 hours but I have a little over 1 TB of content including DLC.
I got rid of a lot cause I thought that might be what could have been lagging though it could be the updates my stuff is going through.
 
Lagging can also occur if the assets are being cached. You can see if this is occurring by looking at the very top of the screen. If you see Precaching content or something like that in very faint text, then this is what's happening. This is extra overhead while the session is running and one more thing to slow down the operation.

I noticed that SP5 is extremely precaching heavy and does that more often than older versions did.
Interesting John,

I do notice more of that on mine too, I just figured since Game Engine for 22 PE is different, this would be one of the changes from TRS19 PE.

This might be of interest.

 
Last edited:
Interesting John,

I do notice more of that on mine too, I just figured since Game Engine for 22 PE is different, this would be one of the changes from TRS19 PE.

This might be of interest.

Thanks, I'll check out that thread.

That's a nice reference to have to refer others to because it has some nice pictures. This is the process that I ran that took 22 hours on my system. Last night, after downloading content for a few days but not using Trainz, the program precached content for close to an hour before my route opened up and then not all the menus had populated fully and I had to wait for the content to appear.
 
Thanks, I'll check out that thread.

That's a nice reference to have to refer others to because it has some nice pictures. This is the process that I ran that took 22 hours on my system. Last night, after downloading content for a few days but not using Trainz, the program precached content for close to an hour before my route opened up and then not all the menus had populated fully and I had to wait for the content to appear.
Good Morning John,

22 hrs, I hope you got some sleep while you were waiting on an all Nighter :LOL:

In retrospect though, thinking how long pre caching takes for one route, over doing all at once, that makes sense. I have to try now, I only have 740,000
Assets.....It would be worth it overall in the long scheme of things.. Work Smarter no harder....

Thank you for your Sage Advice.
 
The lag was happening in Surveyor plus the title screen and when playing sessions. So that was another thing I noticed. It could have been when I was updating something in the background while playing.
 
Last edited:
Back
Top