Delay time detection method and system for virtual reality equipment, equipment and medium

By recording the timestamp information of the virtual reality device during the virtual reality environment generation process, the rendering, transmission and display delays are automatically calculated, solving the problem of low detection accuracy of the virtual reality device and achieving high-precision delay in various display scenarios. Time detection and user experience optimization.

CN118540522APending Publication Date: 2024-08-23GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410705693.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The delay time detection of existing virtual reality equipment mainly relies on manual testing, which is complex and has low accuracy. It is difficult to automatically detect the delay time in various display scenarios.

Method used

By determining multiple display scenes of virtual reality devices, obtaining image sequences, recording the timestamp information of rendering, transmission and display operations during the virtual reality environment generation process, calculating rendering, transmission and display delay information, and then automatically detecting virtual reality devices Delay time in each display scenario.

Benefits of technology

It realizes automatic detection of delay time of virtual reality equipment in various display scenarios, improves detection accuracy, reduces manual participation, and can adjust the refresh frequency of the display device according to the delay time to improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540522A
    Figure CN118540522A
Patent Text Reader

Abstract

The invention discloses a delay time detection method and system for virtual reality equipment, the equipment and a medium, and belongs to the technical field of virtual reality technologies. The delay time detection method for the virtual reality equipment comprises the following steps: determining a plurality of display scenes of the virtual reality equipment, and obtaining an image sequence corresponding to each display scene; controlling the virtual reality equipment to generate a virtual reality environment corresponding to the image sequence, and recording timestamp information corresponding to a preset operation in a virtual reality environment generation process; calculating delay information of the image sequence according to the timestamp information, and determining delay time of the virtual reality equipment in each display scene according to the delay information; wherein the delay information comprises rendering delay information, transmission delay information and display delay information. According to the invention, the delay time of the virtual reality equipment in various display scenes can be automatically detected, and the detection precision of the delay time is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual reality technology, and in particular to a delay time detection method, system, device and medium for a virtual reality device. Background Art

[0002] Virtual reality (VR) is a computer simulation technology that can create and experience a virtual world. The simulated environment generated by virtual reality technology can integrate multi-source information and immerse users in the environment.

[0003] Virtual reality equipment such as virtual reality helmets and virtual reality glasses can provide users with an immersive audio-visual experience, but the delay time of virtual reality equipment will affect the user experience. For example, when the delay time is greater than 20ms, users will feel dizzy. Therefore, testing the delay time of virtual reality equipment is an essential test item before virtual reality equipment leaves the factory. However, the current testing method for virtual reality equipment is mainly through manual testing, which is relatively complicated and has low accuracy.

[0004] Therefore, how to automatically detect the delay time of virtual reality devices in various display scenarios and improve the detection accuracy of the delay time is a technical problem that technical personnel in this field currently need to solve. Summary of the invention

[0005] The purpose of this application is to provide a delay time detection method, system, device and medium for a virtual reality device, which can automatically detect the delay time of the virtual reality device in various display scenarios and improve the detection accuracy of the delay time.

[0006] In order to solve the above technical problems, the present application provides a delay time detection method for a virtual reality device. The delay time detection method for a virtual reality device:

[0007] Determine multiple display scenes of the virtual reality device, and obtain an image sequence corresponding to each of the display scenes; wherein each of the image sequences includes at least one scene image;

[0008] Controlling the virtual reality device to generate a virtual reality environment corresponding to the image sequence, and recording timestamp information corresponding to preset operations during the generation of the virtual reality environment; wherein the preset operations include rendering operations, transmission operations, and display operations;

[0009] The delay information of the image sequence is calculated according to the timestamp information, and the delay time of the virtual reality device in each display scene is determined according to the delay information; wherein the delay information includes rendering delay information, transmission delay information and display delay information.

[0010] Optionally, the timestamp information corresponding to the preset operation during the generation of the virtual reality environment is recorded, including:

[0011] Recording first timestamp information corresponding to the rendering operation during the generation of the virtual reality environment; wherein the first timestamp information includes the start time and end time of the rendering operation being executed on each of the scene images;

