Before initializing d3d variable or video screen very first, call wait for few frames.