Size of environmental grain and resource matching