[0012] Recording second timestamp information corresponding to the transmission operation during the generation of the virtual reality environment; wherein the second timestamp information includes the start time and the end time of the transmission operation being executed on each of the scene images, and the transmission operation is used to transmit the result of the rendering operation from the rendering device to the display device;

[0013] Record the third timestamp information corresponding to the display operation during the generation of the virtual reality environment; wherein the third timestamp information includes the start time and the end time of the display operation performed on each of the scene images, and the display operation is used to display the result of the rendering operation received by the display device.

[0014] Optionally, calculating the delay information of the image sequence according to the timestamp information includes:

[0015] Calculating the rendering delay information of the image sequence according to the first timestamp information; wherein the rendering delay information includes a rendering delay time of each of the scene images in the image sequence;

[0016] Calculating the transmission delay information of the image sequence according to the second timestamp information; wherein the transmission delay information includes the transmission delay time of each of the scene images in the image sequence;

[0017] The display delay information of the image sequence is calculated according to the third timestamp information; wherein the display delay information includes a display delay time of each of the scene images in the image sequence.

[0018] Optionally, determining the delay time of the virtual reality device in each display scene according to the delay information includes:

[0019] Calculate the average rendering delay time of all scene images in the image sequence according to the rendering delay information;

[0020] Calculating the average transmission delay time of all scene images in the image sequence according to the transmission delay information;

[0021] Calculating an average display delay time of all scene images in the image sequence according to the display delay information;

[0022] The average rendering delay time, the average transmission delay time, and the average display delay time corresponding to the same image sequence are added together to obtain the overall average delay time of the virtual reality device in each display scenario.

[0023] Optionally, after calculating the delay information of the image sequence according to the timestamp information, the method further includes:

[0024] Calculating the single-image delay time of each scene image according to the rendering delay information, the transmission delay information and the display delay information; wherein the single-image delay time is the sum of the rendering delay time, the transmission delay time and the display delay time of the single scene image;

[0025] Calculating the delay fluctuation according to the single image delay time corresponding to the same image sequence;

[0026] The device performance of the virtual reality device in each of the display scenarios is determined according to the delay fluctuation.

[0027] Optionally, after determining the delay time of the virtual reality device in each display scene according to the delay information, the method further includes:

[0028] Sorting the delay time of the virtual reality device in each display scene;

[0029] Setting N display scenes with the shortest delay times as high-performance scenes of the virtual reality device;

[0030] Accordingly, it also includes:

[0031] Determining a current display scene of the virtual reality device;

[0032] Determining whether the current display scene is the high-performance scene;

[0033] If so, increasing the refresh rate of the display device;

[0034] If not, the refresh rate of the display device is reduced.

[0035] Optionally, before determining the delay time of the virtual reality device in each display scene according to the delay information, the method further includes:

[0036] The delay times of the sensors and the control system are added to the delay information.

[0037] The present application also provides a delay time detection system for a virtual reality device, the system comprising:

[0038] A scene determination module, used to determine multiple display scenes of the virtual reality device, and obtain an image sequence corresponding to each of the display scenes; wherein each of the image sequences includes at least one scene image;

[0039] A timestamp recording module, used to control the virtual reality device to generate a virtual reality environment corresponding to the image sequence, and record timestamp information corresponding to preset operations during the generation of the virtual reality environment; wherein the preset operations include rendering operations, transmission operations, and display operations;

[0040] A delay detection module is used to calculate the delay information of the image sequence according to the timestamp information, and determine the delay time of the virtual reality device in each display scene according to the delay information; wherein the delay information includes rendering delay information, transmission delay information and display delay information.

[0041] The present application also provides a storage medium on which a computer program is stored. When the computer program is executed, the steps of the delay time detection method of the virtual reality device are implemented.

[0042] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the steps of the delay time detection method of the virtual reality device are implemented.

