Skip to content

Deferred rendering in GPAC

jeanlf edited this page May 14, 2022 · 3 revisions
Clone this wiki locally

HOME » Player » Deferred rendering

The GPAC compositor can render content in a special mode allowing to debug deferred rendering in 2D. In this mode, only the rectangular regions of the window that have changed since the previous frame are drawn in each frame.

To enable this mode, you need to modify the GPAC configuration file, by setting mode2d to debug in the filter@compositor section, or using --mode2d=debug.

Below is a video showing the rendering by GPAC of an SVG animation.

The next video shows the same SVG animation being rendered in defer-debug mode. You can see that since only the triangle moves, only the triangle and its surroundings need to be redrawn.