Default jungle lag

User avatar
voxelproof
Member
 
Posts: 641
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Default jungle lag

by voxelproof » Sat Mar 10, 2018 13:33

I've noticed that when nearing large swathes of jungle in default game the performance starts to be laggy up to the point (when huge terrain is covered by far viewing range) of halting completely (this lasts up to a minute). I'm using a simple hardware with 4GB RAM only, but there're no such issues with other biomes. Have someone experienced somethink like that, maybe it was already reported?
>>>there is life beyond the Cube>>>
 

User avatar
TalkLounge
Member
 
Posts: 214
Joined: Sun Mar 26, 2017 12:42
Location: Germany
GitHub: TalkLounge
IRC: TalkLounge
In-game: TalkLounge

Re: Default jungle lag

by TalkLounge » Mon Mar 12, 2018 13:32

Yes, because in the jungle your PC has to render the leaves and whats behind the leaves. This is the reason, why your FPS are better in the sky or in the underground.
Subgames Server: Sky World Subgames German Survival Server: Wildes Land 2 E-Mail: talklounge@yahoo.de
 

User avatar
Linuxdirk
Member
 
Posts: 1658
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: Default jungle lag

by Linuxdirk » Mon Mar 12, 2018 14:15

Yes, this seems to be a general jungle problem. Maybe because of all the grass and stuff that hangs from the trees?
 

Skulls
Member
 
Posts: 84
Joined: Thu Dec 21, 2017 17:41
In-game: Skulls

Re: Default jungle lag

by Skulls » Mon Mar 12, 2018 14:50

I've got a fairly beefy system and large forests (as pretty as they are) lag for me as well. Turning off waving leaves helped a lot. A little bit of testing showed improvements by replacing the leaves texture with one which was more solid and had fewer holes.
 

User avatar
voxelproof
Member
 
Posts: 641
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: Default jungle lag

by voxelproof » Tue Mar 13, 2018 18:52

Thanks a lot :) At least my assumption that this is not an issue of the local configuration is confirmed now. Personally I would also blame the large number of trunks (several times more than in any other biome, which btw makes jungle forests a challenge when you try to walk across them).
>>>there is life beyond the Cube>>>
 

Robsoie
Member
 
Posts: 88
Joined: Fri Apr 29, 2016 16:22

Re: Default jungle lag

by Robsoie » Wed Mar 14, 2018 18:14

Some possible additional performance boost in addition to turning off those leaf alpha transparency
- edit the mapgen.lua (from ..\minetest_game\mods\default\ )
fill_ratio = 0.1,
And decrease that value to have less numerous trees and that number related lag.
personnally i use fill_ratio = 0.02, and i never observed any jungle lag anymore.

(in case you're using mgv6 it's different you would have to play with mgv6_np_trees and mgv6_np_apple_trees entries but this time in the minetest.conf, lowering the scale value is effective)

