Method for optimizing UE rendering duration based on cloud rendering

Through technical means such as segmenting cascading resources, merging static models, asynchronous loading resources and optimizing rendering queues, the problem of long rendering time of traditional UEs is solved, and the effect of significantly shortening the UE software opening time and improving rendering efficiency is achieved, improving user experience and cloud rendering efficiency.

CN119065764APending Publication Date: 2024-12-03SHENZHEN RENDERBUS TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411012622.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The software opening time is long during the rendering process of traditional UE, which affects the user experience. It is difficult for the existing technology to effectively shorten the time for UE to open the software and improve rendering efficiency.

Method used

Optimize UE rendering time by splitting cascading resources, merging static models, loading resources asynchronously, optimizing render queues, using precompiled lighting and leveraging cache and preloading, including dividing scene resources into multiple cascading only loading when needed , merge static models, load resources asynchronously, optimize render queue order, use precompiled lighting and cache preloading, and release unnecessary resources in a timely manner.

Benefits of technology

It significantly shortens the time for UE to open the software, improves the efficiency and user experience of real-time cloud rendering, reduces the loading time and user waiting time of cloud rendering tasks, reduces the requirements of local devices, and provides a more flexible and efficient rendering solution. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065764A_ABST
    Figure CN119065764A_ABST
Patent Text Reader

Abstract

The invention discloses a method for optimizing UE rendering duration based on cloud rendering. The method comprises the following steps that S1, scene resources are divided into multiple cascades; s2, combining the static models into fewer grids or scene objects; s3, using an asynchronous loading function or multi-thread processing; s4, optimizing a rendering queue; s5, using the pre-compiled illumination; s6, caching and preloading are utilized; and S7, memory management and resource release. According to the method and the device, the effects of shortening the software opening time of the UE and improving the rendering efficiency are achieved by segmenting the cascade resources, merging the static models, asynchronously loading the resources, optimizing the rendering queue, using pre-compiled illumination and utilizing combined application of caching and pre-loading steps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud rendering, and in particular to a method for optimizing UE rendering duration based on cloud rendering. Background Art

[0002] In the traditional UE rendering process, it takes a long time to open the software, which increases the user's waiting time and affects the user experience. With the development of cloud computing and cloud rendering technology, it is possible to migrate UE rendering tasks to the cloud for processing, but the time it takes for UE to open the software still needs to be further shortened.

[0003] Therefore, the prior art has defects and needs to be improved. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for optimizing UE rendering time based on cloud rendering, thereby shortening the time it takes for UE to open software and improving rendering efficiency.

[0005] The technical solution of the present invention is as follows: a method for optimizing UE rendering duration based on cloud rendering is provided, comprising the following steps.

[0006] S1: Split cascade resources; divide scene resources into multiple cascades and load them only when needed; reduce the number of resources that need to be loaded when the software is opened for the first time, and speed up the loading speed.

[0007] S2: Merge static models; merge static models into fewer meshes or scene objects; reduce the number of draw calls and resource loading times, improve rendering performance and loading speed.

[0008] S3: Asynchronous resource loading; implement the mechanism of asynchronous resource loading in the script, use asynchronous loading functions or multi-threaded processing to asynchronously load scene resources.

[0009] S4: Optimize the rendering queue; optimize the order of the rendering queue through scripts; thereby improving rendering efficiency. According to the characteristics and dependencies of the rendering tasks, adjust the order of scene elements in the rendering queue, optimize the order of drawing calls and resource loading, and reduce time consumption.

[0010] S5: Use precompiled lighting; before building the lighting, use a lower quality to speed up the build process, then rebuild the lighting after the scene is ready to reduce the time to open the software.

[0011] S6: Use caching and preloading. According to project requirements, use caching and preloading mechanisms to load scene data and resources in advance. When rendering elements that need to use these resources, the resources have already been loaded into the memory, reducing the loading time when opening the software.

[0012] S7: Memory management and resource release: Implement reasonable memory management and resource release mechanism in the script. Use texture compression, atlas merging, dynamic loading and unloading technology to release unnecessary resources in time after rendering is completed, avoid memory leaks and resource waste, and improve overall rendering efficiency.

