Well, I think we finally have a final product, at least until I ship it off to the beta team and they start making a giant freaking list of bugs.. But that’s ok!
There were definitely a lot of issues with this, and it’s not my coding or anything, it’s the low end hardware of the target platform. So in the game, there are 12 different cribbage boards, each one is composed of 5-600 GameObjects.. Nothing major at all there.. I was loading those into an array that the game would then instantiate the board it needed for that game.. Well apparently the IGT hardware can’t handle that.. It worked on every device I deployed it too, so I thought, ok, lets kick this over to the table and test it! And the only thing it did was crash. And of course, Logcat showed NOTHING of value whatsoever.. Basically it just spewed nonsense that didn’t give me any direction to look.
After spending hours and hours trying to rebuild scenes, and rewriting scripts, and stripping everything down to it’s most basic pieces, even at one point removing everything except the images.. no code, no animation, no sound, no voice.. Finally I stumbled on the gameboards.. Figured ok, gotta be memory, removed half of the boards from the array NOT even instantiated objects, and sure enough it starts working.. Sadly I had already completely redesigned the title scene and stripped out the player selection and joining into its own separate scene (which I may put back to the way it used to be)..
Either way, the damn thing works properly now. Stuck the board prefabs in the resources folder, and loading the prefab from resources at runtime, so as not to hurt the tables tiny little memory feelings.. It runs great now, 45+ fps on average which is fine.. 1 or 2 tiny things to wrap up and do all the marketing pieces for, and I can ship it off. Definitely not going to write an entire game again without testing on the table every step of the way.. not again.. Still don’t understand why it cant handle 6000 objects, that’s a pretty minute number.. but hey.. It’s all good now!
Recent Comments