Fix video & optimize mem maps
smart wake affine logic & some fixes