About FPS , i think the problem is that all dynamic lights is hitting the terrain , even those placed indoor ( witch is not needed ) the next light update will have a option that allow you to disable light on the terrain so it only hits objects , this will allow you to optimize your levels yourself.
But until then i added a option to enable the old "fading" light system to the terrain only. In setup.ini set this:
terrainoldlight=1
Or instead of this you can set the max light the terrain can have at any time so try to reduce this to 8:
terrainoldlight=0
maxterrainlights=8
The lower you set "maxterrainlights" the higher your FPS will be
If you lower the "maxterrainlights" you might start to see dynamic light popping in on the terrain , here you can adjust how far the fade distance for the dynamic light is. So you can also lower the "terrainlightfadedistance" until you dont get popping, with maxterrainlights=8 try to set:
terrainlightfadedistance=2000
This should work in most cases.
Another way to improve the FPS is to adjust:
maxpixelmeshlights=4
Yes try to set it to 4 (12 default), this defines how many per pixel lights a single mesh can have , the lower the more speed you get, but it dont limit how many lights the mesh can have , it only defines how many per pixel PBR lights (slow) it can have , when this number is reached it will switch the remaining of the lights hitting this object to the very very fast vertex light system.
If you want PBR reflections on the terrain then in setup.ini use:
terrainusevertexlights=0
The new dynamic light system is very flexible and allow you to adjust most part of it , but it is missing the options to allow you to optimize the lights directly in the editor , these are planned for the next update.
cybernescence:
Quote: "when I revert it I think the issue has gone"
I dont think the physics code has been updated, the code you display in the post ? , could you link me to the commit so i can see what changed and what you reverted to , i was not able to locate any changes.
Duchenkuke:
Let me know if any of this fix your issue
Taking some vacation but will have a look at all this when i get back