Possible memory leak - performance issues

how old is your System? if its older than 10 years old then Replace it. if not sounds like a Game optimization issue
Not very old, 12th gen i5 (12400F) with a Samsung 980 Pro NVme M.2 1TB SSD. The old part is the GTX 1080 video card. But, that card still works more than fine for everything I make it run.
 
I have Trainz Plus build 126280 with the same problems on my large routes. In Surveyor, it seems to be the result of moving around the route a lot vs working in a small area. Never had this problem in older versions of Trainz.

Increasing my PCs RAM from 16 to 32gb did not e
I have Trainz Plus build 126280 with the same problems on my large routes. In Surveyor, it seems to be the result of moving around the route a lot vs working in a small area. Never had this problem in older versions of Trainz.

Increasing my PCs RAM from 16 to 32gb did not entirely solve the problem. One symptom is that, in Surveyor, track and road splines no longer redraw when you move spline points. So, you have spline points that are no longer on what appears to be the spline. When this happens, the only solution I have found is to save, exit, and restart Trainz.

I believe the cache function is not working correctly and over time, I run out of memory. If N3V would compare the code that manages the cache in new versions vs older versions, they could find the problem.
"in Surveyor, track and road splines no longer redraw when you move spline points. So, you have spline points that are no longer on what appears to be the spline. When this happens, the only solution I have found is to save, exit, and restart Trainz."

I have the same problem on my route as well and have to restart traniz to solve it. All my other routes work fine using

Trainz 22 PE build 129335, which I use to edit the route, then I copy the same route into Trainz Plus Build 131307 with no problems, moving track works fine, can't understand why I have this problem with this one route in Trainz 22PE

Could it be because the size is 329mb
 
There's definitely a memory leak and it's more obvious with Build 132284, SP6 HF1.

Yesterday, I was doing the usual Trainzing thing we've done since the early days of editing in Surveyor fiddling around and fixing things then exiting and driving my extensive but simple session on my big route.

The session loaded okay and then I started driving only to have massive stutters. I brought up the Profiler, Trainz Launcher ->Developer -> Show Profiler, and ran that at the same time as I was driving. The route was down to 7.8 fps from 27 and got worse. Pressing pause brought the frames rate up to something reasonable, but that would degrade over time. What made this really bad was I was editing the route in an area where I had the worst framerates due to a lot of content, and after spending lots of time removing content and replacing assets, the framerates were worse!

Before I got a migraine from the stuttering, I exited Trainz Plus completely including the Launcher and started up again. This time, driving my session was fine. I saw nothing less than 20 fps in the worst culprit areas and this was how it was for the rest of the evening.

To prove this was an issue, I edited and fiddled around again. The route has plenty of things to poke around with and then after editing, I went back into Driver and the framerates were poor again.
 
Some oddities... Comparing in-game (left) and route menu (right) GPU and memory usage: route menu "eats" more GPU than the game itself! And memory (both VRAM and RAM) isn't freed as it should be. Results don't vary a few minutes later.

yj52wf.jpg
 
Some oddities... Comparing in-game (left) and route menu (right) GPU and memory usage: route menu "eats" more GPU than the game itself! And memory (both VRAM and RAM) isn't freed as it should be. Results don't vary a few minutes later.

yj52wf.jpg
That makes sense though. There's a lot more going on in the main menu than there is in a route. What's bad is declining memory resources. If you exit, is the amount of RAM when you started the same, or did it give less?

The fact that the FPS got worse as I entered and exited from Surveyor to Driver is the issue I faced. Since then, I've exited back to the desktop then returned to run my routes in Driver rather than jumping back and forth. I haven't tried using UDS, but my gut tells me that the results will be similar.
 
I reported to N3V that I would experience a 10-15% drop in FPS just by coming out of a session, to the route menu and loading the same session again. I have to quit the game to get that FPS back. I don’t think this is something exclusive to SP6/HF1 though.
 
That makes sense though. There's a lot more going on in the main menu than there is in a route.
It is not the main menu but the route menu, where there is nothing that should use so much GPU and VRAM.

If you exit, is the amount of RAM when you started the same, or did it give less?
Freshly restarted, in route menu GPU and VRAM usage are almost the same, but RAM has been freed and dropped to 24% (7700MB), which confirms the game uses GPU and VRAM inconsistantly and doesn't free RAM unless restarted.
 
It is not the main menu but the route menu, where there is nothing that should use so much GPU and VRAM.


Freshly restarted, in route menu GPU and VRAM usage are almost the same, but RAM has been freed and dropped to 24% (7700MB), which confirms the game uses GPU and VRAM inconsistantly and doesn't free RAM unless restarted.
There are images and framework, animated sliders, etc. All of these use GPU to render and VRAM as a frame buffer.

The thing is, the GPU is used for a lot more than just rendering images now. In Trainz, they make use of the GPU to run some scripts and other program tasks like many other programs today because the GPU is a lot faster and more efficient at these tasks than the CPU.

What is wrong is overall memory usage causing poor performance the second or third time when a route is opened. This causes slower and slower performance due to less resources as if air is being let out of a balloon.
 
Back
Top