[0043] The present application provides a method for detecting the delay time of a virtual reality device. In the scheme of the present application, multiple display scenes of the virtual reality device are determined, and an image sequence corresponding to each display scene is obtained so that the virtual reality device generates a corresponding virtual reality environment based on the image sequence. The present application records the timestamp information corresponding to the preset operation during the generation of the virtual reality environment, calculates the delay information of each image sequence in the process of generating the virtual reality environment based on the timestamp information, and then obtains the delay time of the virtual reality device in each of the display scenes. The above-mentioned delay time detection process does not require human participation, and can automatically detect the delay time of the virtual reality device in various display scenes, thereby improving the detection accuracy of the delay time. The present application also provides a delay time detection system, a storage medium and an electronic device for a virtual reality device, which have the above-mentioned beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 A flowchart of a delay time detection method for a virtual reality device provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a method for detecting a delay time of a virtual reality device provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a delay time detection system for a virtual reality device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] See below Figure 1 , Figure 1 This is a flowchart of a delay time detection method for a virtual reality device provided in an embodiment of the present application.

[0050] Specific steps may include:

[0051] S101: Determine multiple display scenes of a virtual reality device, and obtain an image sequence corresponding to each display scene;

[0052] The present embodiment can be applied to a processing chip of a virtual reality device, or to a control device connected to the virtual reality device. The present embodiment can determine multiple display scenes of the virtual reality device, such as a snow scene, a driving scene, a night scene, etc., according to a program or a work log running on the virtual reality device.

[0053] When the virtual reality device generates the above display scene, it will display multiple corresponding images to the user. Therefore, this step can obtain an image sequence corresponding to each display scene, and each image sequence includes at least one scene image, and the scene image is an image that conforms to the above display scene. For example, a snow scene can include a ski resort image, a snow mountain image, and a snowman image. As a feasible implementation, the scene images corresponding to the same image sequence can be continuous images to improve the accuracy and authenticity of the detection.

[0054] S102: Controlling the virtual reality device to generate a virtual reality environment corresponding to the image sequence, and recording timestamp information corresponding to a preset operation during the generation of the virtual reality environment;

[0055] After obtaining the image sequence corresponding to the display scene, the corresponding virtual reality environment generation operation can be performed. The above image sequence includes scene images, specifically image data, so in the process of generating the virtual reality environment, the above image data can be rendered, transmitted and displayed, so that the user can experience the virtual reality environment through the display screen of the virtual reality device.

[0056] In the process of generating a virtual reality environment, the present application may also record the timestamp information of the preset operation performed by the virtual reality device, where the preset operation is an operation with a delay time, such as a rendering operation, a transmission operation, and a display operation. The timestamp information may include the start time and the end time of the preset operation, and the scene image in each image sequence needs to be subjected to the preset operation.

[0057] The rendering operation is an operation of converting image data into a visual image, and the rendering operation can be performed by a rendering device (such as a GPU) of a virtual reality device. The transmission operation is an operation of transmitting the result of the rendering operation (i.e., the visual image) to a display device, and the transmission operation can be performed by the rendering device. The display operation is an operation of displaying the result of the rendering operation, and the display operation can be performed by a display device.

[0058] S103: Calculating delay information of the image sequence according to the timestamp information, and determining a delay time of the virtual reality device in each display scene according to the delay information;

[0059] After obtaining the timestamp information, the delay of executing each preset operation on each scene image can be determined, and the delay information of each image sequence can be obtained by summarizing the above delays. The delay information includes rendering delay information, transmission delay information and display delay information of each scene image.

[0060] Each image sequence corresponds to a display scene. After the delay information of the display sequence is obtained, the delay time of the virtual reality device in each of the display scenes can be calculated according to the delay information. The delay time in the above display scene can be the average delay or maximum delay generated by the virtual reality device generating an image in the display scene.

[0061] This embodiment determines multiple display scenes of the virtual reality device, and also obtains the image sequence corresponding to each display scene, so that the virtual reality device generates a corresponding virtual reality environment based on the image sequence. This embodiment records the timestamp information corresponding to the preset operation during the generation of the virtual reality environment, calculates the delay information of each image sequence during the generation of the virtual reality environment based on the timestamp information, and then obtains the delay time of the virtual reality device in each of the display scenes. The above delay time detection process does not require manual participation, and can automatically detect the delay time of the virtual reality device in various display scenes, thereby improving the detection accuracy of the delay time.

