The best time to visit Namibia is between April and October, when temperatures are cooler and there is very little rainfall. Game viewing is good year-round but is at its best during the drier winter months (September and October), when wildlife congregates at the water holes.
Note, the coastal region near Swakopmund is noticeably cooler than the desert interior throughout the year.