Profile Viewport 2.0 rendering events

To locate events in the Profiler that are related to execution within Viewport 2.0, search for the prefix “Vp2”. In addition to the prefix Vp2, the rest of the event label provides additional context as to the event that is being measured.

The list of important events can be broken down into a few logical groups as opposed to Profiler categories. For scene processing, the update phase is required to prepare for rendering, and the rendering phase for the actual rendering. There may also be resource management events that occur during the update or rendering phases.

Resource events

Events related to managing render targets (where the scene is rendered to) are listed below.

Note that this includes events related to managing custom off-screen targets allocated via the API (MRenderTarget). On-screen targets are not MRenderTargets.

Events related to managing textures are listed below. Note that this includes events related to textures acquired via the API (MTextureManager/MTexture).

Update phase

The following is a breakdown of some of the main update events. They are listed by functional area and/or scope.

The above events generally occur before UI drawables or render items are processed. The main Profiler events associated with UI drawables lists and render lists are:

Rendering

The event that represents a scene render is labelled: Vp2SceneRender.

The event lists can be divided into two: “high” level and “low” level. The “high” level is the functional groupings of the “low” level passes, as well as rendering of lists of UI drawables or render items.

High level events

This categorization of events is based on the output destination for rendering, as well as the rendering pipeline logic used.

Internal rendering events

Plug-in rendering events

If a plug-in renderer (MPxRenderer) is used, then the Viewport 2.0 processing to render an image is represented by the Vp2DrawPluginRenderer event.

If a render override (MRenderOverride) is used, then the Viewport 2.0 processing to render an image is represented by the Vp2OverrideRenderer event. The event is broken down into the following sub-events:

Low level events