As recommended by ACSM, it is best to eat a higher carb- low fat meal about 3- 4 hours before exercise. Snacks are usually okay around an hour before exercise as long as large amounts are not eaten at one time. Make sure that you are drinking water with the meal as well. Around 5-7ml/ kg at least 4 hours before vigorous exercise. Make sure to stay fueled and hydrated!
Best of luck,