There's a series of orifices in the piston in the fork with control valves that will allow a few or all of the orifices to pass oil from the lower chamber to the upper chamber controlling the rate of compression. Then there's another series of orifices that control the rate of extension which is controlling the rate at which the fork is allowed to extend. The flow rates are dependent upon the viscosity range of the oil used. If the viscosity of the oil is too high, the fork will be stiff and if the viscosity is too low the shock will be too soft.
There are fork oils available in the market with viscosity modifiers that hold the viscosity under a wider range of operating temperatures to help maintain a more constant ride experience. They are more expensive than standard engine or transmission oils, but are well worth the price.
Your clunking could be caused from too much or too little air in the shocks and the clunk could be when the shock fully extends or fully retracts. So that being said, knowing that the front fork suspension has a travel of 200mm, you should set your air pressure in each shock when you're sitting on the bike and set the initial ride height at 100mm of compression. This is a 2 person job. You need to measure the distance between the oil seal and the lower triple clamp when the front wheel is off the ground then subtract 100mm. That's your ride height. Now put the bike on the ground and you sit on the bike and start adding air to the shocks equally until you achieve the correct ride height, then go for a ride and see if you've got rid of your clunk. If you find it's still clunking, try to determine if it's when the forks are being compressed or on extension then adjust your air pressure to accommodate. If it's still clunking after air adjustment it could be caused by the control valves on the orifices being held open with debris allowing the oil to free flow uncontrolled from the upper chamber to the lower chamber and vice vresa.