You can remember the meaning of 午饭 with this easy mnemonic:
I usually have lunch around noon (午), but honestly, I'm not really interested in food (饭), I only eat for nutritional purposes.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.