Hello everyone!
I’ve only posted once here before, and I was very happy to find the help that everyone provided to be quite nice, and these forums have been an absolute boon to me in the process of developing my first game… and I have recently reached something of a weird issue.
While I was developing my game (a 2.5D puzzle platform game for Android devices) I would have various things like static environment pieces, or traps, or the collectible coins, kind of grouped in the hierarchy of the editor. each object itself would be a separate object in the game, but they were basically grouped into categories under blank parent objects… (hopefully that makes sense).
For the majority of my development, this worked fine both in the editor and when uploading it onto my phone, I had no issues with the performance at all, draw calls were around 20 - 25 at a time (which is what I am shooting for at the most)… and my life was a happy ball of development peaches!
HOWEVER! Here comes the issue. I just recently finished building my first level… and I decided to test my changes on the phone to make sure everything worked fine. Well, once on my phone the game was so slowed down that it had become unplayable… keep in mind that the game was running fine until I added in the last of these game objects. I tried a few things in the editor like turning off some of the traps, changing the FOV of the camera I am using… usual debug stuff to see what may be causing the issue… And eventually I decided to have each object that I could basically it’s own separate spot in the hierarchy.
Each element of the environment was no longer under the blank environment game object, each trap was no longer under the blank “trap” game object, ETC. So I figured that what must have happened is that basically these items were all rendering at the same time… whether or not they were in view of the camera… and once I made them into their own separate special snowflakes in my game world, the game runs faster than ever on my phone… awesome… problem solved…
But… I really liked having those collapsable groups in my editor. It made life nice and simple when trying to find various objects and such. does anyone have any advice on this? thoughts about similar things that have happened to them?
If i have to remove the groupings before I upload the level, then that’s what I’ll do… but it seems like there has to be a good option for organization that DOESNT make all of these objects render together… right?
if you need more info please feel free to ask me anything!
Thanks in advance and sorry for such a long post…