I have an Actor that uses an Instanced Static Mesh Component to generate a 64x64 grid of small cubes that fits within a 1 meter cube area. The instances are generated in the actor’s OnLoad method.
Whenever I either initially add the actor to the level, select the actor in the World Outliner, or deselect the actor in World Outliner there is a huge hit to the frame rate. The editor temporarily freezes and when the actor is selected the actor the Editor runs at about 9 FPS, but if I deselect the actor it returns to 60 FPS. The performance isn’t affected while playing the game and moving the actor.
Is there possibly a way to optimize or avoid this from happening?
UE 4.27