Optimisation: don't waste your time
I used to optimize every event and design the logic ground up taking into account weaker & slower JS performance on mobiles.. worked wonders.
Then I started making an even more complex game, ala. Homeworld complexity, I thought since the target is desktops, let's ignore optimizations and see what happens.. half way through combat fleet AI testing, I ran into 96% CPU use (single threaded) and it stuttered, dropping frames.
Quickly realizing how bad it was to ignore optimizations of logic ground up, I revisited everything and put in optimizations and its been much better, at a more reasonable ~50% peak CPU usage.
Fleet battle scenario:
https://drive.google.com/file/d/0BzblvP ... NseTg/view
Draw calls takes only 5-10% of the CPU usage, the rest is pure logic.
It is ALWAYS good practice to optimize logic, regardless of the target device. Thinking it runs 60 fps is good enough is bad because someone with a weaker machine, like notebooks, ultrabooks or older PCs will struggle.