- edit biomes size (so jungle are also becoming less gigantic, but with the cons being all the biomes, even the interesting ones are affected but it gives also more diversity then to the amount of biomes you're going to cross when visiting your worlds)
by editing the mg_biome_np_heat mg_biome_np_humidity and (lowering the 3 spread values does the trick) in the minetest.conf
 

User avatar
voxelproof
Member
 
Posts: 641
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: Default jungle lag

by voxelproof » Wed Mar 14, 2018 22:31

Robsoie wrote:Some possible additional performance boost in addition to turning off those leaf alpha transparency
- edit the mapgen.lua (from ..\minetest_game\mods\default\ )
fill_ratio = 0.1,
And decrease that value to have less numerous trees and that number related lag.
personnally i use fill_ratio = 0.02, and i never observed any jungle lag anymore.

(in case you're using mgv6 it's different you would have to play with mgv6_np_trees and mgv6_np_apple_trees entries but this time in the minetest.conf, lowering the scale value is effective)

- edit biomes size (so jungle are also becoming less gigantic, but with the cons being all the biomes, even the interesting ones are affected but it gives also more diversity then to the amount of biomes you're going to cross when visiting your worlds)
by editing the mg_biome_np_heat mg_biome_np_humidity and (lowering the 3 spread values does the trick) in the minetest.conf


Great thanks, I'll definitely try it. Well, I like jungle from afar, even made some modifications to obtain huge forests with some rare not very tall rocky hills here and there (visually the results are stunning, needed a mod "selva" with a natural looking huge river flowing across it), but it comes at a cost :)
>>>there is life beyond the Cube>>>
 

User avatar
paramat
Developer
 
Posts: 3252
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Default jungle lag

by paramat » Sat Mar 17, 2018 02:22

Yes it's the high density of trees creating a complex terrain surface to be rendered that reduces FPS. Any complex surface in a world will do the same, such as areas with complex structures, and non-opaque nodes make it worse.

Most importantly reduce your view range.
Apart from that the first thing to do is to use the 'opaque leaves' setting so that leaves are no longer see-through, this also reduces the number of leaf faces rendered. Or at least use 'simple leaves'.
Then try turning off various visual settings and shaders or disabling shaders completely using the shader master switch.

Reducing the density of forests is not really the right approach, it's better to adjust your settings and view range so that complex structures are not a problem, instead of removing the complex structures.
 

User avatar
voxelproof
Member
 
Posts: 641
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: Default jungle lag

by voxelproof » Sat Mar 17, 2018 11:31

paramat wrote:Reducing the density of forests is not really the right approach, it's better to adjust your settings and view range so that complex structures are not a problem, instead of removing the complex structures.


I agree, so I simply reduced the viewing range and now it's OK, even though the leaves are left waving and transparent. Default jungle forests btw in spite of above-mentioned graphical load lack diversity, at least some palm trees and another type of grass should be added in the future, but it's part of feature discussion :)
>>>there is life beyond the Cube>>>
 

User avatar
Wuzzy
Member
 
Posts: 3243
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Default jungle lag

by Wuzzy » Tue Mar 20, 2018 11:50

For efficiency, you could try to select a different leaves rendering in your settings (Opaque Leaves or Simple Leaves). But that won't be as pretty, of course.
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
voxelproof
Member
 
Posts: 641
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: Default jungle lag

by voxelproof » Wed Mar 21, 2018 15:28

Wuzzy wrote:For efficiency, you could try to select a different leaves rendering in your settings (Opaque Leaves or Simple Leaves). But that won't be as pretty, of course.


I avoid this cause I use my own tp (which I'm probably already addicted to ;) ) but thankfully reducing the view distance to the default value is pretty enough, especially that I don't need very good performance needed when a player engages in some survival gameplay requiring e.g. running.
>>>there is life beyond the Cube>>>
 

User avatar
Vapalus
Member
 
Posts: 112
Joined: Wed Nov 15, 2017 17:16

Re: Default jungle lag

by Vapalus » Fri Mar 23, 2018 07:33

The default jungle also looks ugly.
It is not really needed in the current form... Or the current density.
A man much wiser than me once said: "go away, you are bothering me"
 

User avatar
voxelproof
Member
 
Posts: 641
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: Default jungle lag

by voxelproof » Fri Mar 23, 2018 11:21

Vapalus wrote:The default jungle also looks ugly.
It is not really needed in the current form... Or the current density.


I don't think it's as bad but indeed the default jungle looks dull. And it could look way better if some inspiration from Voxelands was taken:

Image

Textures replacing default ones are made by me. Important note: the colours displayed by my browser of this screenshot posted on the Forum differ significantly from the original file I've uploaded (I don't know why, maybe some additional compression is done on the server side).

edit:

The screenshot displayed in IE looks correct. Whats more, sites downloaded from web and then opened in Opera look like piece of s**t. It didn't happen before. Great thanks and FY M$.
Attachments
voxelands_jungle.jpg
(174.18 KiB) Not downloaded yet
>>>there is life beyond the Cube>>>
 


Return to Problems



Who is online

Users browsing this forum: No registered users and 2 guests