[QUESTION] LOD and Effects distance

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Max Bain
Posts: 1458
Joined: Wed, 27. Jun 18, 19:05
x3ap

Re: [QUESTION] LOD and Effects distance

Post by Max Bain » Mon, 27. Jan 20, 14:31

Thanks. But do you have a clue what all these values mean?

Code: Select all

<distance minobjectsize="2500" component="250000" render="250000" calculation="270000" chunksize="128" />
Would be very interesting to know what else we can change here except the range until objects pop up...

Works great btw for the asteroids popping up far earlier. THink it will only effect GPU performance and not overall game performance if the graphics card is good.
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

Mr.Freud
Posts: 301
Joined: Sat, 16. Nov 13, 20:20
x4

Re: [QUESTION] LOD and Effects distance

Post by Mr.Freud » Mon, 27. Jan 20, 15:19

Max Bain wrote:
Mon, 27. Jan 20, 14:31
Thanks. But do you have a clue what all these values mean?

Code: Select all

<distance minobjectsize="2500" component="250000" render="250000" calculation="270000" chunksize="128" />
Would be very interesting to know what else we can change here except the range until objects pop up...

Works great btw for the asteroids popping up far earlier. THink it will only effect GPU performance and not overall game performance if the graphics card is good.
First is the size of an object. 2nd seems to be the level of detail IMO. 3rd and 4th are distances at which object renders and its position calculated. The last one - chunksize - I'm not sure exactly but when I was experimenting with the settings and doubling those parameters game would stop launching at some point and would hang in processes constantly getting more RAM unless I doubled chunksize too. Maybe it's amount of resources available for each size?
Im not sure if it's about GPU - with x2 of those settings in asteroid heavy sectors I see that CPU is loaded a lot and GPU usage drops to the point where it even downclocks because not needed. I have 9900k and 2080ti

Zano
Posts: 9
Joined: Sun, 18. Jan 04, 09:47
x4

Re: [QUESTION] LOD and Effects distance

Post by Zano » Fri, 7. Feb 20, 14:53

hey guys i need some help with region_lodvalues.xml trying to figure out how to change the draw distance on asteroids, i can't get the patching done right, pointing me in the right direction is much appreciated :)

Code: Select all

<diff> 
    <!--XXL-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="2500" component="250000" render="450000" calculation="270000" chunksize="256" />
    </replace>
    <!--XL-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="1000" component="30000" render="264000" calculation="166000" chunksize="128" />
    </replace>
    <!--L-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="500" component="30000" render="160000" calculation="82000" chunksize="62" />
    </replace>
    <!--M-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="100" component="30000" render="80000" calculation="42000" chunksize="32" />
    </replace>
    <!--S-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="50" component="10000" render="20000" calculation="12000" chunksize="16" />
    </replace>
    <!--XS Special, this rule was made by Simon for Objects like the Lockbox which has a size of ca 37.5m and was faded out a bit too early -->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="25" component="10000" render="20000" calculation="6000" chunksize="8" />
    </replace>
    <!--XS-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="10" component="4000" render="8000" calculation="6000" chunksize="8" />
    </replace>
    <!--XXS-->
	<replace sel="//regionlods/distances/distance">
    <distance minobjectsize="0" component="2000" render="4000" calculation="4000" chunksize="8" />
    </replace>
</diff>

Mr.Freud
Posts: 301
Joined: Sat, 16. Nov 13, 20:20
x4

Re: [QUESTION] LOD and Effects distance

Post by Mr.Freud » Fri, 7. Feb 20, 16:51

Zano wrote:
Fri, 7. Feb 20, 14:53
hey guys i need some help with region_lodvalues.xml trying to figure out how to change the draw distance on asteroids, i can't get the patching done right, pointing me in the right direction is much appreciated :)
like this (with default parameters)

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
<replace sel="//regionlods">
<regionlods>
   <distances>
    <!--XXL-->
    <distance minobjectsize="2500" component="2500000" render="2500000" calculation="2700000" chunksize="256" />
    <!--XL-->
    <distance minobjectsize="1000" component="300000" render="1640000" calculation="1660000" chunksize="128" />
    <!--L-->
    <distance minobjectsize="500" component="30000" render="80000" calculation="82000" chunksize="32" />
    <!--M-->
    <distance minobjectsize="100" component="30000" render="40000" calculation="42000" chunksize="16" />
    <!--S-->
    <distance minobjectsize="50" component="10000" render="10000" calculation="12000" chunksize="8" />
    <!--XS Special, this rule was made by Simon for Objects like the Lockbox which has a size of ca 37.5m and was faded out a bit too early -->
    <distance minobjectsize="25" component="10000" render="10000" calculation="6000" chunksize="2" />
    <!--XS-->
    <distance minobjectsize="10" component="4000" render="4000" calculation="6000" chunksize="2" />
    <!--XXS-->
    <distance minobjectsize="0" component="2000" render="2000" calculation="4000" chunksize="2" />
  </distances>
</regionlods>
</replace>
</diff>

Zano
Posts: 9
Joined: Sun, 18. Jan 04, 09:47
x4

Re: [QUESTION] LOD and Effects distance

Post by Zano » Fri, 7. Feb 20, 19:58

Mr.Freud wrote:
Fri, 7. Feb 20, 16:51
Zano wrote:
Fri, 7. Feb 20, 14:53
hey guys i need some help with region_lodvalues.xml trying to figure out how to change the draw distance on asteroids, i can't get the patching done right, pointing me in the right direction is much appreciated :)
like this (with default parameters)

Thanks working perfectly :)

User avatar
Malakie
Posts: 1061
Joined: Tue, 13. Apr 04, 23:08
x4

Re: [QUESTION] LOD and Effects distance

Post by Malakie » Wed, 4. Mar 20, 19:34

Is there a mod we can add for this yet as I don't want to manually edit files....
Take it light.....

Malakie

----------------------------------------------------

13913408324
Posts: 86
Joined: Wed, 3. Oct 18, 05:02
x4

Re: [QUESTION] LOD and Effects distance

Post by 13913408324 » Sun, 5. Apr 20, 12:37

I would like one, too.please!

Mr.Freud
Posts: 301
Joined: Sat, 16. Nov 13, 20:20
x4

Re: [QUESTION] LOD and Effects distance

Post by Mr.Freud » Sun, 5. Apr 20, 14:32

13913408324 wrote:
Sun, 5. Apr 20, 12:37
I would like one, too.please!
viewtopic.php?f=181&t=423695

Post Reply

Return to “X4: Foundations - Scripts and Modding”