What are the biggest optimization tips you could give to a newbie ?

Sorry for the vague, barely script related question, however i needed a few scripting (and general) advice on how to make an optimized game and what are the traps to avoid. Anything helpful is greatly appreciated :).

Thank you for your time
Tabc3dd

The biggest optimization tip I could give to a newbie is (drum roll please)… Don’t worry about optimization until you need to.

The creator of Minecraft didn’t optimize it until it started running slow on his beast computer.

If you don’t mind, I will point to this page as a good starting point, so no redundancies in answers are required:
http://unity3d.com/support/documentation/ScriptReference/index.Performance_Optimization.html

And then as you review functions in the scripting docs, always look for remarks like the fourth sentence in the description on this page:

And as Dman noted - don’t worry about optimization until things are getting more concrete.

When drinking, don’t park. Accidents cause people.

When importing a rigged model, don’t use the rig the animator uses with the controls ect. Each node in (maya at least) the file becomes a game object inside of unity. Gets very confusing and very clustered. Instead transfer the animators animation to a scene with only the skeleton and mesh.

I am a technical artist by trade, and this saved us from having to dumb down our characters. We were getting 20 fps, re imported with just skeleton and mesh got over 500+ again.

The fastest code is code that never gets run.

Agree with Dman. The best optimization you will ever get is don’t think about it. The more you do the more optimized, the less productive codes get produced. Unless Unity is lagging. And if you are a newbie, all the optimization will only confuse you. You want speed. Use raw machine codes then. (Jokes intended). There’s a price to pay for speed but what, production?