Global population is close to peaking where fertility has dropped to only about 2.5 children per woman. Later in the 21st century we may well see the global population starting to contract like it is in most rich industrialised countries.
The shift in wealth generation to particularly Asia, but to all fast developing nations has only just started and to put China's growth into perspective, their growth produces the equivalent of new Greek GDP every three months and a new 8th largest GDP in the world with Italy every year.

The EU high regulation, scarce high priced energy is driving Western Europe into an economic backwater, this is why it is sensible for the UK to leave the core of the EU and just have a EFA agreement like the two richest countries in Europe Switzerland and Norway.
The biggest worry is not food but energy, we can solve that for the next 1000 years through Thorium nuclear power, but I'm not sure that the political will to do this is there in many countries until it is too late. The other big danger, which is why a few extra degrees of global warmth is a good thing, would be another Northern hemisphere ice age, like we have had for the majority of the time in the last 100,000 years as that would wipe out most of the North's population.