Hello,
In my game I have around 5,000 actors or more at any given time. As you can imagine this is causing quite the amount of lag. The actors are also receiving an event when the player moves (this is because it is a 2D game with parallax implementation). Could someone please help me out? Add me on Skype and I can give you more details on the matter.
For what reason you would need 5000 actors?
Does it really have to be seperate actors?
Maybe it’s possible with a ParticleSystem instead, or atleast Instanced Static Meshes? Explain your use case a bit more.
Well I basically have a method that generates the whole world and places all of these actors (randomly) and they make up the background parallax. So basically the bushes at the front move slower then the mountains and trees and the back to give an immersive effect.
I recommed either grouping them together or using instanced components, but I never worked with Paper 2D though, what I assume you are using here. If not, you should 
You absolutely do not need 5000 actors. I suggest you instance them (ISMCs or outside of UE4). I also suggest that you generate as parts of the level are reached, rather than all at once (If you are not already).
Yes, from what the picture looks like, depending on the depth layers, this scene should have about 20-30 sprites / actors currently. Of course you always have to render a bit in advance so that little lags don’t lead to artefacts in the loading of new areas, but 5000 really is insanely high.
I can’t use ISMCs because I am using sprites for the texture. Unless there is something i’m missing?
Can’t you just layer the texture onto a flat mesh?
Yes good idea, however i’m not entirely sure how to use ISMCs or how they work. The reason I have individual actors for each of the sprites is because they are moving sideways at a rate with the player to create a parallax. So I am not sure how I am going to implement this alongside spawning parts of the level as you go. This would lead to offsets in the original spawning position of each of the sprites and bunch it all up the further sideways you move. It is all very confusing and difficult to explain through writing 