[0013] Furthermore, in step S1, the following steps are specifically included: S11: determine the loading priority of resources; divide the resources into different levels according to the importance and frequency of use of the resources; S12: determine the dependency of resources; analyze the dependency between each resource to determine which resources are necessary and which resources are optional; S13: divide the resource cascade; divide the resources into multiple cascade groups according to the priority and dependency of the resources; preferably, the cascade groups can be divided according to the category, type, size or other specific standards of the resources; S14: load resources in batches; load the resources in batches according to the division of cascade groups; when the software is opened for the first time, only the resources in the first batch of cascade groups are loaded, and other cascade groups are not loaded; when the user needs to use specific resources, the resources of other cascade groups are gradually loaded according to the dependency; S15: dynamically load according to demand; dynamically load the required resources according to the user's operations and needs.

[0014] Further, in step S2, the following steps are specifically included: S21: analyzing the commonalities between models; first, analyzing the commonalities between static models and finding parts with similar attributes; S22: merging meshes; according to the analysis results of S21, mesh merging operations are performed on models with commonalities through the game engine; mesh merging is to merge multiple meshes into a single mesh, which can reduce the number of drawing calls; S23: optimizing the merged mesh; the merged mesh may increase the number of vertices, the number of faces and the UV data of the texture; in order to reduce the loading and rendering costs of resources, mesh optimization is performed by deleting duplicate vertices and merging overlapping vertices; S24: creating LOD (Level of Detail); in order to improve rendering performance, multiple LOD levels are created for the merged mesh; each LOD level corresponds to a different level of detail, and an appropriate LOD level is selected for rendering according to the distance and the position of the observer; S25: loading and rendering the merged resources; finally, loading the merged resources into the game engine or renderer and rendering them; since there are fewer merged resources, the number of loading times and the number of drawing calls will also be reduced accordingly, thereby improving rendering performance and loading speed.

[0015] Further, in step S3, the resource path is passed as a parameter to the asynchronous loading function, and a callback function is specified to process the loaded resource after loading is completed. Specifically, the following steps are included: S31: Call the asynchronous loading function in the script; Use the provided asynchronous loading function, such as AsyncLoadAsset, to implement asynchronous loading of resources in the script; S32: After the asynchronous loading is completed, the callback function will be triggered; In the callback function, perform resource initialization, setting, and binding operations to ensure that the resource is used correctly; S33: Monitor the loading progress: Monitor the loading progress through the method of obtaining the loading progress provided by the asynchronous loading function, display the loading progress bar or other loading prompts, and provide a better user experience.

[0016] Furthermore, in step S4, the following steps are specifically included: S41: Analyze the dependency of scene elements: First, analyze the dependency between scene elements to determine which elements have dependencies and which elements can be rendered independently; the dependency is the parent-child relationship between objects in the scene, or the material association between objects or the texture association between objects; S42: Adjust the rendering order in the script: In the script, you can use the rendering queue related methods or functions to adjust the rendering order of scene elements; by changing the rendering order, ensure that objects that do not depend on other elements are rendered first, and then render the elements that depend on these objects.

[0017] By adopting the above scheme, the present invention provides a method for optimizing UE rendering time based on cloud rendering, which shortens the time for UE to open software and improves rendering efficiency by splitting cascade resources, merging static models, asynchronously loading resources, optimizing rendering queues, using precompiled lighting, and utilizing a combination of caching and preloading steps. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0019] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0020] See also Figure 1 The present invention provides a method for optimizing UE rendering duration based on cloud rendering, comprising the following steps.

[0021] S1: Split cascade resources; divide scene resources into multiple cascades and load them only when needed; reduce the number of resources that need to be loaded when the software is opened for the first time, and speed up the loading speed.

[0022] S2: Merge static models; merge static models into fewer meshes or scene objects; reduce the number of draw calls and resource loading times, improve rendering performance and loading speed.

[0023] S3: Asynchronous resource loading; implement the mechanism of asynchronous resource loading in the script, use asynchronous loading functions or multi-threaded processing to asynchronously load scene resources.

[0024] S4: Optimize the rendering queue; optimize the order of the rendering queue through scripts; thereby improving rendering efficiency. According to the characteristics and dependencies of the rendering tasks, adjust the order of scene elements in the rendering queue, optimize the order of drawing calls and resource loading, and reduce time consumption.

