texture load improvement
isWindowActive check, yield if not