2D 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.