Reference articles on history, science, culture and more
Encyclopedia

GPU switching

Mechanism for computers with multiple graphic controllers

Image credit is listed at the end of this article.

GPU switching is a mechanism used on computers with multiple graphic controllers. This mechanism allows the user to either maximize the graphic performance or prolong battery life by switching between the graphic cards. It is mostly used on gaming laptops which usually have an integrated graphic device and a discrete video card.

01Basic components

Most computers using this feature contain integrated graphics processors and dedicated graphics cards that applies to the following categories.

Integrated graphics

Also known as: Integrated graphics, shared graphics solutions, integrated graphics processors (IGP) or unified memory architecture (UMA). This kind of graphics processors usually have much fewer processing units and share the same memory with the CPU.

Sometimes the graphics processors are integrated onto a motherboard. It is commonly known as: on-board graphics. A motherboard with on-board graphics processors doesn't require a discrete graphics card or a CPU with graphics processors to operate.

Dedicated graphics cards

Also known as: discrete graphics cards. Unlike integrated graphics, dedicated graphics cards have much more processing units and have its own RAM with much higher memory bandwidth.

In some cases, a dedicated graphics chip can be integrated onto the motherboards, B150-GP104 for example. Regardless of the fact that the graphics chip is integrated, it is still counted as a dedicated graphics cards system because the graphics chip is integrated with its own memory.

Intel Core i5 processor with integrated HD Graphics 2000
Intel Core i5 processor with integrated HD Graphics 2000

02Theory

Most Personal Computers have a motherboard that uses a Southbridge and Northbridge structure.

Northbridge control

The Northbridge is one of the core logic chipset that handles communications between the CPU, GPU, RAM and the Southbridge. The discrete graphics card is usually installed onto the graphics card slot such as PCI-Express and the integrated graphics is integrated onto the CPU itself or occasionally onto the Northbridge. The Northbridge is the most responsible for switching between GPUs. The way how it works usually has the following process (refer to the Figure 1. on the right):

  1. The Northbridge receives input from Southbridge through the internal bus.
  2. The Northbridge signals to CPU through the Front-side bus.
  3. The CPU runs the task assignment application (usually the graphics card driver) to determine which GPU core to use.
  4. The CPU passes down the command to the Northbridge.
  5. The Northbridge passes down the command to the according GPU core.
  6. The GPU core processes the command and returns the rendered data back to the Northbridge.
  7. The Northbridge sends the rendered data back to Southbridge.

Southbridge control

The Southbridge is a set of integrated circuits such Intel's I/O Controller Hub (ICH). It handles all of a computer's I/O functions, such as receiving the keyboard input and outputting the data onto the screen. The way how it usually works usually has two steps:

  1. Take in the user input and pass it down to the Northbridge.
  2. (Optional) Receive the rendered data from the Northbridge and output it.

The reason why the second step can be optional is that sometimes the rendered the data is outputted directly from the discrete graphics card which is located on the graphics card slot so there is no need to output the data through the Southbridge.

03Main purpose

GPU switching is mostly used for saving energy by switching between graphic cards. The dedicated graphics cards consume much more power than integrated graphics but also provides higher 3D performances, which is needed for a better gaming and CAD experience. Following is a list of the TDPs of the most popular CPU with integrated graphics and dedicated graphics cards.

TDP of Integrated Graphics and Dedicated Graphics Cards
Model Platform
Integrated Graphics Dedicated Graphics Cards
Intel TDP Nvidia TDP AMD TDP
CPU Model & Frequency Intel IGP Serie
Intel Core i7-6700K @ 4.00 GHz Intel HD Graphics 530 91W GTX 1080 180W Radeon R9 Fury 275W Desktop
Intel Core i5-6600K @ 3.50 GHz Intel HD Graphics 530 91W GTX 970 145W Radeon R9 Nano 175W
Intel Core i7-4790K @ 4.40 GHz Intel HD Graphics 4600 88W GTX 780Ti 250W Radeon RX 480 150W
Intel Core i7-6700HQ @ 2.60 GHz Intel HD Graphics 530 45W GTX 1080 165W Radeon R9 M485X 125W Laptop
Intel Core i7-6500U @ 2.50 GHz Intel HD Graphics 520 15W GTX 980M 100W Radeon R9 M470X 75W
Intel Core i5-6200U @ 2.30 GHz Intel HD Graphics 520 15W GTX 880M 103W Radeon R9 M470 75W
Intel Core i5-5200U @ 2.20 GHz Intel HD Graphics 5500 15W GTX 870M 103W Radeon HD 7950M 50W

