ferram4 / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
238 stars 131 forks source link

Dense voxels kills FPS #181

Closed KSAMissionCtrl closed 7 years ago

KSAMissionCtrl commented 7 years ago

Hopefully just a minor annoyance & not the cause of a larger issue but if I have a craft voxelized like this in the editor:

be65147a-1621-11e7-8287-308bf4bb6fe6

Then the frame rate tanks enormously. However if I have a larger craft voxelized the FPS are fine. I'm wondering if the max amount of voxels are trying to be drawn over such a small volume and that's taxing the game somehow.

ferram4 commented 7 years ago

It's simply the number of voxels being rendered. Very small, very blocky vehicles tend to fill the voxel model more and so the game tries to render more.

Unfortunately, there's no simple fix for this and considering it's fundamentally a debug feature improving performance at the risk of adding incorrect voxelization visualization isn't worthwhile.