[0025] S5: Use precompiled lighting; before building the lighting, use a lower quality to speed up the build process, then rebuild the lighting after the scene is ready to reduce the time to open the software.

[0026] S6: Use caching and preloading. According to project requirements, use caching and preloading mechanisms to load scene data and resources in advance. When rendering elements that need to use these resources, the resources have already been loaded into the memory, reducing the loading time when opening the software.

[0027] S7: Memory management and resource release: Implement reasonable memory management and resource release mechanism in the script. Use texture compression, atlas merging, dynamic loading and unloading technology to release unnecessary resources in time after rendering is completed, avoid memory leaks and resource waste, and improve overall rendering efficiency.

[0028] In this embodiment, in step S1, the following steps are specifically included: S11: determine the loading priority of resources; divide the resources into different levels according to the importance and frequency of use of the resources; S12: determine the dependency of resources; analyze the dependency between each resource to determine which resources are necessary and which resources are optional; S13: divide the resource cascade; divide the resources into multiple cascade groups according to the priority and dependency of the resources; preferably, the cascade groups can be divided according to the category, type, size or other specific standards of the resources; S14: load resources in batches; load the resources in batches according to the division of cascade groups; when the software is opened for the first time, only the resources in the first batch of cascade groups are loaded, and other cascade groups are not loaded; when the user needs to use specific resources, the resources of other cascade groups are gradually loaded according to the dependency; S15: dynamically load according to demand; dynamically load the required resources according to the user's operations and needs.

[0029] In this embodiment, in step S2, the following steps are specifically included: S21: analyzing the commonalities between models; first, analyzing the commonalities between static models and finding parts with similar attributes; S22: merging meshes; according to the analysis results of S21, mesh merging operations are performed on models with commonalities through the game engine; mesh merging is merging multiple meshes into a single mesh, which can reduce the number of drawing calls; S23: optimizing the merged mesh; the merged mesh may increase the number of vertices, the number of faces, and the texture UV data; in order to reduce the loading and rendering costs of resources, mesh optimization is performed by deleting duplicate vertices and merging overlapping vertices; S24: creating LOD (Level of Detail); in order to improve rendering performance, multiple LOD levels are created for the merged mesh; each LOD level corresponds to a different level of detail, and an appropriate LOD level is selected for rendering according to the distance and the position of the observer; S25: loading and rendering the merged resources; finally, loading the merged resources into the game engine or renderer and rendering them; since there are fewer merged resources, the number of loading times and the number of drawing calls will also be reduced accordingly, thereby improving rendering performance and loading speed.

[0030] In this embodiment, in step S3, the resource path is passed as a parameter to the asynchronous loading function, and a callback function is specified to process the loaded resource after the loading is completed. Specifically, the following steps are included: S31: Call the asynchronous loading function in the script; Use the provided asynchronous loading function, such as AsyncLoadAsset, to implement asynchronous loading of resources in the script; S32: After the asynchronous loading is completed, the callback function will be triggered; In the callback function, perform resource initialization, setting, and binding operations to ensure that the resources are used correctly; S33: Monitor the loading progress: Monitor the loading progress through the method of obtaining the loading progress provided by the asynchronous loading function, display the loading progress bar or other loading prompts, and provide a better user experience.

[0031] In this embodiment, in step S4, the following steps are specifically included: S41: Analyze the dependency of scene elements: First, analyze the dependency between scene elements to determine which elements have dependencies and which elements can be rendered independently; the dependency is the parent-child relationship between objects in the scene, or the material association between objects or the texture association between objects; S42: Adjust the rendering order in the script: In the script, you can use the rendering queue related methods or functions to adjust the rendering order of scene elements; by changing the rendering order, ensure that objects that do not depend on other elements are rendered first, and then render the elements that depend on these objects.