[0062] As for Figure 1 Further introduction to the corresponding embodiment: during the process of generating the virtual reality environment, the embodiment can record the timestamp information corresponding to the rendering operation, transmission operation and display operation during the process of generating the virtual reality environment. The specific process is as follows:

[0063] Determine whether the rendering device performs a rendering operation; if so, record the first timestamp information corresponding to the rendering operation in the process of generating the virtual reality environment; wherein the first timestamp information includes the start time and the end time of the rendering operation for each of the scene images. The start time of the rendering operation refers to the time when the rendering operation starts to be performed on the scene image, and the end time of the rendering operation refers to the time when the rendering of the scene image is completed.

[0064] Determine whether the rendering device performs a transmission operation; if so, record the second timestamp information corresponding to the transmission operation during the generation of the virtual reality environment; wherein the second timestamp information includes the start time and end time of the transmission operation performed on each of the scene images, and the transmission operation is used to transmit the result of the rendering operation from the rendering device to the display device. The start time of the transmission operation refers to the time when the transmission of the result of the rendering operation begins, and the end time of the transmission operation is the time when the result of the rendering operation is transmitted to the display device.

[0065] Determine whether the display device performs a display operation; record the third timestamp information corresponding to the display operation during the generation of the virtual reality environment; wherein the third timestamp information includes the start time and end time of the display operation for each of the scene images, and the display operation is used to display the result of the rendering operation received by the display device. The start time of the display operation refers to: the time when the display device performs the display operation on the result of the rendering operation, and the end time of the display operation refers to the time when the result of the rendering operation begins to be displayed by the display device.

[0066] Based on obtaining the first timestamp information, the second timestamp information and the third timestamp information of each image in the image sequence, the delay information of the image sequence can be calculated in the following manner:

[0067] The rendering delay information of the image sequence is calculated according to the first timestamp information; wherein the rendering delay information includes the rendering delay time of each of the scene images in the image sequence; that is, the delay time for performing a rendering operation on each scene image in the image sequence can be determined according to the rendering delay information.

[0068] The transmission delay information of the image sequence is calculated according to the second timestamp information; wherein the transmission delay information includes the transmission delay time of each of the scene images in the image sequence; that is, the delay time for performing the transmission operation on each scene image in the image sequence can be determined according to the transmission delay information.

[0069] The display delay information of the image sequence is calculated according to the third timestamp information; wherein the display delay information includes the display delay time of each of the scene images in the image sequence; that is, the delay time for performing a display operation on each scene image in the image sequence can be determined according to the display delay information.

[0070] As for Figure 1 For further introduction to the corresponding embodiment, the delay time of the virtual reality device in each display scene can be determined by taking an average value, and the specific process is as follows:

[0071] The average rendering delay time of all scene images in the image sequence is calculated according to the rendering delay information; the average transmission delay time of all scene images in the image sequence is calculated according to the transmission delay information; the average display delay time of all scene images in the image sequence is calculated according to the display delay information; the average rendering delay time, the average transmission delay time and the average display delay time corresponding to the same image sequence are added together to obtain the overall average delay time of the virtual reality device in each display scene.

[0072] As for Figure 1 For further introduction to the corresponding embodiment, the delay time of the virtual reality device in each display scene can be determined by taking the maximum value, and the specific process is as follows:

[0073] The maximum rendering delay time of all scene images in the image sequence is calculated according to the rendering delay information; the maximum transmission delay time of all scene images in the image sequence is calculated according to the transmission delay information; the maximum display delay time of all scene images in the image sequence is calculated according to the display delay information; the maximum rendering delay time, the maximum transmission delay time and the maximum display delay time corresponding to the same image sequence are added together to obtain the overall maximum delay time of the virtual reality device in each display scene.

