Buffer swap in lightmanager