Autodesk Mudbox 2013 SDK Documentation > Event Handling >

# System Events

The following are system events in the Kernel object which can be monitored:

- Kernel::FrameEvent - Triggered when a new frame is displayed on the viewport.
- Kernel::EndRenderEvent - Triggered when rendering of an image to the screen is completed.
- Kernel::LowMemoryEvent - Triggered when memory status is critical.
- Kernel::RestoreMemoryEvent - Triggered when memory status is no longer critical.
- Kernel::PostRenderEvent - Triggered at end of rendering a scene to a RenderTarget.

The following example demonstrates how to monitor a low memory event.

    class MyClass : public Node  {
        aevent lowMemoryEventReceiver;

        MyClass() {
            lowMemoryEventReceiver.Connect( Kernel()->LowMemoryEvent );
        };

        void OnEvent( const EventGate &amp;cEvent ) {
            if ( cEvent == LowMemoryEvent ) {
                // free some buffers
            }
        }
    };