Reversible geometric level-of-detail rendering method and apparatus based on asset complexity fingerprint and frame-time feedback
By generating complexity fingerprints and caching original geometric materials, and dynamically adjusting the rendering level in conjunction with frame rate feedback, the problems of uncertain initial rendering level and poor rendering stability during 3D asset loading are solved, achieving efficient rendering adaptability.
Patent Information
- Application Number
- CN202611645076.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the initial level cannot be directly determined when a 3D asset is loaded, and there is a lack of recoverable data when upgrading, resulting in poor rendering stability and adaptability.
By generating a complexity fingerprint and determining the initial quality level, the original geometry and its materials are cached, the quality level is adjusted frame by frame, and the geometry level is dynamically adjusted by combining frame rate feedback and historical information. The configuration information is stored using the content hash as the key.
It enables the determination of the initial level of complexity when loading 3D assets, reducing geometric load, and restoring the original geometry and materials when upgrading, thereby improving rendering stability and adaptability.
Smart Images

Figure CN123181691A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of real-time 3D rendering technology, and in particular to a reversible geometric hierarchical rendering method and apparatus based on asset complexity fingerprints and frame-time feedback. Background Technology
[0002] With the development of 3D AI-generated large models and augmented reality technology, 3D assets can be dynamically generated from the generated model during runtime and loaded onto mobile terminals or other computing devices for real-time rendering. 3D assets are typically carried in formats such as GLB (GL Binary), containing various load metrics including triangles, vertices, meshes, skinned meshes, materials, textures, texture pixels, draw calls, and geometric bytes. In practical applications, different generated results vary significantly in geometric scale, number of materials, and texture size. Furthermore, the graphics processing capabilities, memory bandwidth, and display conditions of terminal devices differ. Therefore, it is necessary to identify and control the rendering load during asset loading and runtime.
[0003] Related technologies employ various rendering control methods, including dynamically adjusting resolution and LOD (Level of Detail) based on frame rate, generating multi-level meshes offline, switching LOD at runtime based on distance or GPU (Graphics Processing Unit) performance, and setting fixed quality levels based on device model. Other solutions utilize sliding windows to statistically analyze frame rate, set thresholds or hysteresis conditions for quality switching, and save configurations by page address, device identifier, or file path. These existing solutions address pixel load, geometry switching, device grading, and configuration persistence, respectively, and are already used in conventional 3D scenes and pre-built assets.
[0004] In the process of implementing the relevant technology, the applicant recognized that the relevant technology has at least the following technical problems: The complexity of assets generated during runtime is unpredictable. Setting fixed quality levels based on device models is difficult to match with the actual load of specific assets. Relying solely on frame rate feedback requires running the program and accumulating frame samples before making decisions, making it impossible to directly determine the initial quality level when the asset is loaded. Adjusting the rendering resolution without changing the number of triangles and drawing calls still results in a geometric load bottleneck. Offline LOD relies on the generator providing multi-level meshes in advance, which is usually not available for assets generated during runtime. Directly overwriting the original mesh with geometric simplifications without caching the original geometry and vertex attributes leads to a lack of recoverable data when upgrading quality levels. Furthermore, storing quality configurations using URLs (Uniform Resource Locators) or device identifiers as keys means that when the address remains the same but the content is replaced, old decisions will be used for new assets, resulting in poor rendering stability and adaptability. Summary of the Invention
[0005] In view of this, this application provides a reversible geometric hierarchical rendering method and apparatus based on asset complexity fingerprint and frame time feedback. The main purpose is to solve the problems that the initial level cannot be directly determined when the asset is loaded, the lack of recoverable data when upgrading, and the poor stability and adaptability of rendering.
[0006] According to a first aspect of this application, a reversible geometric hierarchical rendering method based on asset complexity fingerprints and frame-time feedback is provided, the method comprising: Load the 3D assets and their content hashes generated during the loading and running period. By performing normalized hashing processing on the multidimensional indicators of the 3D assets and the content hashes, a complexity fingerprint is generated and the initial quality level is determined. According to the material group in the 3D asset, select triangles in the original geometry of the 3D asset and copy the vertex attributes of the selected triangles to form multiple geometric levels, while caching the original geometry and its corresponding original material. During the rendering of the 3D asset, frame intervals are collected frame by frame to form a sliding window frame rate. The current quality level of the 3D asset is adjusted by combining the sliding window frame rate, a preset frame rate threshold, and the historical quality adjustment time points of the 3D asset. Among the multiple geometric levels, a target geometric level that matches the adjusted current quality level is determined, the current geometric level of the 3D asset is switched to the target geometric level, and the pixel ratio, shadow state, number of effective lights and material mode are determined according to the adjusted current quality level. The 3D asset is then rendered jointly. The original geometry and its corresponding original materials are kept in a cache. When the adjusted current quality level increases, the corresponding geometry and original materials are restored from the cache and the associated geometric levels. The complexity fingerprint, the adjusted current quality level, the frame rate threshold, and the target geometry level are stored as an asset quality profile using the content hash as the key. When a 3D asset with the same content hash is detected to be loaded twice, the rendering configuration information is restored in the asset quality profile and the asset is rendered.
[0007] According to a second aspect of this application, a reversible geometric hierarchical rendering apparatus based on asset complexity fingerprints and frame-time feedback is provided, the apparatus comprising: The fingerprint generation module is used to load the 3D assets and their content hashes generated during runtime, and to generate a complexity fingerprint and determine the initial quality level by performing normalized hashing on the multidimensional indicators of the 3D assets and the content hashes. The geometry grading module is used to select triangular faces in the original geometry of the 3D asset according to the material group in the 3D asset and copy the vertex attributes of the selected triangular faces to form multiple geometry levels, while caching the original geometry and its corresponding original material. The quality adjustment module is used to collect frame intervals frame by frame during the rendering of the 3D asset to form a sliding window frame rate. The current quality level of the 3D asset is adjusted by combining the sliding window frame rate, a preset frame rate threshold, and the historical quality adjustment time points of the 3D asset. The asset rendering module is used to determine a target geometry level that matches the adjusted current quality level among the multiple geometry levels, switch the current geometry level of the 3D asset to the target geometry level, and determine the pixel ratio, shadow state, number of effective lights and material mode according to the adjusted current quality level, and jointly perform asset rendering on the 3D asset. The original geometry and its corresponding original materials are kept in a cache, and when the adjusted current quality level increases, the corresponding geometry and original materials are restored from the cache and the associated geometry levels. The strategy persistence module is used to store the complexity fingerprint, the adjusted current quality level, the frame rate threshold, and the target geometry level as an asset quality profile using the content hash as the key, and when a 3D asset with the same content hash is detected to be loaded twice, the rendering configuration information is restored in the asset quality profile and the asset is rendered.
[0008] By employing the above technical solutions, this application provides a reversible geometric hierarchical rendering method and apparatus based on asset complexity fingerprints and frame-time feedback. This application generates a complexity fingerprint by normalizing the hash of content and multi-dimensional indicators, and determines the initial quality level accordingly. This allows an initial quality level matching its complexity to be obtained immediately upon completion of 3D asset loading, without waiting for frame rate samples, thus solving the problems of mismatched quality levels on fixed devices and the inability to directly determine the initial quality level. Furthermore, by selecting triangles in the original geometry according to material groups and copying vertex attributes to form multiple geometric levels, and simultaneously caching the original geometry and materials, the geometric load can be effectively reduced. Upgrading the quality level can be restored from the cache, avoiding the problems of insufficient resolution adjustment to solve geometric bottlenecks and irreversible direct overwriting. Simultaneously, the current quality level is adjusted by combining the sliding window frame rate, preset frame rate threshold, and historical quality level adjustment time points, allowing the quality level to dynamically change with the running frame rate feedback. Furthermore, files are stored using content hashes as keys, and the rendering configuration is restored when the same content hash is loaded a second time, allowing the same content to reuse configurations. When content changes, the hash changes without misusing old configurations, resulting in good rendering stability and adaptability.
[0009] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0010] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This paper illustrates a flowchart of a reversible geometric hierarchical rendering method based on asset complexity fingerprinting and frame-time feedback, provided in an embodiment of this application. Figure 2 This paper illustrates a schematic diagram of the architecture of a 3D asset rendering system provided in an embodiment of this application. Figure 3 This illustration shows a flowchart of a user action and technical response provided in an embodiment of this application; Figure 4 This illustration shows a schematic diagram of the structure of a reversible geometric hierarchical rendering device based on asset complexity fingerprinting and frame-time feedback, provided in an embodiment of this application. Figure 5 A schematic diagram of the device structure of a computer device provided in an embodiment of this application is shown. Detailed Implementation
[0011] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.
[0012] This application provides a reversible geometric hierarchical rendering method based on asset complexity fingerprinting and frame-time feedback, such as... Figure 1 As shown, the method includes: S10: Load the 3D assets and their content hashes generated during runtime. By performing normalized hashing on the multidimensional indicators and content hashes of the 3D assets, a complexity fingerprint is generated and the initial quality level is determined.
[0013] In this embodiment, runtime-generated 3D assets refer to 3D content dynamically formed by a 3D generation model during application runtime, rather than pre-made offline. Content hash refers to the digest obtained by performing a hash operation on the actual byte data of the 3D asset, used to identify the specific content of the asset. In this embodiment, when loading an asset, it is necessary to traverse its scene data and collect statistics on multi-dimensional indicators including geometry, material, texture, draw calls, and bytes. These indicators reflect the load that the asset may generate during rendering. Then, the content hash and multi-dimensional indicators are normalized and serialized according to a preset field order and then hashed to obtain a complexity fingerprint. The complexity fingerprint is a joint digest of content identity and load structure. Next, based on indicators such as the number of triangles, the number of draw calls, and the number of texture pixels in the multi-dimensional indicators, they are matched with a preset quality level range to determine the initial quality level.
[0014] In this way, through the above process, the initial quality level that matches its complexity can be obtained as soon as the 3D asset is loaded, without waiting for frame rate samples, thereby solving the problems of mismatch between fixed device quality levels and the inability to directly determine the initial quality level.
[0015] For example, after generating 3D assets of a cartoon character, its numerous triangular faces, multiple materials, and high-pixel textures are statistically analyzed and combined with GLB byte hashes to form a complexity fingerprint, which is then used to start the computer in power-saving mode.
[0016] S20: Based on the material group in the 3D asset, select triangles in the original geometry of the 3D asset and copy the vertex properties of the selected triangles to form multiple geometry levels, while caching the original geometry and its corresponding original materials.
[0017] In this embodiment, a material group refers to a set of triangular faces divided by material, and triangular faces within the same material group share the same material definition; the original geometry refers to the vertex and index data of the asset's original mesh, which is the source of facts for generating each level; vertex attributes refer to data such as position, normal, texture coordinates, color, skinning, and deformation on the vertices of the triangular faces; and the original material refers to the material definition corresponding to the original geometry.
[0018] Specifically, in this embodiment, for each material group, triangles belonging to that material group in the original geometry are selected according to the equidistant rule to obtain a subset of different numbers of triangles, and the vertex attributes of the selected triangles are synchronously copied to form multiple geometric levels; at the same time, the original geometry and original materials are cached so that the geometric load can be actually reduced, and can be restored from the cache when upgrading, avoiding the problem that adjusting the resolution alone cannot solve the geometric bottleneck and the irreversible problem of direct overlay.
[0019] For example, geometric levels of 100%, 65%, 35%, and 18% can be created for complex meshes, while meshes with fewer than 240 faces can remain unchanged.
[0020] S30: During the rendering of 3D assets, frame intervals are collected frame by frame to form a sliding window frame rate. The current quality level of the 3D assets is adjusted by combining the sliding window frame rate, the preset frame rate threshold, and the historical quality adjustment time points of the 3D assets.
[0021] In this embodiment, the frame interval refers to the time difference between two adjacent frames; the sliding window frame rate refers to the frame rate calculated based on multiple recent frame intervals; the preset frame rate threshold includes a first threshold and a second threshold; the historical quality adjustment time point refers to the time point when the 3D asset last completed a quality switch; the current quality level refers to the quality level of the 3D asset to be adjusted, and its initial value is the initial quality level.
[0022] Specifically, in this embodiment of the application, frame intervals are collected frame by frame during rendering and stored in a sliding window. When the frame rate of the sliding window is continuously lower than the first threshold for a holding time and the cooldown time has elapsed since the last time the frame rate was switched, the current quality level is reduced by one level. When it is continuously higher than the second threshold for a holding time and the cooldown time has ended, the quality level is increased by one level. When the frame rate is between the two thresholds, the quality level is maintained, so that the quality level can change dynamically with the running frame rate feedback, and the constraints of cooling and historical time points can reduce frequent switching.
[0023] For example, if the value is below the first threshold for two seconds, the level drops; if the value is above the second threshold for five seconds, the level rises; and the system cools down after each gear change.
[0024] S40: Determine the target geometry level that matches the adjusted current quality level among multiple geometry levels, switch the current geometry level of the 3D asset to the target geometry level, and determine the pixel ratio, shadow state, number of effective lights and material mode according to the adjusted current quality level, and jointly render the 3D asset. The original geometry and its corresponding original materials are kept in the cache. When the adjusted current quality level increases, the corresponding geometry and original materials are restored from the cache and the associated geometry levels.
[0025] In this embodiment, the target geometry level refers to the geometry level among multiple geometry levels that corresponds to the adjusted current quality level; the quality level adjustment direction includes increasing the quality level and decreasing the quality level; the asset rendering parameters refer to the geometry and material parameters used to render the 3D asset. When the quality level increases, the asset rendering parameters include the pixel ratio, shadow state, number of effective lights, and material mode determined according to the adjusted current quality level; when the quality level decreases, the target geometry level and the pixel ratio, shadow state, number of effective lights, and material mode determined according to the adjusted current quality level are used as the asset rendering parameters.
[0026] Specifically, the target geometry level needs to be determined according to the correspondence between the quality level and the geometry level, and the current geometry level is switched to the target geometry level. Further, if the quality level adjustment direction is to increase the quality level, the geometry and original materials corresponding to the target geometry level are restored from the cache and the associated geometry levels. The pixel ratio, shadow state, number of effective lights, and material mode are determined according to the adjusted current quality level as asset rendering parameters, and the 3D asset is rendered according to the asset rendering parameters. If the quality level is to decrease, the cache remains unchanged, and the target geometry level, as well as the pixel ratio, shadow state, number of effective lights, and material mode determined according to the adjusted current quality level, are used as asset rendering parameters. The 3D asset is rendered according to the asset rendering parameters, so that the quality level adjustment simultaneously affects the geometry level. When increasing the quality level, the original geometry and original materials can be restored, ensuring that the geometry de-loading is reversible.
[0027] For example, when rendering 3D assets of cartoon characters, the geometry level is gradually switched to 65, 35, and 18 at low frame rates, and then gradually switched back to the saved high-detail geometry and original materials after performance is restored.
[0028] S50: Stores the complexity fingerprint, the adjusted current quality level, the frame rate threshold, and the target geometry level as an asset quality profile using the content hash as the key. When a 3D asset with the same content hash is detected being loaded twice, the rendering configuration information is restored in the asset quality profile and the asset is rendered.
[0029] In this embodiment, the asset quality profile refers to a data record that stores the corresponding 3D asset rendering control configuration using the content hash as the key; secondary loading refers to reloading a 3D asset with the same content hash; the rendering configuration information includes complexity fingerprint, the adjusted current quality level, frame rate threshold, and target geometry level, etc.
[0030] Specifically, after the rendering control is completed, this embodiment of the application will write the above information into the asset quality file with the content hash as the key; in this way, when a 3D asset with the same content hash is loaded again, the file can be read and the rendering configuration information can be restored for rendering; if the content hash changes, the old file will not be hit, so that the same content can reuse the configuration, and the hash changes when the content changes without misusing the old configuration, thereby improving the rendering stability and adaptability.
[0031] For example, when the same cartoon character's 3D assets are summoned again, the most recent save file is restored; if the content of the cartoon character's 3D assets changes and a new hash is generated, the data is re-analyzed and a new save file is created.
[0032] In this embodiment, optionally, the 3D asset and its content hash generated during runtime are loaded. A complexity fingerprint is generated and an initial quality level is determined by performing normalized hashing on the multidimensional indicators and content hash of the 3D asset. This includes: calculating the actual byte data of the 3D asset using a preset hash algorithm to obtain the content hash and the byte length of the 3D asset; traversing the scene data of the 3D asset to statistically analyze multidimensional indicators for the 3D asset, where the multidimensional indicators include geometric load indicators, material load indicators, texture load indicators, draw call load indicators, and byte load indicators. Geometric load indicators include the number of triangles, vertices, meshes, and skinned meshes; material load indicators include the number of materials; texture load indicators include the number of textures and texture pixels; draw call load indicators include the number of draw calls; and byte load indicators include geometric bytes and asset bytes. A preset field order is determined, and the content hash and multidimensional indicators are normalized and serialized according to the preset field order to obtain normalized serialized data. A preset hashing algorithm is then executed on the normalized serialized data to generate a complexity fingerprint. Finally, the corresponding initial quality level is determined for the 3D asset by combining the multidimensional indicators.
[0033] In this embodiment, runtime-generated 3D assets refer to 3D content dynamically formed by a 3D generation model during application operation, rather than pre-made offline, and are typically carried in formats such as GLB. Content hash refers to the digest obtained by performing a preset hash algorithm on the actual byte data of the 3D asset, used to identify the specific content of the asset. Specifically, preset hash algorithms such as SHA-256 can be used to calculate the content hash on the actual byte data of the 3D asset, and the byte length of the 3D asset can be obtained. This byte length can be used as part of subsequent byte load indicators. For example, for the 3D asset of a cartoon character summoned on the same mobile phone, its GLB bytes are first hashed to obtain the content hash, and its byte length is recorded, thereby forming the content identity foundation at the asset fact layer.
[0034] Next, by traversing the scene data of the 3D assets, multi-dimensional metrics are calculated for the 3D assets. These multi-dimensional metrics are statistical quantities describing the rendering load of assets from dimensions such as geometry, materials, textures, draw calls, and bytes. These multi-dimensional metrics include geometry load metrics, material load metrics, texture load metrics, draw call load metrics, and byte load metrics. Specifically, geometry load metrics include the number of triangles, vertices, meshes, and skinned meshes, reflecting the scale of geometry processing; material load metrics include the number of materials, reflecting material switching and shading complexity; texture load metrics include the number of textures and texture pixels, reflecting texture sampling and memory usage; draw call load metrics include the number of draw calls, reflecting CPU batch submission pressure; and byte load metrics include geometry bytes and asset bytes, reflecting data transfer and storage scale. For example, a cartoon character's 3D assets contain a large number of triangles, multiple materials, and high-pixel textures. After traversing its scene data, metrics such as the number of triangles, draw calls, and texture pixels can be obtained.
[0035] Next, a preset field order is determined, and the content hash and multidimensional indicators are normalized and serialized according to this preset field order to obtain normalized serialized data. Normalization serialization means organizing the content hash and multidimensional indicators into a reproducible data string according to a unified field order and stable format, to avoid different digests of the same content due to inconsistent field order or format. Continuing to execute a preset hash algorithm on the normalized serialized data generates a complexity fingerprint. The complexity fingerprint is a digest formed by hashing the asset content hash and multidimensional load indicators together, identifying both the content identity and the load structure. New complexity fingerprints are formed when the content changes. For example, assetSha256 can be concatenated with geometry, material, texture, call, and byte indicators in a stable order and then subjected to SHA-256 to obtain the complexity fingerprint.
[0036] Finally, by combining multi-dimensional indicators, the corresponding initial quality level can be determined for the 3D asset. Thus, the 3D asset can obtain an initial quality level matching its complexity upon loading, without waiting for frame rate samples, solving the problems of mismatch between quality levels on fixed devices and the inability to directly determine the initial quality level. Simultaneously, the complexity fingerprint is bound to the content hash, forming a new identity when the content changes, avoiding the use of old assets for decision-making.
[0037] Optionally, in this embodiment, the initial quality level of the 3D asset is determined by combining multi-dimensional indicators, including: calculating the complexity pressure value of the 3D asset based on the number of triangles, the number of drawing calls, and the number of texture pixels in the multi-dimensional indicators; obtaining multiple preset quality levels, matching the complexity pressure value with the pressure intervals corresponding to the multiple quality levels respectively, and determining the target pressure interval to which the complexity pressure value hits; determining the quality level corresponding to the target pressure interval as the initial quality level, and associating the initial quality level with the complexity fingerprint.
[0038] In this embodiment, when determining the initial quality level of a 3D asset using multi-dimensional metrics, the complexity stress value of the 3D asset can be calculated first based on the number of triangles, the number of draw calls, and the number of texture pixels in the multi-dimensional metrics. The number of triangles reflects the scale of geometric processing, the number of draw calls reflects the pressure of the CPU submitting rendering batches to the GPU, and the number of texture pixels reflects the scale of texture sampling and video memory usage. These three together constitute a comprehensive measure of the asset's rendering load. The complexity stress value is the numerical value obtained by combining these three metrics according to preset rules, used to characterize the load that the asset may generate during rendering. For example, the number of triangles, the number of draw calls, and the number of texture pixels can be normalized and then weighted and summed to obtain the complexity stress value, thus allowing different assets to be compared in terms of load on the same scale.
[0039] Subsequently, multiple preset quality levels are obtained, each corresponding to a pressure range, which represents the complexity pressure range that the quality level can handle. The complexity pressure value is then matched with the pressure range corresponding to each quality level to determine the target pressure range hit by the complexity pressure value. For example, in this embodiment, a high-complexity generation role is statistically determined to have a higher pressure value, hitting the pressure range corresponding to the power-saving level; this power-saving level is the quality level corresponding to the target pressure range. Next, the quality level corresponding to the target pressure range is determined as the initial quality level, and the initial quality level is associated with the complexity fingerprint. Since the complexity fingerprint is formed by content hashing and multi-dimensional indicator normalization hashing, associating the initial quality level with the complexity fingerprint allows the initial level to be stored together when saving the asset quality file according to the content hash, facilitating recovery when loading the same content a second time.
[0040] In this way, since the above process determines the initial quality level based on the number of triangles, the number of drawing calls, and the number of texture pixels when the asset is loaded, there is no need to wait for frame rate samples. Therefore, the 3D asset can obtain an initial quality level that matches its own complexity when it is first loaded, avoiding the stuttering caused by mismatch between fixed equipment quality levels or trial and error from the highest quality level. This provides a reasonable starting point for adjusting the quality level according to frame rate feedback in subsequent operation.
[0041] For example, the triangular faces, draw calls, and texture pixels of the statistical character are used to form a complexity fingerprint with content hashing and recommend a power-saving level. This power-saving level is used as the initial quality level and associated with the complexity fingerprint. Then, 100%, 65%, 35%, and 18% geometry levels are formed for complex meshes, and the level is gradually increased or decreased according to the frame rate during operation.
[0042] In this embodiment, optionally, according to the material group in the 3D asset, triangular faces are selected in the original geometry of the 3D asset and the vertex attributes of the selected triangular faces are copied to form multiple geometric levels. This includes: traversing the scene data of the 3D asset and identifying the material group in the 3D asset; for each identified material group, according to multiple preset geometric ratios, triangular faces are selected in the original geometry within all triangular faces belonging to the material group according to the equidistant rule to obtain a subset of triangular faces of the material group at each geometric ratio; and for each triangular face in each subset of triangular faces, the vertex attributes of the triangular faces are copied synchronously to generate a geometric level corresponding to each geometric ratio. The vertex attributes include position, normal, texture coordinates, color, skinning, and deformation attributes; and the generated geometric levels are associated with the cached original geometry and its original material to form multiple geometric levels.
[0043] In this embodiment, when selecting triangles in the original geometry of a 3D asset according to the material group in the 3D asset and copying the vertex attributes of the selected triangles to form multiple geometric levels, the scene data of the 3D asset can be traversed first to identify the material groups in the 3D asset. Here, a material group refers to a set of triangles divided by material, with triangles within the same material group sharing the same material definition; the original geometry refers to the vertex and index data of the original mesh of the 3D asset, which is the factual source for generating geometry at each level; and the geometric level refers to the lower-level geometry after actually reducing the number of triangles relative to the original geometry.
[0044] After traversing the scene data, for each identified material group, triangular faces are selected according to an equidistant rule within all triangular faces belonging to that material group in the original geometry, based on multiple preset geometric scales. This results in a subset of triangular faces for that material group at each geometric scale. The equidistant rule can be understood as retaining triangular faces at uniform intervals within a sequence of triangular faces belonging to the same material group, thus ensuring a relatively uniform distribution of selected triangular faces within the material group and avoiding the impact of concentrated selection on the contour. For example, for a 3D asset of a cartoon character, multiple material groups are identified, and target geometric scales of 100%, 65%, 35%, and 18% are formed for each complex mesh, resulting in a subset of triangular faces for each scale.
[0045] Then, for each triangle in each subset of triangles, the vertex attributes of that triangle are synchronously copied to generate a geometry level corresponding to each geometric scale. Vertex attributes include position, normals, texture coordinates, color, skinning, and deformation attributes. These attributes are synchronously copied by corner point; that is, for each corner point of the selected triangle, its position, normals, texture coordinates, color, skinning, and deformation data are copied to that geometry level. Thus, the low-level geometry not only changes the display resolution but also truly forms a subset of triangles with synchronized attributes, preserving appearance and animation attributes such as UVs, normals, colors, skinning, and deformation as much as possible. For example, for a generated character with skinning and deformation attributes, after selecting triangles by material group, the skinning weights and deformation targets of the selected triangles are copied together, ensuring that the low-level geometry maintains the corresponding deformation during animation playback. Afterward, each generated geometry level is associated with the cached original geometry and its original materials to form multiple geometry levels. The original geometry is always cached, and the original materials are also cached, so that the original geometry and original materials can be directly restored in high-level scenarios.
[0046] In this way, during the above process, triangles are retained at equal intervals according to each material group, effectively reducing the number of vertices and triangles. Meshes with fewer than the minimum number of faces are not simplified; for example, meshes with fewer than 240 faces are kept as is. All settings retain the original geometry to protect the identification contours. If the geometry simplification of a mesh fails, that mesh retains its original geometry, while other meshes continue to be prepared. Since the original geometry is always cached, higher settings can directly restore the original geometry. Therefore, the above process effectively reduces the geometric load, decreases the number of triangles and vertices with each setting, preserves appearance attributes as much as possible, and supports restoring the original geometry and materials when upgrading settings. This avoids the problem that adjusting the rendering resolution alone cannot solve the geometric bottleneck or that directly overwriting the original geometry can lead to irreversible issues.
[0047] For example, during the generation of 3D assets for cartoon characters, the geometry is gradually switched to 65, 35, and 18 levels at low frame rates, and then gradually switched back to the saved high-detail original geometry and materials after performance is restored.
[0048] In this embodiment, during the rendering of a 3D asset, frame intervals are collected frame by frame to form a sliding window frame rate. The current quality level of the 3D asset is adjusted by combining the sliding window frame rate, a preset frame rate threshold, and historical quality adjustment time points. This includes: collecting frame intervals between adjacent frames frame by frame during the rendering process; storing the collected frame intervals in a sliding window; calculating the sliding window frame rate based on the frame intervals within the sliding window; determining a preset frame rate threshold and obtaining historical quality adjustment time points, wherein the frame rate threshold includes a first threshold and a second threshold, with the second threshold being higher than the first threshold; and the historical quality adjustment time point being the time point when the 3D asset's last quality level switch was completed. The direction of the current quality level adjustment for the 3D asset is determined by comparing the sliding window frame rate with the first and second thresholds and statistically analyzing the holding time of the sliding window frame rate, combined with the historical quality adjustment time points; and adjusting the current quality level according to the adjustment direction.
[0049] In this embodiment, during the rendering of 3D assets, frame intervals between adjacent frames are collected frame by frame. Multiple collected frame intervals are stored in a sliding window, and the sliding window frame rate is calculated based on the frame intervals within the sliding window. Here, frame interval refers to the time difference between the completion of rendering two adjacent frames, the sliding window is a queue that retains only the most recent frame intervals, and the sliding window frame rate is the frame rate calculated from the frame intervals within that window. In practical applications, the near-frame window simultaneously generates average FPS, P95 frame time, and frame drop ratio. Average FPS reflects the overall smoothness in the recent period, P95 frame time refers to the frame time at the 95th percentile after sorting frame intervals by size within the window, reflecting long frames or stuttering, and frame drop ratio refers to the percentage of samples where the frame interval within the window exceeds a preset frame time limit. For example, when continuously viewing a 3D asset of a cartoon character on a mobile phone, the system collects frame intervals frame by frame to obtain average FPS, P95 frame time, and frame drop ratio, which serve as the basis for subsequent telemetry adjustments.
[0050] Subsequently, a preset frame rate threshold is determined, and historical quality level adjustment time points are obtained. The frame rate threshold includes a first threshold and a second threshold, with the second threshold being higher than the first threshold. The historical quality level adjustment time point is the time point when the 3D asset's last quality level switch was completed. In this embodiment, the sliding window frame rate is compared with the first and second thresholds, and the holding time when the sliding window frame rate is lower than the first threshold or higher than the second threshold is recorded. Combined with the historical quality level adjustment time points, the quality level adjustment direction of the 3D asset's current quality level is determined. The current quality level refers to the quality level of the 3D asset to be adjusted, with its initial value being the aforementioned initial quality level. The quality level adjustment direction includes increasing and decreasing the quality level. Different thresholds and holding times are used for low and high frames, and a cooling-off period follows each quality level switch, with only one level shifted at a time. For example, the first threshold related to low frames can be 24 frames, and the second threshold related to high frames can be 50 frames. When a low frame lasts for two seconds, the frame rate drops by one level, and when a high frame lasts for five seconds, the frame rate increases by one level. When the frame rate is in the hysteresis range, the current level is maintained and the corresponding duration timer is reset. Single frame or short-term stuttering is filtered by a sliding window and a hold time, and the frame rate is not immediately switched.
[0051] Next, adjust the current quality level according to the determined adjustment direction. The adjustment level simultaneously affects geometry, pixel ratio, shadows, effective lighting, and the base material with preserved textures. For example, when rendering the 3D assets of a cartoon character, if the sliding window frame rate is lower than the first threshold for two seconds, decrease it by one level, gradually reducing the real triangles, pixel ratio, shadows, and lighting. After performance recovers, if the sliding window frame rate is higher than the second threshold for five seconds, increase it by one level, gradually switching back to the saved high-detail geometry and original materials.
[0052] In this way, since the above process uses the sliding window frame rate, P95 frame rate, and frame drop ratio as operational feedback, and combines dual thresholds, different hold times, cooldown periods, and historical level adjustment time points for single-level migration, the level can dynamically change with the running frame rate feedback, while reducing frequent switching near the threshold and keeping the screen stable; and low frame rates do not trigger the regeneration of 3D assets, and after performance recovery, it can return to the original geometry and materials, and re-analyze and recommend when the content hash changes, avoiding the misuse of old configurations for new assets.
[0053] In this embodiment, optionally, by comparing the sliding window frame rate with a first threshold and a second threshold, and statistically analyzing the holding time of the sliding window frame rate, and combining this with historical quality adjustment time points, the adjustment direction of the current quality level of the 3D asset is determined, and the current quality level is adjusted according to the adjustment direction. This includes: when the sliding window frame rate is lower than the first threshold, starting to record the duration for which the sliding window frame rate is lower than the first threshold; if the duration reaches a first holding time and the historical quality adjustment time point is a preset cooling time from the current time, then determining the quality adjustment direction indicating a decrease in quality level, and decreasing the current quality level by one level; when the sliding window frame rate is higher than the second threshold, starting to record the duration for which the frame rate is higher than the second threshold; if the duration reaches a second holding time and the historical quality adjustment time point is a preset cooling time from the current time, then determining the quality adjustment direction indicating an increase in quality level, and increasing the current quality level by one level; wherein, if the sliding window frame rate is between the first threshold and the second threshold, then keeping the current quality level unchanged and resetting the corresponding duration record.
[0054] In this embodiment, during the rendering of a 3D asset, the sliding window frame rate needs to be compared with preset first and second thresholds, and the adjustment direction needs to be determined by combining the historical frame rate adjustment time points of the 3D asset. The first threshold is lower than the second threshold, the historical frame rate adjustment time point refers to the time point when the 3D asset's last frame rate switch was completed, the preset cooldown time refers to the period during which switching is prohibited from happening again since the last frame rate switch, and the first and second hold times are used to constrain how long the low frame and high frame rate states must last before frame rate switching is allowed. In this embodiment, low frames and high frames use different thresholds and hold times, and after frame rate switching, a cooldown period is entered. Only one level is migrated each time, thereby avoiding frequent switching near the threshold. For example, the first threshold related to low frames can be 24 frames, the second threshold related to high frames can be 50 frames, and the hold times are two seconds and five seconds respectively. Cooling is entered after each frame rate switch.
[0055] Specifically, when the sliding window frame rate falls below a first threshold, the duration of this period is recorded. If this duration reaches a first hold time, and the historical quality adjustment time point has reached a preset cooldown period from the current time, the direction of the quality adjustment to decrease the quality level is determined, and the current quality level is decreased by one level. In this process, the current quality level refers to the quality level of the 3D asset to be adjusted, and its initial value is the aforementioned initial quality level. Decreasing the quality level by one level means migrating only one quality level at a time, rather than decreasing across levels. For example, if the low frame rate lasts for two seconds, it decreases by one level, gradually reducing the real triangles, pixel ratio, shadows, and lights. Single frames or short stutters are filtered by the sliding window and hold time, and the quality level is not immediately changed.
[0056] When the sliding window frame rate is higher than the second threshold, the duration of the sliding window frame rate being higher than the second threshold is recorded. If the duration reaches the second hold time and the historical gear adjustment time point has reached the preset cooldown time from the current time, the gear adjustment direction indicating the gear increase is determined, and the current quality gear is increased by one level.
[0057] If the sliding window frame rate is between the first and second thresholds, the current quality level is maintained and the corresponding duration record is reset to avoid repeated adjustments within the hysteresis range. For example, when the frame rate is high for five seconds, it is increased by one level, gradually switching back to the saved high-detail geometry and original materials; when the frame rate is in the hysteresis range, the current level is maintained and the corresponding duration timer is reset. After the level is adjusted, the level simultaneously affects geometry, pixel ratio, shadows, effective lighting, and the base material with preserved textures; when increasing the level, the cached higher geometry level and original materials are restored, and when decreasing the level, the materials are unloaded while retaining textures, colors, transparency, and necessary vertex attributes. Thus, the embodiments of this application can stably adjust the current quality level step by step based on real frame rate feedback, unload in a timely manner at low frames and gradually restore at high frames, and reduce frequent switching through dual thresholds, dual hold times, cooling, and single-level migration, so that the rendering process remains stable under frame rate fluctuations.
[0058] In this embodiment, optionally, the pixel ratio, shadow state, number of effective lights, and material mode are determined according to the adjusted current quality level, and the 3D asset is rendered jointly, including: identifying the adjustment direction of the current quality level, which is either increasing or decreasing the quality level; when the adjustment direction is increasing the quality level, recovering the geometry and original materials corresponding to the target geometry level from the cache and its associated geometry levels, and determining the pixel ratio, shadow state, number of effective lights, and material mode according to the adjusted current quality level as asset rendering parameters, and rendering the 3D asset according to the asset rendering parameters; when the adjustment direction is decreasing the quality level, keeping the cached original geometry and its corresponding original materials unchanged, using the target geometry level and the pixel ratio, shadow state, number of effective lights, and material mode determined according to the adjusted current quality level as asset rendering parameters, and rendering the 3D asset according to the asset rendering parameters.
[0059] In this embodiment, when jointly rendering a 3D asset based on the adjusted current quality level, the pixel ratio, shadow state, number of effective lights, and material mode are determined. First, the adjustment direction of the current quality level can be identified. The current quality level refers to the quality level of the 3D asset to be adjusted, with its initial value being the aforementioned initial quality level, updated during runtime after a dual-threshold hysteresis decision. The adjustment direction refers to whether the adjustment is an increase or decrease, determined by comparing the sliding window frame rate with the first threshold, the second threshold, the hold time, and historical quality adjustment time points. The target geometry level refers to the geometry level that matches the adjusted current quality level among multiple geometry levels. Asset rendering parameters refer to the parameters used to render the 3D asset, composed of different parameters in the cases of quality level increase and decrease. The cached original geometry and its corresponding original materials are data cached as a fact source in the aforementioned geometry grading step, used to restore higher details during quality level increase.
[0060] Correspondingly, when the quality level adjustment direction is upward, it indicates that the frame rate has been continuously higher than the second threshold for the second hold time and the cooling has ended, the device performance has recovered, and the current quality level increases by one level. At this time, the geometry and original materials corresponding to the target geometry level are recovered from the cache and its associated geometry levels. The pixel ratio, shadow state, number of effective lights, and material mode are determined according to the adjusted current quality level as asset rendering parameters, and the 3D asset is rendered based on the asset rendering parameters. For example, if the target geometry level corresponds to 65% or 100% of the geometry ratio, the corresponding triangle subset or original geometry is recovered from the cache, and the original materials are recovered. At the same time, the pixel ratio, shadow state, number of effective lights, and material mode can be determined according to the adjusted current quality level as asset rendering parameters, and the 3D asset is rendered based on the asset rendering parameters, realizing the joint switching of geometry and rendering actions. Taking the generation of 3D assets for cartoon characters as an example, after the low frame rate degradation, the performance continues to recover, and after five seconds of high frame rate degradation, it increases by one level, gradually switching back to the saved high-detail geometry and original materials, making the geometry degradation reversible.
[0061] When the quality level adjustment direction is downward, it indicates that the frame rate has been continuously below the first threshold for the first holding time and the cooling-off period has ended, indicating insufficient device performance. The current quality level is reduced by one level. At this time, the cached original geometry and its corresponding original materials remain unchanged, that is, the cached data is not overwritten or deleted so that it can be restored when the quality level is increased later. The target geometry level, as well as the pixel ratio, shadow state, number of effective lights, and material mode determined according to the adjusted current quality level, are used as asset rendering parameters, and the 3D asset is rendered according to the asset rendering parameters. The material mode can be a basic material that retains textures, colors, transparency, and necessary vertex attributes. Taking the 3D asset of a cartoon character as an example, when the frame rate is low for two seconds, it is reduced by one level, and the real triangles, pixel ratio, shadows, and lights are reduced step by step. When the material load is reduced, the textures, colors, transparency, and necessary vertex attributes are retained, so as to retain the appearance recognition features as much as possible while reducing the geometry and rendering load.
[0062] In this way, during the above process, when the gear level increases, the geometry and materials corresponding to the target geometry level are restored from the cache. When the gear level decreases, the cache remains unchanged and the geometry, pixel ratio, shadows, number of effective lights, and material mode are adjusted together. This makes the geometry deload reversible, and after performance recovery, it can return to the original geometry and vertex attributes, avoiding direct overwriting of the original geometry and causing irreversibility. At the same time, the gear level acts on geometry, pixels, shadows, lights, and materials to achieve joint quality actions. It can also prevent the regeneration of 3D assets at low frame rates. New assets and new complexity fingerprints are only generated when the user actively changes the content. Then, when the same content hash is loaded again, the most recent configuration is restored according to the asset quality profile.
[0063] Optionally, in this embodiment, the method further includes: when loading a 3D asset, retrieving an asset quality file in the asset quality file storage space using the content hash as the key, wherein the asset quality file storage space is used to store multiple asset quality files using the content hash as the key; when no asset quality file corresponding to the content hash is found in the asset quality file storage space, determining that the 3D asset is being loaded for the first time, generating a complexity fingerprint for the 3D asset, and determining the grade based on the complexity fingerprint; when an asset quality file corresponding to the content hash is found in the asset quality file storage space, determining that the 3D asset is being loaded for the second time, restoring the rendering configuration information in the asset quality file, and performing asset rendering.
[0064] In this embodiment, when loading a 3D asset, it is necessary to first retrieve the asset quality archive in the asset quality archive storage space using the content hash as the key. The asset quality archive storage space is a storage area used to store multiple asset quality archives, each with a content hash as the key. As mentioned earlier, the content hash is a digest obtained by performing a hash operation on the actual byte data of the 3D asset, used to uniquely identify the specific content of the 3D asset. The asset quality archive is a data record that stores the rendering control configuration of the 3D asset using the content hash as the key. During retrieval, the content hash of the currently loaded 3D asset needs to be compared with the keys of each archive in the asset quality archive storage space to determine whether an adaptation record has been previously established for that content.
[0065] When no asset quality file corresponding to the content hash is found in the asset quality file storage space, the 3D asset is determined to be loaded for the first time, meaning that no adaptation record has been established for this content before. At this time, a complexity fingerprint is generated for the 3D asset. Specifically, as described in the process above, its scene data is traversed to count multi-dimensional indicators such as geometry, material, texture, draw calls, and bytes. The content hash and multi-dimensional indicators are normalized and serialized according to the preset field order and then hashed to obtain the complexity fingerprint. The complexity fingerprint is then used to determine the quality level. For example, the complexity pressure value is formed based on the number of triangles, the number of draw calls, and the number of texture pixels in the multi-dimensional indicators. After matching the preset pressure range, the initial quality level is determined. For example, when a user first summons and generates a 3D asset of a cartoon character, the content hash of its GLB bytes is obtained. If no corresponding file is found in the asset quality file storage space, it is determined to be loaded for the first time. Its triangles, draw calls, and texture pixels are counted to generate a complexity fingerprint, and a power-saving level is recommended as the initial quality level.
[0066] When an asset quality file corresponding to the content hash is retrieved from the asset quality file storage space, the 3D asset is determined to be a second-loaded asset, meaning the same content has been previously loaded and the adaptation results have been saved. In this case, the rendering configuration information is restored from the asset quality file, and the asset is rendered. The rendering configuration information may include automatic mode, the adjusted current quality level, frame rate threshold, recent decision, runtime telemetry, complexity fingerprint, and target geometry level. During restoration, the quality level in the file can be restored to the current quality level, the frame rate threshold in the file can be restored to the threshold used for frame rate determination, and the target geometry level, corresponding pixel ratio, shadow state, effective light quantity, and material mode can be determined according to the restored quality level. For example, when the same cartoon character's 3D asset is summoned again, the file is hit according to the content hash, the most recent configuration is restored, and there is no need to re-trial and error from the highest quality level or wait for frame rate samples; rendering is directly performed based on the previous adaptation results.
[0067] In this way, during the above process, since the asset quality profile uses content hash as the key instead of network address or device model, the accumulated adaptation results can be reused when the same content is loaded again. When the address remains the same but the content is replaced, a new content hash will be formed due to the change in actual byte data, and the old profile will not be hit, thus avoiding the old decisions being incorrectly applied to the new asset. When the content changes, it is re-analyzed and recommended, so that the configuration is bound to the specific content.
[0068] For example, if the model content of a cartoon character's 3D asset is updated, its actual byte data changes, and the content hash changes accordingly. If the corresponding file cannot be retrieved in the asset quality file storage space, it is determined to be the first load. The complexity fingerprint is regenerated and the initial quality level is determined. The quality file before the update is not reused.
[0069] Optionally, in this embodiment of the application, the method further includes: when a 3D asset with the same source identifier is loaded again, performing a hash operation on the actual byte data of the 3D asset to obtain the current content hash, comparing the current content hash with the content hash of the stored asset quality file; when the current content hash is inconsistent with the content hash of the stored asset quality file, determining that the actual byte data of the 3D asset has changed, treating the 3D asset as a new 3D asset, prohibiting the restoration of the asset quality file corresponding to the content hash before the change, regenerating a new complexity fingerprint for the new 3D asset, adjusting the current quality level, and determining a new target geometry level to generate and store a new asset quality file.
[0070] In this embodiment, when a 3D asset with the same source identifier is reloaded, a hash operation needs to be performed on the actual byte data of the 3D asset to obtain the current content hash. Reloading a 3D asset with the same source identifier means that the 3D asset has been previously loaded and an asset quality profile has been created. The actual byte data refers to the current actual byte content of the 3D asset, such as GLB bytes. The current content hash is a digest obtained by performing a hash operation on the current actual byte data, used to identify the current specific content of the 3D asset. This embodiment compares the current content hash with the content hash of the stored asset quality profile to determine whether the actual byte data of the 3D asset is consistent with that when the profile was created. For example, when a user summons the 3D asset of the same cartoon character again, the SHA-256 hash operation is re-performed on its GLB bytes to obtain the current content hash, which is then compared with the content hash of the 3D asset profile of the cartoon character already stored in the asset quality profile storage space.
[0071] When the current content hash is inconsistent with the content hash of the stored asset quality file, it is determined that the actual byte data of the 3D asset has changed. The 3D asset is then treated as a new 3D asset, and the restoration of the asset quality file corresponding to the content hash before the change is prohibited. Since the asset quality file uses the content hash as the key, and the content hash is a digest obtained by performing a hash operation on the actual byte data, when the actual byte data changes, the content hash changes accordingly, and the key of the stored file no longer matches the current content hash. If the old file is restored at this time, the adaptation result of the old content will be incorrectly applied to the new content. Therefore, this embodiment of the application prohibits the restoration of the asset quality file before the change, treats the 3D asset as a new 3D asset, regenerates a new complexity fingerprint for the new 3D asset, adjusts the current quality level, and determines a new target geometry level to generate and store a new asset quality file. For example, if the model content of a cartoon character's 3D asset is updated, its actual byte data changes, and the current content hash is inconsistent with the old file, the old file is not reused. Instead, the new cartoon character's 3D asset is re-traversed to collect multidimensional indicators, and the current content hash and multidimensional indicators are normalized and hashed to generate a new complexity fingerprint. Based on this, a new initial quality level is determined, and the current quality level is adjusted according to the frame rate feedback during operation to determine a new target geometry level. Finally, a new asset quality file is generated and stored using the current content hash as the key.
[0072] In this way, since the above process uses the content hash of the actual byte data as the file key, rather than the network address or device model, when the address remains the same but the content is replaced, the change in the actual byte data will generate a new content hash, and the old file will not be incorrectly hit, thus avoiding the application of old decisions to the new asset. At the same time, since it is prohibited to restore the file before the change and regenerate a new complexity fingerprint, perform level adjustment and determine the target geometry level, the new 3D asset can obtain an initial level and adaptation result that matches its own complexity, and restore the new file when the same content hash is loaded a second time, so that the configuration is bound to the specific content.
[0073] For example, assuming the character's triangles, draw calls, and texture pixels are statistically analyzed, a complexity fingerprint is formed using content hashing, and a power-saving profile is recommended; if the character's content changes, the statistics are recalculated and a new complexity fingerprint and a new power-saving profile recommendation are formed, generating a new asset quality profile and storing it, thus maintaining rendering stability and adaptability even when the content changes.
[0074] In practical applications, the technical solutions in this embodiment can be applied to a 3D asset rendering system. The system architecture of the 3D asset rendering system is as follows: Figure 2As shown, the 3D asset rendering system consists of an asset fact layer, a complexity analysis layer, an initial recommendation layer, a geometric hierarchy layer, a performance monitoring layer, a hysteresis control layer, a rendering execution layer, and a strategy persistence layer. Each layer is connected sequentially to form a closed loop. The asset fact layer provides verified content hashes and byte lengths to output asset identity, with content addressing storage as a key technology. The complexity analysis layer statistically analyzes geometry, textures, materials, and call loads, outputting complexity records and fingerprints, with scene traversal and canonical hashing as key technologies. The initial recommendation layer selects the starting tier for new assets and outputs initial quality, with complexity pressure rules as a key technology. The geometry grading layer forms reversible multi-level triangular face subsets from the original mesh, outputting LOD geometry groups, with material group isometric face selection and attribute synchronization as key technologies. The performance monitoring layer generates FPS, P95 frame rate, and frame drop ratio, outputting runtime telemetry, with frame interval sliding window as a key technology. The hysteresis control layer determines the gradual increase or decrease of tiers and outputs tier migration, with dual thresholds, hold time, and cooldown as key technologies. The rendering execution layer jointly adjusts multiple types of loads and outputs the current image quality, with geometry, pixels, shadows, lighting, and materials as key technologies. The policy persistence layer saves and restores configurations according to content identity, outputting asset quality profiles, with hash keys, complexity fingerprints, and recent cause as key technologies. Asset content hashing runs through all layers, ensuring that complexity, geometric level, and operational decisions belong to the same generated content, thus forming a complete technical chain between asset loading, operational feedback, and secondary loading recovery.
[0075] In summary, based on the aforementioned 3D rendering system, the user action and technical response process in this embodiment is as follows: Figure 3 As shown, when a user loads and generates an asset, the GLB bytes are verified and the content hash is obtained. Supported by SHA-256 and byte length, the asset fact layer is called to obtain the asset's content identity. After asset parsing, the 3D rendering system statistically analyzes geometry, materials, textures, draw calls, and byte metrics, which, together with the content hash, form a complexity fingerprint. The supporting mechanism is multi-dimensional metrics, canonical sequences, and fingerprints, calling the complexity analysis layer. When the model is first mounted, the 3D rendering system determines the initial tier based on triangles, draw calls, and texture pixel pressure. The supporting mechanism is complexity pressure and asset-level configuration, calling the initial recommendation layer. The asset then... Upon entering the scene, the 3D rendering system selects faces at equal intervals according to the material group, synchronously copies vertex attributes and saves the original geometry. The supporting mechanisms are triangle subsets, attribute preservation, and minimum outline guardrails. It calls the geometry grading layer to generate reversible geometry levels. During continuous viewing by the user, the 3D rendering system collects frame intervals, calculates the sliding frame rate, P95 frame time, and frame drop ratio. The supporting mechanisms are windows and telemetry. It calls the performance monitoring layer to sample runtime performance. When performance continues to change, the 3D rendering system moves one level at a time according to low and high thresholds, hold time, and cooldown period. The supporting mechanisms are dual thresholds, dual timers, and cooldown. It calls the hysteresis control layer to execute hysteresis decisions.
[0076] The method provided in this application generates a complexity fingerprint by hashing content hashes and normalizing multi-dimensional indicators, and determines the initial quality level accordingly. This allows the initial quality level matching the complexity of the 3D asset to be obtained immediately upon loading, without waiting for frame rate samples, thus solving the problems of mismatch between fixed device quality levels and the inability to directly determine the initial quality level. Furthermore, by selecting triangles in the original geometry according to material groups and copying vertex attributes to form multiple geometric levels, and caching the original geometry and materials, the geometric load can be effectively reduced, and the quality level can be restored from the cache when upgrading, avoiding the problems of geometric bottlenecks that cannot be solved by adjusting the resolution alone and irreversible direct overwriting. At the same time, the current quality level is adjusted by combining the sliding window frame rate, the preset frame rate threshold, and the historical quality level adjustment time point, so that the quality level can dynamically change with the running frame rate feedback. Moreover, the file is stored with the content hash as the key, and the rendering configuration is restored when the same content hash is loaded again, so that the configuration can be reused for the same content. When the content changes, the hash changes and the old configuration is not misused, resulting in good rendering stability and adaptability.
[0077] Furthermore, as Figure 1 In a specific implementation of the method, this application provides a reversible geometric hierarchical rendering device based on asset complexity fingerprinting and frame-time feedback, such as... Figure 4 As shown, the device includes: a fingerprint generation module 401, a geometric grading module 402, a gear adjustment module 403, an asset rendering module 404, and a strategy persistence module 405.
[0078] The fingerprint generation module 401 is used to load the 3D assets and their content hashes generated during runtime, and to generate a complexity fingerprint and determine the initial quality level by performing normalized hashing processing on the multidimensional indicators of the 3D assets and the content hashes. The geometry grading module 402 is used to select triangular faces in the original geometry of the three-dimensional asset according to the material group in the three-dimensional asset and copy the vertex attributes of the selected triangular faces to form multiple geometry levels, while caching the original geometry and its corresponding original material. The quality adjustment module 403 is used to collect frame intervals frame by frame during the rendering of the 3D asset to form a sliding window frame rate. Combined with the sliding window frame rate, a preset frame rate threshold, and the historical quality adjustment time points of the 3D asset, the current quality level of the 3D asset is adjusted. The asset rendering module 404 is used to determine a target geometry level that matches the adjusted current quality level among the multiple geometry levels, switch the current geometry level of the 3D asset to the target geometry level, and determine the pixel ratio, shadow state, number of effective lights and material mode according to the adjusted current quality level, and jointly perform asset rendering on the 3D asset. The original geometry and its corresponding original materials are kept in a cache, and when the adjusted current quality level increases, the corresponding geometry and original materials are restored from the cache and the associated geometry levels. The strategy persistence module 405 is used to store the complexity fingerprint, the adjusted current quality level, the frame rate threshold, and the target geometry level as an asset quality archive using the content hash as the key, and when a 3D asset with the same content hash is detected to be loaded twice, the rendering configuration information is restored in the asset quality archive and the asset is rendered.
[0079] In a specific application scenario, the fingerprint generation module 401 is used to calculate the actual byte data of the 3D asset using a preset hash algorithm to obtain the content hash and the byte length of the 3D asset; by traversing the scene data of the 3D asset, it calculates the multi-dimensional indicators for the 3D asset, wherein the multi-dimensional indicators include geometric load indicators, material load indicators, texture load indicators, rendering call load indicators, and byte load indicators. The geometric load indicators include the number of triangles, the number of vertices, the number of meshes, and the number of skinned meshes; the material load indicators include the number of materials; the texture load indicators include the number of textures and the number of texture pixels; the rendering call load indicators include the number of rendering calls; and the byte load indicators include geometric bytes and asset bytes. A preset field order is determined, and the content hash and the multi-dimensional indicators are normalized and serialized according to the preset field order to obtain normalized serialized data. A preset hash algorithm is then executed on the normalized serialized data to generate the complexity fingerprint; combined with the multi-dimensional indicators, the corresponding initial quality level is determined for the 3D asset.
[0080] In a specific application scenario, the fingerprint generation module 401 is used to calculate the complexity pressure value of the three-dimensional asset based on the number of triangles, the number of drawing calls, and the number of texture pixels in the multi-dimensional indicators; obtain multiple preset quality levels; match the complexity pressure value with the pressure intervals corresponding to the multiple quality levels respectively; determine the target pressure interval hit by the complexity pressure value; determine the quality level corresponding to the target pressure interval as the initial quality level; and associate the initial quality level with the complexity fingerprint.
[0081] In specific application scenarios, the geometric grading module 402 is used to traverse the scene data of the 3D asset and identify the material groups in the 3D asset; for each identified material group, according to multiple preset geometric ratios, triangular faces belonging to the material group in the original geometry are selected according to the equidistant rule to obtain a subset of triangular faces of the material group at each geometric ratio, and for each triangular face in each subset of triangular faces, the vertex attributes of the triangular face are synchronously copied to generate a geometric level corresponding to each geometric ratio, wherein the vertex attributes include position, normal, texture coordinates, color, skinning and deformation attributes; the generated geometric levels are associated with the cached original geometry and its original material to form the multiple geometric levels.
[0082] In a specific application scenario, the quality adjustment module 403 is used to collect frame intervals between adjacent frames one by one during the rendering of the 3D asset, store the collected frame intervals into a sliding window, and calculate the sliding window frame rate based on the frame intervals within the sliding window; determine a preset frame rate threshold, and obtain the historical quality adjustment time point, wherein the frame rate threshold includes a first threshold and a second threshold, and the second threshold is higher than the first threshold, and the historical quality adjustment time point is the time point when the 3D asset completed the last quality switch; by comparing the sliding window frame rate with the first threshold and the second threshold, and statistically analyzing the holding time of the sliding window frame rate, and combining the historical quality adjustment time point, the quality adjustment direction of the current quality level of the 3D asset is determined, and the current quality level is adjusted according to the quality adjustment direction.
[0083] In a specific application scenario, the gear adjustment module 403 is used to: when the sliding window frame rate is lower than the first threshold, start recording the duration for which the sliding window frame rate is lower than the first threshold; if the duration reaches a first holding time and the historical gear adjustment time point is a preset cooling time from the current time, determine the gear adjustment direction indicating a gear decrease and lower the current quality gear by one level; when the sliding window frame rate is higher than the second threshold, start recording the duration for which the frame rate is higher than the second threshold; if the duration reaches a second holding time and the historical gear adjustment time point is a preset cooling time from the current time, determine the gear adjustment direction indicating a gear increase and raise the current quality gear by one level; wherein, if the sliding window frame rate is between the first threshold and the second threshold, keep the current quality gear unchanged and reset the corresponding duration record.
[0084] In specific application scenarios, the asset rendering module 404 is used to identify the adjustment direction of the current quality level, which is either increasing or decreasing the quality level. When the adjustment direction is increasing the quality level, the module recovers the geometry and original materials corresponding to the target geometry level from the cache and its associated geometry levels, and determines the pixel ratio, shadow state, number of effective lights, and material mode according to the adjusted current quality level as asset rendering parameters, and renders the 3D asset based on the asset rendering parameters. When the adjustment direction is decreasing the quality level, the cached original geometry and its corresponding original materials remain unchanged, and the target geometry level, as well as the pixel ratio, shadow state, number of effective lights, and material mode determined according to the adjusted current quality level, are used as asset rendering parameters, and the 3D asset is rendered based on the asset rendering parameters.
[0085] In specific application scenarios, the strategy persistence module 405 is further used to, when loading the 3D asset, retrieve asset quality files in the asset quality file storage space using the content hash as the key, wherein the asset quality file storage space is used to store multiple asset quality files using the content hash as the key; when no asset quality file corresponding to the content hash is found in the asset quality file storage space, it is determined that the 3D asset is being loaded for the first time, and the complexity fingerprint is generated for the 3D asset to determine the grade based on the complexity fingerprint; when an asset quality file corresponding to the content hash is found in the asset quality file storage space, it is determined that the 3D asset is being loaded for the second time, and the rendering configuration information is restored in the asset quality file and the asset is rendered.
[0086] In specific application scenarios, the strategy persistence module 405 is further configured to perform a hash operation on the actual byte data of the 3D asset when the same source identifier is reloaded, obtain the current content hash, and compare the current content hash with the content hash of the stored asset quality file; when the current content hash is inconsistent with the content hash of the stored asset quality file, it is determined that the actual byte data of the 3D asset has changed, the 3D asset is treated as a new 3D asset, the restoration of the asset quality file corresponding to the content hash before the change is prohibited, a new complexity fingerprint is generated for the new 3D asset, the current quality level is adjusted, and a new target geometry level is determined to generate and store a new asset quality file.
[0087] The apparatus provided in this application generates a complexity fingerprint by hashing content hashes and normalizing multi-dimensional indicators, and determines the initial quality level accordingly. This allows the initial quality level matching the complexity of the 3D asset to be obtained immediately upon loading, without waiting for frame rate samples, thus solving the problems of mismatch between fixed device quality levels and the inability to directly determine the initial quality level. Furthermore, by selecting triangles in the original geometry according to material groups and copying vertex attributes to form multiple geometric levels, and caching the original geometry and materials, the geometric load can be effectively reduced, and the quality level can be restored from the cache when upgrading, avoiding the problems of geometric bottlenecks that cannot be solved by adjusting the resolution alone and irreversible direct overwriting. At the same time, the current quality level is adjusted by combining the sliding window frame rate, the preset frame rate threshold, and the historical quality level adjustment time point, so that the quality level can dynamically change with the running frame rate feedback. Moreover, the archive is stored with the content hash as the key, and the rendering configuration is restored when the same content hash is loaded again, so that the configuration can be reused for the same content, and the hash changes when the content changes without misusing the old configuration, resulting in good rendering stability and adaptability.
[0088] It should be noted that other corresponding descriptions of the functional units involved in the reversible geometric hierarchical rendering device based on asset complexity fingerprinting and frame-time feedback provided in this application embodiment can be found in the following references. Figures 1 to 3 The corresponding descriptions in [the document] will not be repeated here.
[0089] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0090] It should be noted that any AI models, software tools, or components not belonging to this company appearing in the embodiments of this application are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application has been authorized (with the knowledge and consent) by the relevant parties or has been fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.
[0091] The above embodiments and the technical features in the embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] The embodiments described above are merely examples of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these modifications and improvements all fall within the protection scope of this application.
[0093] In an exemplary embodiment, see Figure 5 The system also provides an electronic device comprising a bus 501, a processor 502, a memory 503, and a communication interface 504. It may also include an input / output interface 505 and a display device 506. The various functional units can communicate with each other via the bus. The memory 503 stores a computer program, which, from bottom to top, includes a kernel 5034 that directly manages the hardware, middleware 5033 that provides general services for applications, an application programming interface 5032 that defines calling specifications, and an application 5031 that implements specific business logic. The processor 502 is used to read from the memory 503 via the bus 501 and execute the program stored in the memory, performing the reversible geometric hierarchical rendering method based on asset complexity fingerprinting and frame-time feedback described in the above embodiment.
[0094] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the reversible geometric hierarchical rendering method based on asset complexity fingerprints and frame-time feedback.
[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented in hardware or by using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) and includes several instructions to cause a computer device (such as a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0096] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application.
[0097] Those skilled in the art will understand that the modules in the apparatus of the implementation scenario can be distributed within the apparatus of the implementation scenario as described, or they can be located in one or more apparatuses different from this implementation scenario, with corresponding changes. The modules of the above-described implementation scenario can be combined into one module, or they can be further divided into multiple sub-modules.
[0098] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of the implementation scenario.
[0099] The above disclosures are only a few specific implementation scenarios of this application. However, this application is not limited to these. Any variations that can be conceived by those skilled in the art should fall within the protection scope of this application.
Claims
1. A reversible geometric hierarchical rendering method based on asset complexity fingerprinting and frame-time feedback, characterized in that, include: Load the 3D assets and their content hashes generated during the loading and running period. By performing normalized hashing processing on the multidimensional indicators of the 3D assets and the content hashes, a complexity fingerprint is generated and the initial quality level is determined. According to the material group in the 3D asset, select triangles in the original geometry of the 3D asset and copy the vertex attributes of the selected triangles to form multiple geometric levels, while caching the original geometry and its corresponding original material. During the rendering of the 3D asset, frame intervals are collected frame by frame to form a sliding window frame rate. The current quality level of the 3D asset is adjusted by combining the sliding window frame rate, a preset frame rate threshold, and the historical quality adjustment time points of the 3D asset. Among the multiple geometric levels, a target geometric level that matches the adjusted current quality level is determined, the current geometric level of the 3D asset is switched to the target geometric level, and the pixel ratio, shadow state, number of effective lights and material mode are determined according to the adjusted current quality level. The 3D asset is then rendered jointly. The original geometry and its corresponding original materials are kept in a cache. When the adjusted current quality level increases, the corresponding geometry and original materials are restored from the cache and the associated geometric levels. The complexity fingerprint, the adjusted current quality level, the frame rate threshold, and the target geometry level are stored as an asset quality profile using the content hash as the key. When a 3D asset with the same content hash is detected to be loaded twice, the rendering configuration information is restored in the asset quality profile and the asset is rendered.
2. The method according to claim 1, characterized in that, The 3D assets and their content hashes generated during the loading and runtime phase are processed by normalizing the multidimensional indicators of the 3D assets and the content hashes to generate a complexity fingerprint and determine the initial quality level, including: A preset hash algorithm is used to calculate the actual byte data of the three-dimensional asset to obtain the content hash, and the byte length of the three-dimensional asset is obtained. By traversing the scene data of the 3D asset, the multi-dimensional indicators are calculated for the 3D asset. The multi-dimensional indicators include geometric load indicators, material load indicators, texture load indicators, draw call load indicators, and byte load indicators. The geometric load indicators include the number of triangles, the number of vertices, the number of meshes, and the number of skinned meshes. The material load indicators include the number of materials. The texture load indicators include the number of textures and the number of texture pixels. The draw call load indicators include the number of draw calls. The byte load indicators include geometric bytes and asset bytes. The preset field order is determined, and the content hash and the multidimensional index are normalized and serialized according to the preset field order to obtain normalized serialized data. A preset hash algorithm is then executed on the normalized serialized data to generate the complexity fingerprint. By combining the aforementioned multidimensional indicators, the corresponding initial quality level is determined for the three-dimensional asset.
3. The method according to claim 2, characterized in that, The step of combining the multidimensional indicators to determine the corresponding initial quality level for the three-dimensional asset includes: The complexity pressure value of the 3D asset is calculated based on the number of triangles, the number of drawing calls, and the number of texture pixels in the multidimensional indicators. Multiple preset quality levels are obtained, and the complexity pressure value is matched with the pressure range corresponding to each of the multiple quality levels to determine the target pressure range hit by the complexity pressure value. The quality level corresponding to the target pressure range is determined as the initial quality level, and the initial quality level is associated with the complexity fingerprint.
4. The method according to claim 1, characterized in that, The process involves selecting triangular faces in the original geometry of the 3D asset according to the material group in the 3D asset and copying the vertex attributes of the selected triangular faces to form multiple geometric levels, including: Traverse the scene data of the 3D asset and identify the material groups in the 3D asset; For each identified material group, according to multiple preset geometric ratios, triangular faces are selected from all triangular faces belonging to the material group in the original geometry according to the equidistant rule to obtain a subset of triangular faces of the material group under each geometric ratio. For each triangular face in each subset of triangular faces, the vertex attributes of the triangular face are copied synchronously to generate a geometric level corresponding to each geometric ratio. The vertex attributes include position, normal, texture coordinates, color, skinning and deformation attributes. The generated geometric levels are associated with the cached original geometry and its original material to form the multiple geometric levels.
5. The method according to claim 1, characterized in that, The process of capturing frame intervals frame by frame during the rendering of the 3D asset to form a sliding window frame rate, and combining the sliding window frame rate, a preset frame rate threshold, and the historical quality adjustment time points of the 3D asset, adjusts the current quality level of the 3D asset, including: During the rendering of the 3D asset, the frame interval between adjacent frames is collected frame by frame, the collected frame intervals are stored in a sliding window, and the frame rate of the sliding window is calculated based on the frame intervals within the sliding window. Determine the preset frame rate threshold and obtain the historical gear adjustment time point, wherein the frame rate threshold includes a first threshold and a second threshold and the second threshold is higher than the first threshold, and the historical gear adjustment time point is the time point when the last gear switch of the three-dimensional asset was completed; By comparing the sliding window frame rate with the first threshold and the second threshold, and by calculating the holding time of the sliding window frame rate, and by combining the historical quality adjustment time points, the adjustment direction of the current quality level of the 3D asset is determined, and the current quality level is adjusted according to the adjustment direction.
6. The method according to claim 5, characterized in that, The step of comparing the sliding window frame rate with the first threshold and the second threshold, calculating the holding time of the sliding window frame rate, and combining this with the historical quality adjustment time points to determine the adjustment direction of the current quality level of the 3D asset, and adjusting the current quality level according to the adjustment direction, includes: When the sliding window frame rate is lower than the first threshold, the duration of the sliding window frame rate being lower than the first threshold is recorded. If the duration reaches the first holding time and the historical gear adjustment time point is a preset cooling time from the current time, the gear adjustment direction indicating the gear reduction is determined, and the current quality gear is reduced by one level. When the sliding window frame rate is higher than the second threshold, the duration of the higher frame rate is recorded. If the duration reaches the second hold time and the historical gear adjustment time point is equal to the preset cooldown time from the current time, the gear adjustment direction indicating the gear increase is determined, and the current quality gear is increased by one level. If the sliding window frame rate is between the first threshold and the second threshold, the current quality level is kept unchanged and the corresponding duration record is reset.
7. The method according to claim 1, characterized in that, The process of determining the pixel ratio, shadow state, effective light quantity, and material mode according to the adjusted current quality level, and jointly rendering the 3D asset, includes: Identify the gear adjustment direction of the current quality level, wherein the gear adjustment direction is gear up or gear down; When the gear adjustment direction is upward, the geometry and original materials corresponding to the target geometry level are recovered from the cache and the associated geometry levels, and the pixel ratio, shadow state, number of effective lights and material mode are determined according to the adjusted current quality level as asset rendering parameters, and the 3D asset is rendered according to the asset rendering parameters. When the gear adjustment direction is downward, the cached original geometry and its corresponding original material remain unchanged. The target geometry level, as well as the pixel ratio, shadow state, effective light quantity and material mode determined according to the adjusted current quality level, are used as the asset rendering parameters, and the 3D asset is rendered according to the asset rendering parameters.
8. The method according to claim 1, characterized in that, The method further includes: When loading the three-dimensional asset, the asset quality archive is retrieved in the asset quality archive storage space using the content hash as the key. The asset quality archive storage space is used to store multiple asset quality archives using the content hash as the key. When no asset quality file corresponding to the content hash is found in the asset quality file storage space, it is determined that the three-dimensional asset is being loaded for the first time, and the complexity fingerprint is generated for the three-dimensional asset to determine the grade by combining the complexity fingerprint. When an asset quality file corresponding to the content hash is retrieved in the asset quality file storage space, it is determined that the 3D asset is a secondary loading, and the rendering configuration information is restored in the asset quality file and the asset is rendered.
9. The method according to claim 1, characterized in that, The method further includes: When a 3D asset with the same source identifier is loaded again, a hash operation is performed on the actual byte data of the 3D asset to obtain the current content hash, and the current content hash is compared with the content hash of the stored asset quality file; When the current content hash is inconsistent with the content hash of the stored asset quality file, it is determined that the actual byte data of the 3D asset has changed. The 3D asset is treated as a new 3D asset. Restoring the asset quality file corresponding to the content hash before the change is prohibited. A new complexity fingerprint is generated for the new 3D asset, the current quality level is adjusted, and a new target geometry level is determined to generate and store a new asset quality file.
10. A reversible geometric hierarchical rendering device based on asset complexity fingerprinting and frame-time feedback, characterized in that, include: The fingerprint generation module is used to load the 3D assets and their content hashes generated during runtime, and to generate a complexity fingerprint and determine the initial quality level by performing normalized hashing on the multidimensional indicators of the 3D assets and the content hashes. The geometry grading module is used to select triangular faces in the original geometry of the 3D asset according to the material group in the 3D asset and copy the vertex attributes of the selected triangular faces to form multiple geometry levels, while caching the original geometry and its corresponding original material. The quality adjustment module is used to collect frame intervals frame by frame during the rendering of the 3D asset to form a sliding window frame rate. The current quality level of the 3D asset is adjusted by combining the sliding window frame rate, a preset frame rate threshold, and the historical quality adjustment time points of the 3D asset. The asset rendering module is used to determine a target geometry level that matches the adjusted current quality level among the multiple geometry levels, switch the current geometry level of the 3D asset to the target geometry level, and determine the pixel ratio, shadow state, number of effective lights and material mode according to the adjusted current quality level, and jointly perform asset rendering on the 3D asset. The original geometry and its corresponding original materials are kept in a cache, and when the adjusted current quality level increases, the corresponding geometry and original materials are restored from the cache and the associated geometry levels. The strategy persistence module is used to store the complexity fingerprint, the adjusted current quality level, the frame rate threshold, and the target geometry level as an asset quality profile using the content hash as the key, and when a 3D asset with the same content hash is detected to be loaded twice, the rendering configuration information is restored in the asset quality profile and the asset is rendered.
