calcDeltaEnergy now agnostic of frame size.