Fixed engine playback so it doesn't stop when the viewer gets resized