Bug issue fix

WTF

Things got glitchy while trying to find the source of the lag

After isolating individual assets and running tests I was able to figure out the problem was on the main character model. At first I thought it was an issue with the model itself but I was curious about this as it would not lag when the game was initially run.

Apparently similar people have had problems with any asset that had the particle renderer component after the Unity 5.3 upgrade, so after removing this the lag problem was fixed.

Frame rate issues, Low-poly water

Upon entering the Project Beta phase of our game, the Unity programs on the machines we use to work on the game were upgraded from 5.2 to 5.3. This caused some problems, the most apparent being the sudden drop in framerate.

I tried to identify the source of the crippling lag and found that our previous water shader was causing some framerate drops, but it didn’t seem to be the source of the problem. I had found a low poly water shader online from a reddit user called Trolltunga, which I was able to use in place, however I was having some rendering issues which forced me to make a duplicate camera for the water.

New water

This look seemed to fit the aesthetic of our game more as it in supposed to be inside a computer world, having low-poly water brought up ideas such as the water being a sea of data. However implementing this brought up a problem with the shooting mechanic. The raycast script uses the main camera position to calculate where the enemies are and it could not differentiate between the main and secondary cameras resulting in a glitchy, uncontrollable reticle that would stay offscreen most of the time.

Initially I had planned to dedicate this week to incorporating lives, obstacles and score multipliers, but instead I’ll have to focus on fixing up all of the bugs in the game.

Unity bug: Missing (Mono Script)

Due to a unity error that kept popping up when I was backing up my files, my UI scripts disappeared, and I wasn’t able to add them since the only way they can be added is via Add Component > UI, meaning that I need to re-add all components of the code. This is frustrating because I lose any variables that I declared in the inspector.

Bug......

Bug...

Result of the bug. Some UI elements with the same problem disappeared completely, sucha s the reticle.

EDIT: (02/12/15)

I was able to find a fix to this problem by deleting the library folder in the project, then re-opening it so that it reimports all of the assets. Apparently it’s a metadata caused by switching computers.