optimized smooth map generattion