[0032] In summary, the present invention provides a method for optimizing UE rendering time based on cloud rendering, which achieves the effect of shortening the time it takes for UE to open software and improving rendering efficiency by splitting cascade resources, merging static models, asynchronously loading resources, optimizing rendering queues, using precompiled lighting, and utilizing a combination of caching and preloading steps. The present invention has the following technical effects: 1. It can significantly shorten the time it takes for UE to open software, and improve the efficiency of real-time cloud rendering and user experience. 2. The loading time of cloud rendering tasks is reduced, and the user waiting time is reduced. 3. Rendering and optimization in the cloud reduces the requirements for local devices and provides a more flexible and efficient rendering solution.

[0033] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for optimizing UE rendering time based on cloud rendering, characterized in that: The following steps are involved: S1: Divide scene resources into multiple cascades and load them only when needed; S2: Merge static models into fewer meshes or scene objects; S3: Use asynchronous loading functions or multi-threaded processing to asynchronously load scene resources; S4: Adjust the order of scene elements in the rendering queue according to the characteristics and dependencies of the rendering tasks, and optimize the order of drawing calls and resource loading; S5: Before building the lighting, use lower quality to speed up the process, then rebuild the lighting once the scene is ready. S6: Use the cache and preloading mechanism to load scene data and resources in advance. When rendering to the elements that need to use these resources, the resources have already been loaded in the memory; S7: Use texture compression, atlas merging, dynamic loading and unloading techniques to release no longer needed resources in a timely manner after rendering is completed.

2. A method for optimizing UE rendering duration based on cloud rendering according to claim 1, characterized in that: In step S1, the following steps are specifically included: S11: Divide resources into different levels according to their importance and frequency of use; S12: Analyze the dependencies between various resources to determine which resources are necessary and which resources are optional; S13: Divide the resources into multiple cascade groups according to the priorities and dependencies of the resources; S14: Load resources in batches according to the division of cascade groups; when the software is first opened, only the resources in the first batch of cascade groups are loaded, and other cascade groups are not loaded; when the user needs to use specific resources, the resources of other cascade groups are gradually loaded according to the dependency relationship; S15: Dynamically load required resources based on user operations and needs.

3. A method for optimizing UE rendering duration based on cloud rendering according to claim 2, characterized in that: In step S13, the cascade groups are divided according to resource categories, types, sizes or other specific standards.

4. The method for optimizing UE rendering duration based on cloud rendering according to claim 1, characterized in that: In step S2, the following steps are specifically included: S21: Analyze the commonalities between static models and find parts with similar properties; S22: Based on the analysis results of S21, mesh merging operations are performed on models with common features through the game engine; mesh merging is merging multiple meshes into a single mesh, which can reduce the number of drawing calls; S23: To reduce resource loading and rendering costs, mesh optimization is performed by deleting duplicate vertices and merging overlapping vertices; S24: Create multiple LOD levels for the merged mesh; each LOD level corresponds to a different level of detail, and the appropriate LOD level is selected for rendering based on the distance and the position of the observer; S25: Load the merged resources into a game engine or a renderer and render them.

5. The method for optimizing UE rendering duration based on cloud rendering according to claim 1, characterized in that: In step S3, the following steps are specifically included: S31: Use the provided asynchronous loading function to implement asynchronous loading of resources in the script; S32: After the asynchronous loading is completed, the callback function will be triggered; in the callback function, the resource initialization, setting, and binding operations are performed to ensure that the resource is used correctly; S33: The method for obtaining the loading progress provided by the asynchronous loading function is used to monitor the loading progress, display a loading progress bar or other loading prompts, and provide a better user experience.

6. The method for optimizing UE rendering duration based on cloud rendering according to claim 1, characterized in that: In step S4, the following steps are specifically included: S41: Analyze the dependencies between scene elements to determine which elements have dependencies and which elements can be rendered independently; S42: Use rendering queue related methods or functions to adjust the rendering order of scene elements; by changing the rendering order, ensure that objects that do not depend on other elements are rendered first, and then render the elements that depend on these objects.

7. The method for optimizing UE rendering duration based on cloud rendering according to claim 6, characterized in that: In step S41, the dependency relationship is a parent-child relationship between objects in the scene, or a material association between objects or a texture association between objects.

8. The method for optimizing UE rendering duration based on cloud rendering according to claim 1, characterized in that: The asynchronous loading function is AsyncLoadAsset.

Citation Information

Cited By

  • 3D scene loading optimization method and device based on WeChat applet and medium

    CN121411839A