Some alleles give people a tendency to gain weight via a higher appetite, slower metabolism, addiction to substances (in this case food). But no matter your alleles, you still have to pick up your fork and start attacking those triple portions of nachos. Let's not forget that 1-2 generations ago, the percentage of obese people was much lower than today, but the proportions of the above-mentioned alleles are very unlikely to have changed in 30-50 years.