How to optimize your game?
You should already start optimze it from the beginning.
Create your levels with the highest setting, if possible, try to get a smooth framerate.
Remember, much trees could kill your framerate, also many NPC.
If you've a good pc, try to optimize it for 60fps or more.
Why?
Later, when the user/player play your game on a medium pc, he will still get a good framerate on medium settings.
So, if your game runs on 40fps with high settings, it should run with 50-60fps on medium settings.
I remember the Amiga & C64 games had sometimes bad framerates, but we loved the games anyway...
Today the gamers get annoyed when they've only 30fps with their gaming pc... so keep that in mind.
PC gamers are more hardware adiccted than console gamers. So you need to give them a smooth experience.
If possible not start your level designing with medium settings, sooner or later this will cause trouble.
Old school FPS fan, DOOM!!! Why GG not working on my AMIGA 500?