Merge pull request #769 from billhollings/master

Fix severe FPS degradation caused by certain swapchain recreation situations.