Game Engine Rendering Unit Direct Video Encoder Integration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing technologies face challenges in optimizing video quality while maintaining low encoding latency and reducing artifacts in real-time video encoding for applications like cloud gaming.

Innovation Solution

A system and method where a game engine with an embedded rendering unit renders images in both RGB and YUV color spaces, directly outputting to a video encoder, and provides attributes to the encoder for enhanced encoding efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If video encoding is performed in real-time for cloud gaming applications, then video content can be delivered to remote systems, but encoding latency increases and video quality deteriorates

Engineering Contradiction:
Improveencoding speedVSAvoidvideo quality
Core Design Contradiction:
SpeedVSManufacturing precision

Solution Approach 1:

The rendering unit pre-processes video content by converting RGB images to YUV format and generates motion estimation data during the rendering phase, before encoding begins. This preliminary preparation reduces the computational burden on the video encoder, enabling faster real-time encoding while maintaining video quality through pre-computed motion vectors and compensation data.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

A hybrid rendering and encoding architecture is introduced where the rendering unit acts as an intermediary between the game engine and the video encoder. This intermediary pre-processes video data in YUV format and provides motion estimation results to the encoder, bridging the gap between rendering requirements and encoding optimizations to achieve both speed and quality.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of time

If video encoding is optimized for low latency, then real-time delivery is achieved, but video artifacts increase and quality decreases

Engineering Contradiction:
Improveencoding latencyVSAvoidvideo artifacts
Core Design Contradiction:
Loss of timeVSObject-generated harmful factors

Solution Approach 1:

Motion estimation and compensation data are computed in advance during the rendering phase, before the actual encoding process. This preliminary computation allows the encoder to operate with pre-prepared motion vectors and reference data, reducing encoding latency while maintaining accurate motion compensation that minimizes video artifacts.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system changes the color space parameter from RGB to YUV during rendering, and adjusts motion estimation parameters to be computed during rendering rather than during encoding. These parameter changes enable the encoder to work with pre-processed data, reducing latency while preserving video quality through optimized compression parameters.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If traditional video encoding processes are used with RGB to YUV conversion, then color space compatibility is achieved, but encoding complexity and processing time increase

Engineering Contradiction:
Improvecolor space compatibilityVSAvoidencoding complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The rendering unit and video encoder are merged into a hybrid architecture where the rendering unit performs YUV conversion and motion estimation. This merging eliminates the need for separate RGB to YUV conversion and motion estimation steps in the encoding pipeline, reducing overall encoding complexity while maintaining color space compatibility through integrated processing.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The rendering unit is given multiple functions: it not only renders game frames but also performs YUV color space conversion and generates motion estimation data. This multi-functionality reduces the number of separate processing components needed, simplifying the overall system while achieving both color compatibility and efficient encoding.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentEP3711296B1Game engine application direct to video encoder rendering
Publication Date: 2025.02.19 ATI TECHNOLOGIES ULC
  • EP3711296B1 patent drawingFigure 1
  • EP3711296B1 patent drawingFigure 2
  • EP3711296B1 patent drawingFigure 3

AI summary

Systems, apparatuses, and methods for rendering images directly to a video encoder are disclosed. A game engine includes an embedded rendering unit configured to render images in different color spaces depending on the mode. The rendering unit renders images for a first color space only to be driven directly to a display while operating in a first mode. The rendering unit renders images for a second color space only which are provided directly to a video encoder while operating in a second mode. In a third mode, the rendering unit renders images for both color spaces. In one embodiment, the first color space is RGB and the second color space is YUV. The game engine also generates a plurality of attributes associated with each rendered image and the video encoder encodes each rendered image into an encoded bitstream based on the attributes associated with the rendered image.