GPU Visible Element Determination via Index Buffer Encoding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current visible element determination methods in graphics rendering, such as raster rendering, suffer from low computational efficiency due to the need for extensive data replication and long read-back times of frame buffers, which occupy CPU resources.

Innovation Solution

A method and apparatus that render scene elements under a target perspective, determine the index of each pixel based on its color value, and identify visible elements by encoding and decoding color values, allowing for efficient determination of visible scene elements without reading the frame buffer back to the CPU.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If raster rendering is used to determine visible elements, then the visible set can be obtained through frame buffer rendering, but the computational efficiency is low due to extensive data replication and long read-back time occupying CPU resources

Engineering Contradiction:
Improvevisibility determination accuracyVSAvoidcomputational efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent extracts only the necessary visibility information from the rendering process by using depth values and index buffers to identify visible elements, rather than transferring the entire frame buffer data back to CPU. This extraction approach maintains accuracy while significantly reducing data transfer volume and processing time.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces an intermediary mechanism using depth values and index buffers as mediators between the GPU rendering process and CPU visibility determination. Instead of directly reading the frame buffer, the system uses these intermediary data structures to convey visibility information efficiently, reducing CPU resource occupation and read-back time.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of information

If frame buffer read-back is performed to determine visible elements, then visibility information can be obtained, but CPU resources are occupied and read-back time is extended

Engineering Contradiction:
Improvevisibility information completenessVSAvoidread-back time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The patent performs preliminary actions during the rendering process by maintaining depth values and index buffers that pre-encode visibility information. This preliminary preparation allows the CPU to determine visible elements without performing time-consuming read-back operations, as the necessary information is already structured and ready for efficient processing.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates simplified copies of visibility-relevant data (depth values and indices) rather than copying the entire frame buffer. These compact data representations preserve the essential visibility information while occupying minimal memory bandwidth and processing time, effectively decoupling information completeness from transfer time.

Inventive Principle:
Principle #26Copying

3Reliability

If extensive data replication operations are performed, then frame buffer can be read back for visibility determination, but CPU resources are consumed and computational efficiency decreases

Engineering Contradiction:
Improvevisible element determination accuracyVSAvoiddata processing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the rendering data into distinct functional components: color buffers for visual output, depth buffers for visibility testing, and index buffers for element identification. This segmentation allows the system to process only the relevant depth and index data for visibility determination, eliminating the need to replicate and process entire frame buffer data, thus reducing CPU complexity while maintaining determination accuracy.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20230343021A1Visible element determination method and apparatus, storage medium, and electronic device
Publication Date: 2023.10.26 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US20230343021A1 patent drawing
  • US20230343021A1 patent drawing
  • US20230343021A1 patent drawing

AI summary

A visible element determination method and apparatus are provided. The method may include rendering each scene element in a first scene element set under a target perspective to obtain a target rendering image. The method may further include determining the index of the scene element to which each pixel belongs according to the color value of each pixel in the target rendering image to obtain a target index set. The method may further include determining a second scene element set in the first scene element set, and determining scene elements in the second scene element set as visible elements under the target perspective, indexes of the scene elements in the second scene element set being included in indexes in the target index set.