[0074] As for Figure 1 For further introduction to the corresponding embodiment, after calculating the delay information of the image sequence according to the timestamp information, the performance of the virtual reality device can also be detected according to the delay information. The specific process is as follows:

[0075] The single-image delay time of each scene image is calculated according to the rendering delay information, the transmission delay information and the display delay information; the delay fluctuation is calculated according to the single-image delay time corresponding to the same image sequence; and the device performance of the virtual reality device in each display scene is determined according to the delay fluctuation.

[0076] The above-mentioned single-image delay time is the sum of the rendering delay time, the transmission delay time and the display delay time of a single scene image. In this embodiment, the variance calculation can be performed on the single-image delay time corresponding to the same image sequence, and the variance calculation result can be used as the delay fluctuation. If the variance calculation result is greater than the preset value, it is determined that the device performance of the virtual reality device in the display scene is unqualified; if the variance calculation result is less than or equal to the preset value, it is determined that the device performance of the virtual reality device in the display scene is qualified. In the above manner, the device performance of the virtual reality device in each of the display scenes can be determined according to the delay time, and then the image performance capability of the virtual reality device in various display scenes can be evaluated.

[0077] As for Figure 1 Further introduction to the corresponding embodiment, after determining the delay time of the virtual reality device in each of the display scenarios according to the delay information, the delay time (overall average delay time or overall maximum delay time) of the virtual reality device in each of the display scenarios can also be sorted, and the N display scenarios with the shortest delay time can be set as high-performance scenarios of the virtual reality device.

[0078] After determining the high-performance scenario of the virtual reality device, during the operation of the virtual reality device, the present embodiment may further determine the current display scenario of the virtual reality device; determine whether the current display scenario is the high-performance scenario; if so, increase the refresh frequency of the display device of the virtual reality device to improve the display effect; if not, reduce the refresh frequency of the display device to improve the display stability.

[0079] As for Figure 1 As a further introduction to the corresponding embodiment, before determining the delay time of the virtual reality device in each display scene according to the delay information, the delay time of the sensor and the control system may also be added to the delay information.

[0080] Specifically, this embodiment can determine whether the scene image currently used to generate the virtual reality environment requires the participation of sensors and control systems. If so, the delay time of the sensor and control system can be added to the delay information to improve the accuracy of detecting the delay time.

[0081] The process described in the above embodiment is explained below through an embodiment in actual application.

[0082] In order to ensure user experience, the delay to the virtual reality device needs to be controlled within 20ms. Therefore, detecting the delay time of the virtual reality device is an indispensable step. However, the existing virtual reality device delay time detection methods are mostly based on software testing or user subjective feelings, and have problems such as low accuracy and complex operation.

[0083] In order to solve the defects in the above-mentioned related technologies, this application provides corresponding solutions. Figure 2 , Figure 2 A flowchart of a method for detecting a delay time of a virtual reality device provided in an embodiment of the present application includes the following steps:

[0084] Step 1: Initialize the virtual reality device and set the detection parameters.

[0085] The detection parameters include image rendering frequency, data transmission rate, etc. These parameters will directly affect the delay time of the virtual reality device. By setting these parameters reasonably, the accuracy and reliability of the detection results can be ensured. Specifically, in this embodiment, the parameters can be set as follows: the image rendering frequency is 90Hz, and the data transmission frequency is 1Gbps.

[0086] Step 2: Start the virtual reality device and display the preset test image sequence.

[0087] The test image sequence includes a series of images with different features to simulate various scenarios that users may encounter in a virtual reality environment. By displaying these test images, the delay time of the virtual reality device in different situations can be comprehensively evaluated. In this step, the test image sequence includes images with different features to simulate various scenarios that may be encountered in a VR environment.

[0088] Step 3: Record the timestamp information of the virtual reality device during the process of displaying the test image sequence.

[0089] The timestamp information includes the time required for image rendering, the start and end time of data transmission, and the time when the image is displayed on the virtual reality device. These timestamp information will be used to calculate the delay time of the virtual reality device.

