RHS Feedback - PKL
View Issue Details
0005479PKL[All Projects] Generalpublic2020-01-26 23:072020-02-05 19:24
Ron4Swat 
Soul_Assassin 
noneminoralways
closednot fixable 
0005479: fps decrease by over 50%
At the small military base at 5434/2526 there is a client fps decrease of a bit over 50% when looking to the south (over the stream towards Men Cheah ChabTrei).

When looking north the fps is back to normal. Tested with a objectviewdistance of 1000 m.

If i set the objectviewdistance to 500 at this position, it basically makes no difference if looking south or north.

Starting with a objectviewdistance of 600 the fps drops down.
No tags attached.
? init.sqf (410) 2020-02-05 18:09
https://feedback.rhsmods.org/file_download.php?file_id=2116&type=bug
? mission.sqm (3,971) 2020-02-05 18:10
https://feedback.rhsmods.org/file_download.php?file_id=2117&type=bug
zip perftest.rhspkl.zip (2,017) 2020-02-05 19:22
https://feedback.rhsmods.org/file_download.php?file_id=2118&type=bug
Issue History
2020-01-26 23:07Ron4SwatNew Issue
2020-01-27 09:52Soul_AssassinNote Added: 0010233
2020-01-27 09:52Soul_AssassinStatusnew => closed
2020-01-27 09:52Soul_AssassinAssigned To => Soul_Assassin
2020-01-27 09:52Soul_AssassinResolutionopen => not fixable
2020-01-27 21:40Ron4SwatNote Added: 0010234
2020-02-03 20:03Ron4SwatNote Added: 0010269
2020-02-04 19:07Ron4SwatNote Added: 0010273
2020-02-04 22:15reyhardNote Added: 0010275
2020-02-05 18:09Ron4SwatFile Added: init.sqf
2020-02-05 18:10Ron4SwatFile Added: mission.sqm
2020-02-05 18:10Ron4SwatNote Added: 0010276
2020-02-05 18:11Ron4SwatNote Edited: 0010276bug_revision_view_page.php?bugnote_id=10276#r6674
2020-02-05 19:07reyhardNote Added: 0010277
2020-02-05 19:22Ron4SwatFile Added: perftest.rhspkl.zip
2020-02-05 19:23Ron4SwatNote Added: 0010278
2020-02-05 19:24Ron4SwatNote Edited: 0010278bug_revision_view_page.php?bugnote_id=10278#r6676

Notes
(0010233)
Soul_Assassin   
2020-01-27 09:52   
The map is super dense on objects and this is known and expected. Its really designed to have around 500 viewdistance.
(0010234)
Ron4Swat   
2020-01-27 21:40   
The above observations were done on a dedicated server, i made some more tests locally on a hosted game and there are some strange behaviours.

1.) The issue does not appear on a clean map on that magnitude, the effect is still there but much more limited (ca. 20-25%).
2.) the performance drop was observed with AI around the place, but if the AI would be directly a issue the fps would not drop depending on which direction you look at
3.) the heavy fps impact could not be observed with AI placed in the editor for some strange reason, but only when spawned dynamically in the mission
4.) other areas with similiar terrain object count do not have that extreme fps decrease
5.) just walking around 10 m further towards the S while keeping same direction can suddenly remove the 50% fps drop. 10 m further away it could just drop again by same margin.
6.) Interestingly when staying on the spot with low fps and decreasing object viewdistance by 20-30m, it reverses the fps drop again. So the issue does not seem to be the objects nearby, but the objects far away that come into draw distance.


Especially point 5 and 6 seem to indicate to me that there might be a problem beside the amount of terrain objects.

As a guess, i wonder if there might be some objects that show the full polygone count when far away instead of a optimized model. So when in certain spots the polygon amount might increase when these objects suddenly come into view distance and cause that issue.

I checked out other places on the terrain with similiar amount of terrain objects, but did not have an effect that extreme.

Overall the terrain seem to work overall pretty well with a object viewdistance of 1000m as far i have seen.
(0010269)
Ron4Swat   
2020-02-03 20:03   
I tried to find out which objects cause that performance impact, if its the houses or the vegetation and used the "Hide Terrain objects" feature from the Eden editor.

I removed that way easily 95% or more of all objects in the object viewdistance, but had no impact on the fps, it dropped down the same way.

This seems to indicate that it might not be the terrain objects that cause that issue but something else, unless the hiding feature works in a strange way so that the terrain objects are somehow still processed but not shown.

Maybe something like the cell size, which i have seen being mentioned in another terrain being increased, because it caused performance issues there.
(0010273)
Ron4Swat   
2020-02-04 19:07   
I tried the same thing on PKL Legacy as described in previous post, removing all the terrain objects in the object viewdistance with Edens "Hide terrain objects" feature.

On PKL Legacy this had a significant effect, increasing fps by around 70-80%.

Why this has no effect with RHSPKL might be good to know and help to improve performance in that areas where it currently decreases alot.
(0010275)
reyhard   
2020-02-04 22:15   
Are you using some mods perhaps? I tried it and I didn't have any fps drops at all when looking in all directions
(0010276)
Ron4Swat   
2020-02-05 18:10   
(edited on: 2020-02-05 18:11)
Yes i'm using several mods, but it tried out the terrain without any mods and got also a frame decrease, even so it was more moderate of about 20%, which is not unusual even in other terrains.

I have been doing some more testing and finally have been successful to boil it down to a very simple mission (mission.sqm and init.sqf, both attached) to show the issue, as the heavy fps drop seem to only occur in combination with spawned units.


What the test mission does is:

1.) set viewdistance to 800m
2.) spawn 200 civilians in the S across the river, all have simulation disabled
3.) hide all terrain objects in 900 m radius with the "Hide terrain objects" feature in Eden editor, to exclude the possibility that terrain objects have any influence on fps

When looking N fps is very good, looking S it drops by about 50 %, at least on my system.

Load the mission with PKL legacy and fps are the same in any direction. So the units itself cannot be the cause of the fps drop, there seems to be some bad interaction with RHSPKL.

Interestingly, the amount of groups makes a difference. If the 200 units are spawned in just a few groups the fps drop dissappear. But RHPKL is the only terrain i have ever seen that.

Strangly lowering the object viewdistance to 500 m reverts the 50% fps drop on RHSPKL, even so there are not less terrain objects shown, as they are already all blend out. On PKL Legacy it does not make any difference.

(0010277)
reyhard   
2020-02-05 19:07   
please zip file.
Could you try perhaps try PKL on Arma devbranch?
(0010278)
Ron4Swat   
2020-02-05 19:23   
(edited on: 2020-02-05 19:24)
zip file with both files included added.

Already tried Arma devbranch to check if the newer version of PhysX might have a impact, but made no difference. Rechecked just today as i downloaded it again for other reasons.