American Truck Simulator

American Truck Simulator

View Stats:
Stenleh44 Aug 19, 2024 @ 6:43pm
Buffer size, max resource, pool size
I will admit I don't know alot about video settings, and games settings.

Awhile back i was having some performance issues, someone recommended these settings on the start up properties:
-mm_max_resource_size 90 -mm_max_tmp_buffers_size 1000 -mm_pool_size 16384

They helped my situation at the time. I recently noticed i don't have these settings set anymore and now i wonder if they would help now.

Are they still valid setting for latest version? I applied them but have yet to determine if there is any improvement.

And if someone wouldn't mind can you explain what they actually mean?

Thanks all!
< >
Showing 1-12 of 12 comments
Yes.

mm_pool_size sets max RAM used by ATS.

mm_max_resource_size sets the ram amount for each temporary buffer thread.

mm_max_tmp_buffers_size sets the total RAM used for the temporary buffer threads.

The old game log used to show how many threads were running as set by these but now it just shows the total ram used. There is a formula to show how many threads are created by dividing the buffer size by resource size.

So 1000/90 equals 11 threads, minus 1 for overhead. So 10, 90MB loading buffer threads.

I use 32 on the resource size, with 1000 max buffer size. 1000/32 = 31 minus 1; 30, 32MB buffer threads.
Last edited by HighPlains Drifter; Aug 19, 2024 @ 6:58pm
room217au Aug 20, 2024 @ 2:12am 
Without those switches in place the default size for loading buffers is 128MB.
The resource size should be greater than the biggest PMG/DDS file, to prevent the error msgs in the log about insufficient size, which is the whole reason I started the SCS discussion.
One thing I have noticed is that the default allocation for PMG size seems to have been increased since game version 1.50 because I don't see the error entries in the log with PMGs under 30MB. The old maximal value was 22MB. Whether it's a change in resource size or simply the increase of the threshold to report the PMG size, I don't know.
For more info read here:
https://forum.scssoft.com/viewtopic.php?p=993740#p993740
Madkine Aug 20, 2024 @ 5:34am 
Max_resource size was removed in 1.50

(Open the game exe file in notepad and search for the string max_ , you'll find a number of things, but max_resource is no longer one of them.)
kaleu57 Aug 20, 2024 @ 6:17am 
Does this mean that we should now delete it, or should we keep it in the properties?
Madkine Aug 20, 2024 @ 6:33am 
Delete it. It does nothing if in properties now.
kaleu57 Aug 20, 2024 @ 6:36am 
Thanks Madkine...
Stenleh44 Aug 20, 2024 @ 4:33pm 
Interesting.

Thanks all for the replies!
room217au Aug 20, 2024 @ 9:50pm 
Originally posted by Madkine:
Max_resource size was removed in 1.50

(Open the game exe file in notepad and search for the string max_ , you'll find a number of things, but max_resource is no longer one of them.)
Interesting. I have a truck with an interior model of 57Mb and before optimisation of that model to under 30Mb I get a resource size error in game log.
That explains why it doesn't show thread count in the log anymore. So how many threads are set now? We can set the amount of the total in use but how is it being divided up now?
Ryu Aug 21, 2024 @ 8:06am 
Just for kicks I tried upping the mm_max_tmp_buffers_size but the game stuck at the normal 1GB limit. But as room217au points out, not knowing what the new resource size is (greater than 22 but less than 57), we don't know how many buffers we're actually getting any more.
Yaumeister Aug 26, 2024 @ 2:51pm 
So is there any setting we can change to accommodate bigger resource and rid these errors, other than "disabling the mod"?

<WARNING> [resource_task] Oversized resource detected: '/vehicle/ai/charger_police_06/ai.pmg' size 35039983
<WARNING> [resource_task] Oversized resource detected: '/vehicle/ai/charger_police_06/lod.pmg' size 35039983
Madkine Aug 26, 2024 @ 3:18pm 
You could edit the defs so it doesn't use the LOD model.
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Aug 19, 2024 @ 6:43pm
Posts: 12