

You should read this document if you are a developer who wants to load, play, and control compositions programmatically from a Cocoa application.
Quartz compositor how to#
This book describes how to use the QCView and QCRenderer classes, and how to include compositions in webpages and widgets. The Quartz Composer framework defines classes and protocols that work with compositions built using the Quartz Composer development tool. Links to downloads and other resources may no longer be valid. A workaround is to force quit the Quartz Debug application, which will leave QuartzGL enabled system-wide.Īll graphics cards capable of supporting Core Image also support QuartzGL.Important: This document may not represent best practices for current development. QuartzGL will be disabled once again upon quitting the Quartz Debug utility. However, it is possible to enable it using the Quartz Debug application included in the Apple Developer Tools. This differs from Quartz Extreme, which still executes Quartz drawing commands on the CPU but performs final composition using the GPU.Īs of OS X Mountain Lion, QuartzGL is still not enabled by default. With QuartzGL enabled, all Quartz drawing commands are translated to OpenGL commands and executed on the GPU.
Quartz compositor mac os x#
QuartzGL (called Quartz 2D Extreme when it was introduced in Mac OS X Tiger) is GPU acceleration for the Quartz 2D API. NVIDIA GeForce2 MX, 16MB VRAM minimum, or betterĪs of OS X El Capitan, Quartz Extreme is enabled for all Macs.AMD (ATI) Radeon, AGP-based, 16MB VRAM minimum, or better.

In Mac OS X Tiger, It is automatically enabled on Mac systems with one of the following types of graphics cards: Quartz Extreme only uses OpenGL commands, and requires a graphics card connected to an AGP 2X or faster bus (including AGP 4X, 8X, and PCI Express), supporting textures and maps of arbitrary size, since many of the renderers have no size limitation (Quartz 2D for example). It then directs the GPU to compose the surfaces and maps to provide the final image, which is delivered to the frame buffer. Instead, the Quartz Compositor encapsulates each rendered backing store in an OpenGL texture map or surface. With Quartz Extreme, far fewer central processor (CPU) cycles are needed for scene composition. Mac OS X v10.2 introduced Quartz Extreme: graphics processor (GPU) acceleration for the Quartz Compositor. The Quartz Compositor takes the events from the queue, determines which process owns the window where the event occurred, and passes the event on to the process. In its role as window manager, Quartz Compositor also has an event queue which receives events, such as key strokes and mouse clicks. Quartz Compositor then acts as a "visual mixing board," by adding the given window to the whole scene for the display. The choice of the renderer is up to the individual application, although most use Quartz 2D. In managing individual windows, Quartz Compositor accepts a bitmap image of the window's contents from its renderer, along with its position. Quartz Compositor only accepts raster data, and is the only process that can directly access the graphics frame buffer. The Compositor then reads the data from the backing stores and assembles each into one image for the display, writing that image to the frame buffer memory of the graphics card. The bitmap output from Quartz 2D, OpenGL, Core Image, QuickTime, or other process is written to a specific memory location, or backing store. It is responsible for presenting and maintaining rasterized, rendered graphics from the rest of the Core Graphics framework and other renderers in the Quartz technologies family. Quartz Compositor is the display server (and at the same time the compositing window manager) in macOS. com /technologies /mac /graphics-and-animation.
