Fixed some performance issues.

- Also fixed the user camera controller.