Moved buffer update code to GameObject