Enclose both energy compute and scene update on sync block to ensure
they are not executed simultaneously