[0090] Step 4: Calculate the delay time of the virtual reality device based on the recorded timestamp information.

[0091] There are many methods for calculating the delay time, such as average delay time, maximum delay time, etc. Through these calculation methods, the delay time index of the virtual reality device in different situations can be obtained.

[0092] Step 5: Evaluate the performance of the virtual reality device based on the calculated delay time index.

[0093] The evaluation results may include the specific value of the delay time, the distribution of the delay time in different scenarios, etc. These evaluation results will provide strong technical support for the research and development, production and optimization of virtual reality equipment.

[0094] Step 6: Optimize and adjust the virtual reality equipment based on the evaluation results.

[0095] According to the specific value and distribution of the delay time indicator, the hardware configuration, software algorithm or interactive design of the virtual reality device can be optimized in a targeted manner to reduce the delay time and improve the user experience. In the process of optimization and adjustment, this embodiment can optimize the hardware configuration, software algorithm or interactive design of the VR device in a targeted manner according to the specific value and distribution of the delay time indicator.

[0096] In this embodiment, the optimized virtual reality device may be re-tested for delay time to verify the optimization effect.

[0097] By comparing the delay time indicators before and after optimization, the effectiveness of the optimization measures can be evaluated and the performance of virtual reality devices can be further optimized.

[0098] By performing the above operations, the following values ​​can be obtained: (1) rendering time (i.e., rendering delay time); (2) data transmission time (i.e., transmission delay time); (3) display delay (i.e., display delay time); (4) sensor and processing delay (i.e., sensor and control system delay time).

[0099] Rendering time generally refers to the performance of the GPU, including the number of frames per second (FPS) that can be processed. VR devices need to render images quickly to provide a smooth experience. Data transfer time is the time it takes for image data to be transferred from the rendering device to the VR device. This depends on the data transfer rate and protocol. Display latency is the time it takes for an image to be displayed in the VR device, including any inherent latency introduced by screen technology (such as OLED or LCD). Sensor and processing latency is the motion sensors (such as gyroscopes) and control systems in the VR device that may also introduce latency, such as when processing the user's head and hand movements.

[0100] Therefore, the total delay time can be obtained, which is: total delay time = rendering time + data transmission time + display delay + sensor and processing delay (unit: milliseconds). In this embodiment, the operation of calculating the delay time can use the average delay time and the maximum delay time as evaluation indicators.

[0101] This embodiment can accurately calculate the delay time by recording the timestamp information of the virtual reality device during the image rendering, transmission and display process, avoiding errors and interference in traditional testing methods, and adopting an automated testing process. The user only needs to follow the preset steps without complicated settings and adjustments, which reduces the difficulty of operation. By displaying a preset test image sequence, it can simulate various scenarios that the user may encounter in a virtual reality environment, thereby comprehensively evaluating the delay time of the virtual reality device in different situations.

[0102] See also Figure 3 , Figure 3 A structural diagram of a delay time detection system for a virtual reality device provided in an embodiment of the present application, the system may include:

[0103] The scene determination module 301 is used to determine multiple display scenes of the virtual reality device and obtain an image sequence corresponding to each display scene; wherein each image sequence includes at least one scene image;

[0104] A timestamp recording module 302 is used to control the virtual reality device to generate a virtual reality environment corresponding to the image sequence, and record timestamp information corresponding to preset operations during the generation of the virtual reality environment; wherein the preset operations include rendering operations, transmission operations, and display operations;

[0105] The delay detection module 303 is used to calculate the delay information of the image sequence according to the timestamp information, and determine the delay time of the virtual reality device in each display scene according to the delay information; wherein the delay information includes rendering delay information, transmission delay information and display delay information.

[0106] This embodiment determines multiple display scenes of the virtual reality device, and also obtains the image sequence corresponding to each display scene, so that the virtual reality device generates a corresponding virtual reality environment based on the image sequence. This embodiment records the timestamp information corresponding to the preset operation during the generation of the virtual reality environment, calculates the delay information of each image sequence during the generation of the virtual reality environment based on the timestamp information, and then obtains the delay time of the virtual reality device in each of the display scenes. The above delay time detection process does not require manual participation, and can automatically detect the delay time of the virtual reality device in various display scenes, thereby improving the detection accuracy of the delay time.

