My Mac becomes very slow and the program stops responding

when i start to DJ and use the program from the visual affects on an external monitor or via airplay my mac becomes very slow and practically crashes. I’m running Mac OS Sierra with 256 gb of storage and 8gb or Ram DDR3. Please respond because this might be a big problem