A method, computer program product, and information handling system for generating loop code to execute on Single-Instruction Multiple-Datapath architectures, where the loop operates on datatypes having different lengths, is disclosed. The laser projector drives the SLM to change spatial modulation patterns at a rate that causes the corresponding sequence of projected images to fuse to mitigate appearance of speckle in the resulting fused image. An inner surface of the magnet is a curved surface with a concave middle.