[0107] Furthermore, the process in which the timestamp recording module 302 records the timestamp information corresponding to the preset operation during the generation of the virtual reality environment includes: recording the first timestamp information corresponding to the rendering operation during the generation of the virtual reality environment; wherein the first timestamp information includes the start time and the end time of the rendering operation being executed on each of the scene images; recording the second timestamp information corresponding to the transmission operation during the generation of the virtual reality environment; wherein the second timestamp information includes the start time and the end time of the transmission operation being executed on each of the scene images, and the transmission operation is used to transmit the result of the rendering operation from the rendering device to the display device; recording the third timestamp information corresponding to the display operation during the generation of the virtual reality environment; wherein the third timestamp information includes the start time and the end time of the display operation being executed on each of the scene images, and the display operation is used to display the result of the rendering operation received by the display device.

[0108] Furthermore, the process of the delay detection module 303 calculating the delay information of the image sequence according to the timestamp information includes: calculating the rendering delay information of the image sequence according to the first timestamp information; wherein the rendering delay information includes the rendering delay time of each of the scene images in the image sequence; calculating the transmission delay information of the image sequence according to the second timestamp information; wherein the transmission delay information includes the transmission delay time of each of the scene images in the image sequence; calculating the display delay information of the image sequence according to the third timestamp information; wherein the display delay information includes the display delay time of each of the scene images in the image sequence.

[0109] Furthermore, the process in which the delay detection module 303 determines the delay time of the virtual reality device in each of the display scenarios according to the delay information includes: calculating the average rendering delay time of all scene images in the image sequence according to the rendering delay information; calculating the average transmission delay time of all scene images in the image sequence according to the transmission delay information; calculating the average display delay time of all scene images in the image sequence according to the display delay information; and adding the average rendering delay time, the average transmission delay time and the average display delay time corresponding to the same image sequence to obtain the overall average delay time of the virtual reality device in each of the display scenarios.

[0110] Furthermore, it also includes:

[0111] A performance detection module is used to calculate the single-image delay time of each scene image according to the rendering delay information, the transmission delay information and the display delay information; wherein the single-image delay time is the sum of the rendering delay time, the transmission delay time and the display delay time of a single scene image; it is also used to calculate the delay fluctuation according to the single-image delay time corresponding to the same image sequence; it is also used to determine the device performance of the virtual reality device in each display scene according to the delay fluctuation.

[0112] Furthermore, it also includes:

[0113] A refresh rate control module, used to sort the delay time of the virtual reality device in each display scene; also used to set the N display scenes with the shortest delay time as the high-performance scenes of the virtual reality device; also used to determine the current display scene of the virtual reality device; and also used to determine whether the current display scene is the high-performance scene; if so, increase the refresh rate of the display device;

[0114] If not, the refresh rate of the display device is reduced.

[0115] Furthermore, it also includes:

[0116] A delay correction module is used to add the delay time of the sensor and the control system to the delay information before determining the delay time of the virtual reality device in each display scene according to the delay information.

[0117] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, which will not be repeated here.

[0118] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0119] The present application also provides an electronic device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.

[0120] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of this application.

[0121] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for detecting delay time of a virtual reality device, characterized in that: include: Determine multiple display scenes of the virtual reality device, and obtain an image sequence corresponding to each of the display scenes; wherein each of the image sequences includes at least one scene image; Controlling the virtual reality device to generate a virtual reality environment corresponding to the image sequence, and recording timestamp information corresponding to preset operations during the generation of the virtual reality environment; wherein the preset operations include rendering operations, transmission operations, and display operations; The delay information of the image sequence is calculated according to the timestamp information, and the delay time of the virtual reality device in each display scene is determined according to the delay information; wherein the delay information includes rendering delay information, transmission delay information and display delay information.

