Transport Fever 2

Transport Fever 2

426 ratings
Performance tuning
9
2
7
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
10.553 KB
Aug 16, 2022 @ 11:48pm
Jun 28, 2023 @ 4:04am
5 Change Notes ( view )

Subscribe to download
Performance tuning

Description
I have a Core i9 CPU and an RTX 3080 GPU running at 4k, so when the frame rate started dipping into the teens I figured the game could benefit from a little optimisation!

I have designed this mod to give a noticable performance boost "out of the box", with minimal effect on visual quality. There are some tuning paramaters included for those who want to delve a bit more into the details.

The issue with TPF2 seems to boil down to "rendering too much" or basically "rendering stuff you can't see". There are controls for "level of detail" that define what models are rendered (or not rendered at all) at certain distances from the viewer's camera perspective. The low detail models are used at greater distances.

On big and busy maps I think too much is being rendered that you can't actually see. The work effort increases exponentially with render distances as for a given density of objects the number of objects in the view area is likely to grow with the square of the radius.

The tuning parameters are:

- "Lod render distance scale factor"
This will scale down the render distances by the given fraction, effecting both when the transition between high and low detail models occur and when the models are not rendered at all. This defaults to 0.6 meaning the distances are approximately halved.

- "Threshold distance for lod scaling"
The distance (in in-game meters) away from the camera where the lod render scale is applied. This defaults to 500m, it means the quality of the models near to the camera are unaffected. This paramater is a key difference between using this mod and simply reducing the graphics settings (which does noticably affect the quality). Only the portion of a distance after the threshold is affected by the scale factor.

- "Absolute maximum render distance"
This distance (in in-game meters) is a cutoff past which nothing is rendered. I had noticed that models could be rendered as far as 10km away or more, and for practical purposes these are not visible anyway to the user. As the number of models scales exponentially with this distance, reducing it can have dramatic performance benefits without impacting game experience. This defaults to 5000m. Even running at 4k I do not notice a visual difference with this setting but it does cut the number of models rendered.

- "Turn on custom presets"
This is a switch that toggles a series of additional tuning parameters I have made - defaults to on. This is where I have found that some particular models are consuming disproportionately more resources (bridges for example) and so their render distances are more aggressively optimised.

Please feedback comments, suggests, bug reports on the steam workshop page.

Update 1.1:
Thank you to YT8HmH7 for spotting and providing a fix for a bug that could result in unexpected behaviour with large number of bridges.
I have also made a few more optimsiations for the default presets that should help further improve performance.


Popular Discussions View All (2)
2
Sep 12, 2022 @ 1:21pm
Where to tweak the settings?
sirupflex
0
Nov 14, 2022 @ 1:36pm
Weird effects on people
VacuumTube
80 Comments
dreddie27 Sep 1 @ 3:01pm 
After started experiencing lag on my medium map with 50.000 population i used this mod in the hopes it would help. But no real luck with that. After this i bought a new video card upgrading my old 4GB GPU, to a much faster 20GB. (RX 7900 XT)
After this the game was working without lag, but just really slow. It turned out the CPU is also a bottleneck.
But with this new GPU i set graphics to high again and even turend of this mod. After i did that the game runs faster again.
So if the GPU is not your bottleneck, i would try without this mod to see if it's faster like i experienced.

I do not have a 4k monitor though, but a 1080p HD monitor. (new monitor wil be the next step ;-)
Fane Aug 14 @ 7:46am 
Work like magic, thanks. :steamthumbsup:
Egg Head Jul 7 @ 8:18am 
Doing wonders in my old laptop thanks a bunch!
sindre.wold.pedersen May 30 @ 3:21am 
i dont know if its because of this mod but ever since i downloaded it, my game has been running a lot slower and crashing. maybe its uncompatible with some other mods. does anyone know if there is a feature which can anylize which mods are causing problems?
joshwiz23 Apr 17 @ 2:17pm 
is this compativle with town turning>?
Doc Savage Jan 12 @ 4:18am 
I also am wondering about the relevance of this mod given the console changes... I do use it still though to cut far away down to much blur. Or so I think. Do I dare touch it instead of trying to fix it if it doesn't appear broken..? Decisions decisions...

Ideas about the down loading... If you are using the Steam Workshop from inside the game window, it is a possible cause to your woes. I haven't had it work proper yet. Just today it stalls on 1 of 7... So I go to Steam to see what's what after closing the game.

Well. I have all 7 downloaded. They are already there. It wasn't stalled, it was done. Don't know what the mod window in the game was on, but I'd like some... ?B)

Cheers..!
Leichtester Jan 8 @ 12:33pm 
Hey, I cant download the mod. I subscribe and its just stuck at Mods are downloading ingame. Any ideas?
okeating  [author] Sep 11, 2024 @ 5:04am 
I don't see why not...
Fenix Alfa Sep 9, 2024 @ 4:32pm 
Is this mod still working as of Sep 2024? I don't seem to have any major upgrade.
oshawotta737 Oct 21, 2023 @ 8:07pm 
I can't get the settings to change in game? how can I solve this?