Standby hibernate optimizations
Windows 8 offers optimizations to the graphics stack that your driver can optionally take advantage of to improve system performance on sleep and resume.
|Minimum Windows Display Driver Model (WDDM) version||1.2|
|Minimum Windows version||8|
|Driver implementation—Full graphics and Render only||Optional|
|WHCK requirements and tests||Device.Graphicsâ€¦StandbyHibernateFlags|
Standby hibernate device driver interface (DDI)
These structures are new or updated starting with Windows 8 to support standby hibernation.
Every device that can support this feature should take advantage of these hibernate optimizations. When a WDDM 1.2 or later driver enumerates segment capabilities, it must also set one or more of the standby hibernate flags PreservedDuringStandby, PreservedDuringHibernate, and PartiallyPreservedDuringHibernate. See Remarks of the DXGK_SEGMENTFLAGS topic for more details.
Using standby hibernate optimizations
When a PC transitions to sleep or resumes from sleep, several operations occur to make sure that video memory content is properly preserved and restored. Some of these operations are unnecessary and can be avoided:
- An integrated graphics adapter uses system memory as video memory. Because system memory is always refreshed when a computer goes to sleep, no eviction is necessary. Therefore, the delays that are introduced by the graphics stack can be brought down to zero delay or to the order of few milliseconds.
- The total time to purge memory on discrete adapters equals the amount of memory that is purged, divided by the rate of purge. Thus the time can be reduced by reducing the amount of memory to purge.
The goal of these operations is to make sure that the only data that is discarded is data that can be re-created.
WDDM 1.2 drivers can take advantage of these optimizations by specifying which allocations should be preserved during power state transitions.
Newer generations of discrete graphics adapters can be designed to refresh their memory when in standby (self refreshing VRAM). These adapters will benefit from these optimizations.
Eviction will still be relevant for discrete graphics adapters that donâ€™t have the self-refreshing VRAM feature. In these cases, the performance optimization is to minimize the amount of data that is preserved. For example, unused data in video memory such as offered allocations, discarded allocations, and unused direct memory access (DMA) buffers can be discarded.
This feature can yield these benefits:
- Doing no work: On integrated and discrete graphics adapters (with self-refresh VRAM feature), the delay that is introduced by the graphics stack can be brought down to zero delay or to the order of few milliseconds.
- Doing less work: On discrete graphics adapters, the performance improvement is mostly dependent on how much unused data in video memory is discarded.
- Reduced memory trashing: The larger the amount of memory evicted, the greater the effect of memory trashing. This has a bigger impact on discrete graphics adapters because they require a large amount of system memory to evict.
Hardware certification requirements
For info on requirements that hardware devices must meet when they implement this feature, refer to the relevant WHCK documentation on Device.Graphicsâ€¦StandbyHibernateFlags.
See WDDM 1.2 features for a review of features added with Windows 8.