2. The delay time detection method of the virtual reality device according to claim 1, characterized in that: Record the timestamp information corresponding to the preset operations during the generation of the virtual reality environment, including: Recording first timestamp information corresponding to the rendering operation during the generation of the virtual reality environment; wherein the first timestamp information includes the start time and end time of the rendering operation being executed on each of the scene images; Recording second timestamp information corresponding to the transmission operation during the generation of the virtual reality environment; wherein the second timestamp information includes the start time and the end time of the transmission operation being executed on each of the scene images, and the transmission operation is used to transmit the result of the rendering operation from the rendering device to the display device; Record the third timestamp information corresponding to the display operation during the generation of the virtual reality environment; wherein the third timestamp information includes the start time and the end time of the display operation performed on each of the scene images, and the display operation is used to display the result of the rendering operation received by the display device.

3. The delay time detection method of the virtual reality device according to claim 2, characterized in that: Calculating the delay information of the image sequence according to the timestamp information includes: Calculating the rendering delay information of the image sequence according to the first timestamp information; wherein the rendering delay information includes a rendering delay time of each of the scene images in the image sequence; Calculating the transmission delay information of the image sequence according to the second timestamp information; wherein the transmission delay information includes the transmission delay time of each of the scene images in the image sequence; The display delay information of the image sequence is calculated according to the third timestamp information; wherein the display delay information includes a display delay time of each of the scene images in the image sequence.

4. The method for detecting the delay time of a virtual reality device according to claim 3, characterized in that: Determining the delay time of the virtual reality device in each display scene according to the delay information includes: Calculate the average rendering delay time of all scene images in the image sequence according to the rendering delay information; Calculating the average transmission delay time of all scene images in the image sequence according to the transmission delay information; Calculating an average display delay time of all scene images in the image sequence according to the display delay information; The average rendering delay time, the average transmission delay time, and the average display delay time corresponding to the same image sequence are added together to obtain the overall average delay time of the virtual reality device in each display scenario.

5. The method for detecting the delay time of a virtual reality device according to claim 3, characterized in that: After calculating the delay information of the image sequence according to the timestamp information, the method further includes: Calculating the single-image delay time of each scene image according to the rendering delay information, the transmission delay information and the display delay information; wherein the single-image delay time is the sum of the rendering delay time, the transmission delay time and the display delay time of the single scene image; Calculating the delay fluctuation according to the single image delay time corresponding to the same image sequence; The device performance of the virtual reality device in each of the display scenarios is determined according to the delay fluctuation.

6. The delay time detection method of the virtual reality device according to claim 1, characterized in that: After determining the delay time of the virtual reality device in each display scene according to the delay information, the method further includes: Sorting the delay time of the virtual reality device in each display scene; Setting N display scenes with the shortest delay times as high-performance scenes of the virtual reality device; Accordingly, it also includes: Determining a current display scene of the virtual reality device; Determining whether the current display scene is the high-performance scene; If so, increasing the refresh rate of the display device; If not, the refresh rate of the display device is reduced.

7. The method for detecting the delay time of a virtual reality device according to claim 1, characterized in that: Before determining the delay time of the virtual reality device in each display scene according to the delay information, the method further includes: The delay times of the sensors and the control system are added to the delay information.

8. A delay time detection system for a virtual reality device, characterized in that: include: A scene determination module, used to determine multiple display scenes of the virtual reality device, and obtain an image sequence corresponding to each of the display scenes; wherein each of the image sequences includes at least one scene image; A timestamp recording module, used to control the virtual reality device to generate a virtual reality environment corresponding to the image sequence, and record timestamp information corresponding to preset operations during the generation of the virtual reality environment; wherein the preset operations include rendering operations, transmission operations, and display operations; A delay detection module is used to calculate the delay information of the image sequence according to the timestamp information, and determine the delay time of the virtual reality device in each display scene according to the delay information; wherein the delay information includes rendering delay information, transmission delay information and display delay information.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the delay time detection method of the virtual reality device as claimed in any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the delay time detection method of the virtual reality device as claimed in any one of claims 1 to 7 are implemented.