When the roof is installed, ventilation will be addressed too, but having proper attic ventilation will also reduce the risk of moisture buildup under the shingles. Sometimes, chemical treatments may be applied, expanding the durability. However, you want the wood to be treated before installation so that you get complete coverage.