simple event handler running at 60fps for better performance