Navigation Menu

Skip to content

Deferred rendering in GPAC

Romain Bouqueau edited this page Mar 5, 2024 · 7 revisions

Warning

GPAC's wiki has moved to wiki.gpac.io.

This github wiki will no longer be updated.

You can contribute to GPAC's documentation here.

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.

Clone this wiki locally