Update August 26th: I optimized my game by changing the resolution and rendering settings. My game runs fine on computers with integrated graphics and on my 2012 Mac Mini. Before the character would be extremely laggy which made the game unplayable.