I have a scene with multiple light nodes. Normally my game runs fine at 60fps on a late 2016 Macbook Pro. (The game is for mac, not iOS). When a light node is added the frame rate drops, and once there are 4-5 nodes it's extremely slow and laggy. I'm creating them like this:
let light: SKLightNode = SKLightNode()
light.falloff = 4.5
addChild(light)
I know that the lighting effects need a lot of rendering power, but I'm surprised at how fast they cause issues.
Any ideas on how I can improve performance?