The dedicated graphics cards exhibit much higher power consumption than the integrated graphics on both platforms. Disabling them when no heavy graphics processing is needed can significantly lower the power consumption.

Figure 1. Motherboard diagram outlining a structure of modern PC computer architecture (typically x86-64-based). Southbridge, Northbridge and busses are visible.
Figure 1. Motherboard diagram outlining a structure of modern PC computer architecture (typically x86-64-based). Southbridge, Northbridge and busses are visible.

04Technologies

Nvidia Optimus

Nvidia Optimus™ is a computer GPU switching technology created by Nvidia that can dynamically and seamlessly switch between two graphic cards based on running programs.

AMD Enduro

AMD Enduro™ is a collective brand developed by AMD that features many new technologies that can significantly save power. It was previously named as: PowerXpress and Dynamic Switchable Graphics (DSG). This technology implements a sophisticated system to predict the potential usage need for graphics cards and switch between graphics cards based on predicted need. This technology also introduces a new power control plan that allows the discrete graphics cards consume no energy when idling.

05Manufacturers

Integrated graphics

In personal computers, the IGP (integrated graphics processors) are mostly manufactured by Intel and AMD and are integrated onto their CPUs. They are commonly known as:

Dedicated graphics cards

The most popular dedicated graphics cards are manufactured by AMD and Nvidia. They are commonly known as:

A classic graphic rendering process with multiple GPU cores
A classic graphic rendering process with multiple GPU cores

06Drivers and OS support

Most common operating systems have built-in support for this feature. However, the users may download the updated drivers from Nvidia or AMD for better experience.

Windows support

Windows 7 has built-in support for this feature. The system automatically switches between GPUs depending on the program that's running. However, the user may switch the GPUs manually through device manager or power manager.

Linux

Modern Linux systems handle hybrid graphics in two parts: power/control for the inactive GPU, and optional render offloading for individual applications.

  • vga_switcheroo (in the kernel since 2.6.34) coordinates power and mux control on systems with multiple GPUs. It was designed primarily for muxed designs (hardware display switch), and on muxless laptops it is typically used only for power control. A display server restart is no longer required for offloading on muxless systems.
  • DRI PRIME (Mesa) enables per-process render offload on muxless systems: an app renders on the discrete GPU and the integrated GPU presents the result. Users can opt in via the DRI_PRIME environment variable (e.g., DRI_PRIME=1) or desktop integration.
  • On GNOME, the switcheroo-control service exposes the discrete GPU to the shell, adding a “Launch using Discrete Graphics Card” entry to app menus on supported systems (Wayland or Xorg), which invokes render offload under the hood.
  • With the proprietary Nvidia driver, render offload is provided as PRIME Render Offload (supported since driver 435.xx). Distributions commonly ship a helper like prime-run or desktop menu entries that set the required environment for offloading.

Notes and limitations (Linux)

  • On muxless systems the internal display is hard-wired to the integrated GPU; the discrete GPU cannot directly drive that panel and instead renders offscreen for composition by the iGPU. External displays connected to the dGPU may allow direct output depending on the laptop’s wiring.
  • Power-saving behavior varies by driver and distro defaults. Some setups need explicit configuration to power down the inactive GPU when idle.
  • Desktop integrations (e.g., GNOME's menu item) simply opt an app into offload; they do not "auto-switch" the whole session. Users can still launch apps on either GPU as needed.
Watch videos about GPU switchingExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article GPU switching, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.

Continue exploring

Related topics

Graphics processing unit

A graphics processing unit is a specialized electronic circuit designed for digital image processing and to accelerate computer graphics, being present either as a component on a discrete graphics card or embedded on motherboards, mobile phones, personal computers, workstations, and game consoles. GPUs are also increasingly being used for artificial intelligence (AI) processing and model training due to linear algebra acceleration, which is also used extensively in graphics processing.

Nvidia Optimus

Nvidia Optimus is a computer GPU switching technology created by Nvidia which, depending on the resource load generated by client software applications, will seamlessly switch between two graphics adapters within a computer system in order to provide either maximum performance or minimum power draw from the system's graphics rendering hardware. A typical platform includes both a lower-performance integrated graphics processor, usually by Intel or AMD, and a high-performance one, usually by Nvidia or AMD. Optimus saves battery life by automatically switching the power of the discrete graphics processing unit off when it is not needed and switching it on when needed again.

AMD Hybrid Graphics

AMD Hybrid Graphics technology was a collective brand from AMD for features of its Radeon line of discrete and integrated GPUs, promoting higher performance and productivity while reducing energy consumption. The technology previously applied to selected chipsets of the AMD 700 chipset series and AMD 800 chipset series only.