CN109782912B - Method, apparatus, medium, and electronic device for measuring device delay - Google Patents

Method, apparatus, medium, and electronic device for measuring device delay Download PDF

Info

Publication number
CN109782912B
CN109782912B CN201910005061.XA CN201910005061A CN109782912B CN 109782912 B CN109782912 B CN 109782912B CN 201910005061 A CN201910005061 A CN 201910005061A CN 109782912 B CN109782912 B CN 109782912B
Authority
CN
China
Prior art keywords
time
measuring
control unit
attitude control
display unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910005061.XA
Other languages
Chinese (zh)
Other versions
CN109782912A (en
Inventor
孙玉坤
王雪丰
李治富
苗京花
李文宇
赵斌
范清文
李茜
索健文
彭金豹
王亚坤
雷雨
楚明磊
张硕
何惠东
张�浩
陈丽莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Beijing BOE Optoelectronics Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing BOE Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd, Beijing BOE Optoelectronics Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201910005061.XA priority Critical patent/CN109782912B/en
Publication of CN109782912A publication Critical patent/CN109782912A/en
Application granted granted Critical
Publication of CN109782912B publication Critical patent/CN109782912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for measuring device latency. The device comprises a sensor, an attitude control unit and a rendering display unit, and the method for measuring the time delay of the device comprises the following steps: measuring a first transmission delay time between the sensor and the attitude control unit; measuring a data image matching time between the attitude control unit and the rendering display unit; and obtaining the delay time of the equipment according to the first transmission delay time and the data image matching time. The method and the device can improve the accuracy of the measurement of the delay time of the equipment.

Description

Method, apparatus, medium, and electronic device for measuring device delay
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for measuring a device delay.
Background
With the rapid development of Virtual Reality (VR) technology, virtual Reality devices (abbreviated as VR devices) have gradually advanced into people's daily life, and the application range is more and more extensive.
However, there are some problems that are difficult to solve in the current VR devices. The more serious is VR delay, which means that after a user of the VR device makes an action, the VR device displays a time gap between corresponding pictures. If the delay is too large, the user can obviously experience the delay, so that the user is not immersed well, and reactions such as dizziness, vomiting and the like of the user can be caused. Due to the importance of delay, delay is an important measure for a VR device.
In the related art, technologies such as TimeWrap are often used for VR devices to reduce the feeling caused by delay and improve user experience. However, few techniques are available on the market to directly measure VR device delay.
It is noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure and therefore may include information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a method for measuring a device delay, a block chain-based price management apparatus, a storage medium, and an electronic device. And then the accuracy of the time delay of the measuring equipment can be improved.
According to a first aspect of the present disclosure, there is provided a method for measuring a latency of a device, the device comprising a sensor, an attitude control unit and a rendering display unit, the method comprising: measuring a first transmission delay time between the sensor and the attitude control unit; measuring a data image matching time between the attitude control unit and the rendering display unit; and obtaining the delay time of the equipment according to the first transmission delay time and the data image matching time.
In an exemplary embodiment of the present disclosure, the apparatus is fixed to a first turntable, a measurement circuit is built between the first turntable and a second turntable, and the attitude control unit includes an angular velocity detection unit therein; wherein measuring a first transmission delay time between the sensor and the attitude control unit comprises: measuring a first current signal of the measuring circuit and a second current signal of the angular velocity detecting unit when the first rotary table enters a rotating state from a static state; and obtaining the first transmission delay time according to the first current signal and the second current signal.
In one exemplary embodiment of the present disclosure, measuring a data image matching time between the posture control unit and the rendering display unit includes: measuring a second transmission delay time between the attitude control unit and the rendering display unit; measuring uploading display time between the attitude control unit and the rendering display unit; and acquiring the data image matching time according to the second transmission delay time and the uploading display time.
In an exemplary embodiment of the present disclosure, measuring a second transmission delay time between the attitude control unit and the rendering display unit includes: sending the first local time of the rendering display unit to the attitude control unit; setting a local time of the attitude control unit according to the first local time; sending the second local time of the attitude control unit to the rendering display unit; when the rendering display unit receives the second local time, acquiring a third local time of the rendering display unit; and obtaining the second transmission delay time according to the second local time and the third local time.
In an exemplary embodiment of the present disclosure, measuring an upload display time between the attitude control unit and the rendering display unit includes: sending a data packet to the rendering display unit through the attitude control unit, wherein the data packet comprises data to be displayed and sending local time of the attitude control unit; rendering and displaying the data to be displayed through the rendering display unit, and obtaining display time; and acquiring the uploading display time according to the sending local time and the display time.
In an exemplary embodiment of the present disclosure, rendering and displaying the data to be displayed by the rendering display unit includes: acquiring texture coordinates of the data to be displayed in a pre-stored texture map; and performing texture mapping according to the obtained texture coordinates to obtain an image corresponding to the data to be displayed.
In an exemplary embodiment of the present disclosure, the device is a virtual reality device.
According to a second aspect of the present disclosure, there is provided an apparatus for measuring a time delay of a device including a sensor, an attitude control unit, and a rendering display unit, the apparatus comprising: a delay time measurement module configured to measure a first transmission delay time between the sensor and the attitude control unit; a matching time measuring module configured to measure a data image matching time between the posture control unit and the rendering display unit; and the device delay obtaining module is configured to obtain the delay time of the device according to the first transmission delay time and the data image matching time.
According to a third aspect of the present disclosure, there is provided a computer readable medium, on which a computer program is stored, which program, when executed by a processor, implements the method for measuring a delay of a device according to any of the embodiments described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a storage device configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for measuring a latency of an apparatus of any of the embodiments.
According to the method for measuring the delay time of the equipment, the first transmission delay time between the sensor of the equipment and the attitude control unit of the equipment and the data image matching time between the attitude control unit and the rendering display unit of the equipment are measured, so that the delay time of the equipment can be obtained according to the first transmission delay time and the data image matching time, and the measurement accuracy of the delay time of the equipment is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 schematically illustrates a schematic diagram of a method for measuring device latency in an exemplary embodiment of the disclosure;
fig. 2 schematically illustrates a structure diagram for measuring a first propagation delay time in an exemplary embodiment of the disclosure;
FIG. 3 is a diagram illustrating a processing procedure of step S110 shown in FIG. 1 in one embodiment;
fig. 4 schematically illustrates a diagram for measuring a first propagation delay time in an exemplary embodiment of the disclosure.
FIG. 5 is a diagram illustrating a processing procedure of step S120 shown in FIG. 1 in one embodiment;
FIG. 6 is a diagram illustrating a processing procedure of step S121 shown in FIG. 5 in one embodiment;
FIG. 7 is a diagram illustrating a processing procedure of step S122 shown in FIG. 5 in one embodiment;
FIG. 8 schematically illustrates a schematic diagram of data image matching in an exemplary embodiment of the present disclosure;
FIG. 9 schematically illustrates a component diagram of an apparatus for measuring device latency in an exemplary embodiment of the disclosure;
FIG. 10 schematically illustrates another schematic diagram of an apparatus for measuring device latency in an exemplary embodiment of the disclosure;
fig. 11 schematically illustrates a program product of a method for measuring device delay in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 schematically illustrates a schematic diagram of a method for measuring device delay in an exemplary embodiment of the disclosure. The apparatus may include a sensor, a posture control unit, a rendering display unit, and the like.
In the embodiment of the present disclosure, the device may be a virtual reality device, i.e., a VR device. For example, the VR device may include a VR headset on which a display screen for displaying images may be further included. The sensors may include inertial sensors mounted on the VR device for detecting head turning motion of a user wearing a VR headset, such as acceleration sensors, gyroscopes, and geomagnetic sensors, which may be used to capture head movements, particularly rotations. When using the VR device, the physical information of the user in the virtual world is mainly the orientation and physical position of the head. The attitude control Unit may employ an MCU (micro controller Unit), but the present disclosure is not limited thereto.
In the following embodiments, the VR device is taken as an example for illustration, but the disclosure is not limited thereto.
As shown in fig. 1, a method for measuring a device delay provided by an embodiment of the present disclosure may include the following steps.
In step S110, a first transmission delay time between the sensor and the attitude control unit is measured.
In step S120, a data image matching time between the attitude control unit and the rendering display unit is measured.
In step S130, the delay time of the device is obtained according to the first transmission delay time and the data image matching time.
In this embodiment of the present disclosure, when the device is a VR device, the workflow of the VR device is as follows: the method comprises the steps that user posture data are collected through a sensor, then the collected user posture data are transmitted to a posture control unit, namely an MCU, the MCU determines data to be rendered and displayed according to the user posture data, the data to be rendered and displayed are uploaded to a rendering display unit on the upper layer, the rendering display unit renders after receiving the data to be rendered and displayed, and displays on a display screen of VR equipment after rendering is completed, therefore, the delay time of the VR equipment can be defined as the difference between the time from the sensor to collect the user posture data to the time when the last image is displayed, and the difference comprises the sum of the first transmission delay time from the sensor to transmit the user posture data to the MCU and the matching time of data images from the MCU to the rendering display unit to render and display.
According to the method for measuring the delay of the equipment, the first transmission delay time between the sensor of the equipment and the attitude control unit of the equipment and the data image matching time between the attitude control unit and the rendering display unit of the equipment are measured, so that the delay time of the equipment can be obtained according to the first transmission delay time and the data image matching time, the measurement accuracy of the delay time of the equipment is improved, the performance of the equipment such as VR equipment can be better evaluated, and further corresponding optimization processing can be carried out.
Fig. 2 schematically illustrates a structure diagram for measuring the first propagation delay time in an exemplary embodiment of the disclosure. The structure shown in fig. 2 may be used to measure a time difference between a time when the posture of the VR device changes and a time when the posture data collected by the sensor is transmitted to the MCU, that is, to measure the first transmission delay time.
As shown in fig. 2, the first turntable 210 and the second turntable 220 can freely rotate around the central shaft 230, a measuring circuit 240 is built between the first turntable 210 and the second turntable 220, when the first turntable 210 is in a static state, the measuring circuit 240 is respectively electrically connected with the first turntable 210 and the second turntable 220, and at this time, the first current signal i1 in a high level state can be detected through a current detecting unit 242 in the measuring circuit 240. Wherein the measurement circuit 240 may further comprise a power source 241. At the time when the first turntable 210 transitions from the stationary state to the rotating state (assumed as T0), the measurement circuit 240 may disconnect from the first turntable 210, thereby causing the first current signal i1 to transition from a high level to a low level (e.g., 0A).
With continued reference to fig. 2, the VR device 250 is fixed on the first turntable 210, and an angular velocity detection unit is added to the posture control unit of the VR device 250. Assuming that the first turntable 210 is in a static state at the beginning, and the angular velocity of the VR device 250 is 0, the angular velocity detecting unit sends the second current signal i2 to the outside as a low level signal (assumed to be 0A). At a time T0 when the first rotating platform 210 is changed from the stationary state to the rotating state, since the gesture data collected by the sensor of the VR device is transmitted to the gesture control unit with a delay, after a time delay is assumed to be T2 after the time T0 starts, the second current signal i2 externally sent by the angular velocity detection unit is changed to a high level signal at a time T1, where T1= T0+ T2.
In the embodiment of the present disclosure, the angular velocity of the VR device is detected by the angular velocity detection unit, and the VR device is simulated to enter a rotation state from a stationary state by the rotation of the first turntable, where theoretically the first current signal for measuring whether the first turntable is disconnected from the measurement circuit is real-time, that is, the first turntable starts to rotate, the measurement circuit is immediately disconnected from the measurement circuit, and the first current signal immediately transitions from a high level to a low level.
Fig. 3 is a schematic diagram illustrating a processing procedure of step S110 shown in fig. 1 in an embodiment.
As shown in fig. 3, the step S110 may further include the following steps.
In step S111, a first current signal i1 of the measurement circuit and a second current signal i2 of the angular velocity detection unit are measured when the first turntable enters a rotating state from a stationary state.
In step S112, the first transmission delay time is obtained according to the first current signal and the second current signal.
In the embodiment of the present disclosure, after initially setting up the test device according to the schematic structural diagram shown in fig. 2, the following specific test steps may include:
in a first step, the first turntable 210 is rotated (which may be manual rotation or any other physical action), and the measurement circuit 240 is disconnected from the first turntable 210, so that the first current signal i1 is changed from a high level to a low level;
a second step of checking the current waveform of the first current signal i1 of the measurement circuit 240 with an oscilloscope while the first turntable 210 rotates;
thirdly, when the first turntable 210 rotates, the angular velocity of the VR device gradually increases from 0, the angular velocity detection unit detects that the angular velocity increases, the angular velocity detection unit sends a second current signal i2 outwards, the oscilloscope detects the current waveform of the second current signal i2, and the time difference from the time when the posture of the VR device starts to change to the time when the posture control unit receives the posture data can be obtained as T2 according to the waveform comparison between i1 and i2.
Fig. 4 schematically illustrates a diagram for measuring a first transmission delay time in an exemplary embodiment of the disclosure. Measuring transmission delay from attitude sensing data to MCU by oscilloscope
As shown in fig. 4, the first current signal i1 changes from high level to low level at time T0, and the second current signal i2 changes from low level to high level at time T1. T2= T1-T0, i.e. the first transmission delay time.
Fig. 5 is a schematic diagram illustrating a processing procedure of step S120 shown in fig. 1 in an embodiment.
As shown in fig. 5, the step S120 may further include the following steps.
In step S121, a second transfer delay time between the attitude control unit and the rendering display unit is measured.
When the device is a VR device, this step is to measure the data transmission delay between the MCU and the rendering display unit on the upper layer, i.e. the second transmission delay time.
In step S122, an upload display time between the attitude control unit and the rendering display unit is measured.
In step S123, the data image matching time is obtained according to the second transmission delay time and the upload display time.
Fig. 6 shows a schematic processing procedure of step S121 shown in fig. 5 in an embodiment.
As shown in fig. 6, the step S121 may further include the following steps.
In step S1211, the first local time t1 of the rendering display unit is transmitted to the attitude control unit.
In step S1212, a local time of the attitude control unit is set according to the first local time t 1.
Here, since there is also a data transmission delay assumed to be Δ t between the rendering display unit and the attitude control unit, when the first local time t1 of the rendering display unit is set as the local time of the attitude control unit, the local time of the rendering display unit has actually become t1+ Δ t at this time, that is, the local times of the rendering display unit and the attitude control unit are not synchronized, there is a time difference Δ t therebetween.
In step S1213, the second local time of the attitude control unit is transmitted to the rendering display unit.
Then, a second local time t2 of the gesture control unit is obtained, assuming that t2= t1+ t ', that is, the second local time of the gesture control unit is read after the time t ' elapses, and the second local time t2 is sent to the rendering display unit, where the local time of the rendering display unit is already t1+ Δ t + t '.
In step S1214, when the rendering display unit receives the second local time, a third local time of the rendering display unit is acquired.
When the rendering display unit receives the second local time t2 of the attitude control unit, also due to the data transmission delay Δ t existing between the rendering display unit and the attitude control unit, the third local time t3 of the rendering display unit at this time is t3= t1+2 Δ t + t'.
In step S1215, the second transmission delay time is obtained according to the second local time and the third local time.
According to the second local time t2 and the third local time t3 obtained above, the difference between the two local times of the data transmission delay Δ t is 2 times, and therefore, the calculation formula of the second transmission delay Δ t may be:
Figure BDA0001935108650000091
in the embodiment of the present disclosure, since the attitude control unit and the rendering display unit both have their own independent clock systems, Δ t needs to be obtained in advance.
Fig. 7 is a schematic diagram illustrating a processing procedure of step S122 illustrated in fig. 5 in an embodiment.
As shown in fig. 7, the step S122 may further include the following steps.
In step S1221, a data packet is sent to the rendering display unit through the gesture control unit, where the data packet includes data to be displayed and a sending local time ta of the gesture control unit.
In step S1222, the data to be displayed is rendered and displayed by the rendering and displaying unit, and a display time tb is obtained.
In an exemplary embodiment, rendering and displaying the data to be displayed by the rendering and displaying unit may include: acquiring texture coordinates of the data to be displayed in a prestored texture map; and performing texture mapping according to the obtained texture coordinates to obtain an image corresponding to the data to be displayed.
In step S1223, the upload display time is obtained according to the transmission local time and the display time.
In the embodiment of the disclosure, the time for the gesture control unit to upload the data to be displayed to the rendering display unit to complete image display is measured.
Firstly, controlling the attitude control unit to send data to be displayed, and acquiring sending local time ta of the attitude control unit as a data packet to be sent together when the attitude control unit sends the data to be displayed; and the rendering display unit receives and processes the data packet sent by the attitude control unit, stores the sending local time ta of the attitude control unit in the data packet, and renders a corresponding image according to the data to be displayed. At this time, the rendering and displaying unit can control the high-speed camera to continuously shoot and record the time tb for acquiring each frame of image. The upload display time may be calculated as (tb-ta).
It should be noted that tb and ta both correspond to the same data to be displayed, for example, if the data to be displayed that is sent first is "0", ta is the sending local time when the attitude control unit sends the data "0", and tb is the display time when the rendering and display unit displays the digital image "0". For another example, if the transmitted data to be displayed is "1", ta is the transmission local time when the attitude control unit transmits the data of "1", and tb is the display time when the rendering display unit displays the digital image of "1". Others may be analogized.
Fig. 8 schematically illustrates a schematic diagram of data image matching in an exemplary embodiment of the present disclosure.
As shown in fig. 8, for example, the pose control unit is configured to upload data to be displayed 0,1,2,3,4,5,6,7,8,9 (for illustration purposes only, the present disclosure is not limited thereto), the rendering display unit obtains and then parses a data packet, and obtains information in the pose control unit, that is, uploaded numbers 0,1,2,3,4,5,6,7,8,9, in the rendering display unit, a number texture of 0 to 9 may be preset, as shown in fig. 8, each number has a certain texture coordinate in the drawing, and the texture coordinate of number 1 is the coordinate of four points, that is, a, B, C, D. And when the number in the data packet of the attitude control unit is obtained through analysis, the specific coordinate of the number in the digital texture map can be obtained, the rendering display unit renders an image, and texture mapping is carried out according to the obtained texture coordinate, so that the image corresponding to the corresponding number can be obtained.
In the embodiment of the present disclosure, it is assumed that the gesture control unit sends a number in one data packet, and the rendering and displaying unit displays an image of the corresponding number after rendering within one frame time.
Considering here that the local times of the attitude control unit and the rendering display unit are not synchronized, i.e. there is a difference Δ t therebetween, the data image matching time is: (tb-ta-. DELTA.t).
According to the above embodiment, the total delay of the device that can be obtained finally is: t2+ (tb-ta- Δ T) = T2+ tb-ta- (T3-T2)/2.
The method for measuring the time delay of the equipment provided by the embodiment of the disclosure measures the data transmission time delay T2 from the posture change to the transmission to the posture control unit, measures the data transmission time delay delta T between the posture control unit and the rendering display unit on the upper layer and the time (tb-ta) from the data to be displayed on the upper layer of the posture control unit to the rendering display unit to finish the image display, and finally obtains the integral time delay T2+ (tb-ta-delta T) of the equipment
It is to be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to an exemplary embodiment of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
Fig. 9 schematically illustrates a composition diagram of an apparatus for measuring a device delay in an exemplary embodiment of the present disclosure.
As shown in fig. 9, an apparatus 900 for measuring a device delay provided by an embodiment of the present disclosure may include a delay time measuring module 910, a matching time measuring module 920, and a device delay obtaining module 930.
The delay time measurement module 910 may be configured to measure a first transmission delay time between the sensor and the attitude control unit.
The matching time measuring module 920 may be configured to measure a data image matching time between the posture control unit and the rendering display unit.
The device delay obtaining module 930 may be configured to obtain the delay time of the device according to the first transmission delay time and the data image matching time.
In an exemplary embodiment, the apparatus is fixed to a first turntable, a measurement circuit is built between the first turntable and a second turntable, and the attitude control unit includes an angular velocity detection unit therein.
The delay time measurement module 910 may further include: a current signal measuring sub-module that may be configured to measure a first current signal of the measuring circuit and a second current signal of the angular velocity detecting unit when the first turntable enters a rotating state from a stationary state; a delay time measurement submodule configurable to obtain the first transmission delay time from the first current signal and the second current signal.
In an exemplary embodiment, the matching time measuring module 920 may further include: a data upload delay measurement sub-module configurable to measure a second transmission delay time between the attitude control unit and the rendering display unit; an upload display time measurement sub-module configurable to measure upload display time between the attitude control unit and the rendering display unit; and the matching time measuring sub-module can be configured to obtain the data image matching time according to the second transmission delay time and the uploading display time.
In an exemplary embodiment, the data upload delay measurement sub-module may further include: a first local time transmission unit configured to transmit a first local time of the rendering display unit to the posture control unit; a local time setting unit that may be configured to set a local time of the attitude control unit according to the first local time; a second local time transmission unit configured to transmit a second local time of the posture control unit to the rendering display unit; a third local time obtaining unit, which may be configured to obtain a third local time of the rendering display unit when the rendering display unit receives the second local time; the data upload delay measurement unit may be configured to obtain the second transmission delay time according to the second local time and the third local time.
In an exemplary embodiment, the upload display time measurement sub-module may further include: a data packet sending unit, which may be configured to send a data packet to the rendering display unit through the gesture control unit, where the data packet includes data to be displayed and a sending local time of the gesture control unit; the rendering display unit can be configured to render and display the data to be displayed through the rendering display unit and obtain display time; an upload display time obtaining unit may be configured to obtain the upload display time according to the transmission local time and the display time.
In an exemplary embodiment, the rendering display unit may further include: the texture coordinate acquiring subunit may be configured to acquire a texture coordinate of the data to be displayed in a pre-stored texture map; and the rendering display subunit can be configured to perform texture mapping according to the obtained texture coordinates to obtain an image corresponding to the data to be displayed.
In an exemplary embodiment, the device is a virtual reality device.
The specific manner in which the various modules and/or sub-modules and/or units and/or sub-units perform operations with respect to the apparatus in the above-described embodiments has been described in detail in relation to the embodiments of the method, and will not be elaborated upon here.
It should be noted that although in the above detailed description several modules or sub-modules or units or sub-units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or sub-modules or units or sub-units described above may be embodied in one module or sub-module or unit or sub-unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or sub-module or unit or sub-unit described above may be further divided into a plurality of modules or sub-modules or units or sub-units. The components shown as modules or sub-modules or units or sub-units may or may not be physical units, i.e. may be located in one place or may be distributed over a plurality of network units. Some or all of the modules or sub-modules or units or sub-units can be selected according to actual needs to achieve the purpose of the disclosure. One of ordinary skill in the art can understand and implement it without inventive effort.
In an exemplary embodiment of the present disclosure, there is also provided an electronic device capable of implementing the above method for measuring a device latency.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 10. The electronic device 600 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the electronic device 600 is in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, and a bus 630 that couples various system components including the memory unit 620 and the processing unit 610.
Wherein the storage unit stores program code that is executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 610 may perform step S110 shown in fig. 1, measuring a first transmission delay time between a sensor of a device and an attitude control unit of the device; step S120, measuring data image matching time between an attitude control unit of the equipment and a rendering display unit of the equipment; step S130, obtaining the delay time of the equipment according to the first transmission delay time and the data image matching time.
The storage unit 620 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM) 6201 and/or a cache storage unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include programs/utilities 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. As shown, the network adapter 660 communicates with the other modules of the electronic device 600 over the bus 630. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 11, a program product 110 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily appreciated that the processes illustrated in the above figures are not intended to indicate or limit the temporal order of the processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

1. A method for measuring the time delay of equipment comprises a sensor, an attitude control unit and a rendering display unit, and is characterized in that the equipment is fixed on a first rotary table, a measuring circuit is built between the first rotary table and a second rotary table, and the attitude control unit comprises an angular velocity detection unit; the method comprises the following steps:
measuring a first transmission delay time between the sensor and the attitude control unit, comprising: measuring a first current signal of the measuring circuit and a second current signal of the angular velocity detecting unit when the first turntable enters a rotating state from a static state; obtaining the first transmission delay time according to the first current signal and the second current signal;
measuring a data image matching time between the attitude control unit and the rendering display unit;
and obtaining the delay time of the equipment according to the first transmission delay time and the data image matching time.
2. The method of claim 1, wherein measuring a data image matching time between the pose control unit and the rendering display unit comprises:
measuring a second transmission delay time between the attitude control unit and the rendering display unit;
measuring uploading display time between the attitude control unit and the rendering display unit;
and obtaining the data image matching time according to the second transmission delay time and the uploading display time.
3. The method of claim 2, wherein measuring a second transmission delay time between the attitude control unit and the rendering display unit comprises:
sending the first local time of the rendering display unit to the attitude control unit;
setting a local time of the attitude control unit according to the first local time;
sending the second local time of the attitude control unit to the rendering display unit;
when the rendering display unit receives the second local time, acquiring a third local time of the rendering display unit;
and obtaining the second transmission delay time according to the second local time and the third local time.
4. The method of claim 3, wherein measuring an upload display time between the gesture control unit and the rendering display unit comprises:
sending a data packet to the rendering display unit through the attitude control unit, wherein the data packet comprises data to be displayed and sending local time of the attitude control unit;
rendering and displaying the data to be displayed through the rendering display unit, and obtaining display time;
and acquiring the uploading display time according to the sending local time and the display time.
5. The method of claim 4, wherein rendering and displaying the data to be displayed by the rendering display unit comprises:
acquiring texture coordinates of the data to be displayed in a prestored texture map;
and performing texture mapping according to the obtained texture coordinates to obtain an image corresponding to the data to be displayed.
6. The method of claim 1, wherein the device is a virtual reality device.
7. A device for measuring the time delay of equipment comprises a sensor, an attitude control unit and a rendering display unit, and is characterized in that the equipment is fixed on a first rotary table, a measuring circuit is built between the first rotary table and a second rotary table, and the attitude control unit comprises an angular velocity detection unit; the device comprises:
a delay time measuring module configured to measure a first transmission delay time between the sensor and the attitude control unit, wherein the delay time measuring module includes a current signal measuring submodule and a delay time measuring submodule, and the current signal measuring submodule is configured to measure a first current signal of the measuring circuit and a second current signal of the angular velocity detecting unit when the first turntable enters a rotating state from a stationary state; the delay time measurement submodule is configured to obtain the first transmission delay time according to the first current signal and the second current signal;
a matching time measuring module configured to measure a data image matching time between the posture control unit and the rendering display unit;
and the equipment delay obtaining module is configured to obtain the delay time of the equipment according to the first transmission delay time and the data image matching time.
8. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method for measuring a latency of a device according to any one of claims 1 to 6.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for measuring device latency of any one of claims 1 to 6.
CN201910005061.XA 2019-01-03 2019-01-03 Method, apparatus, medium, and electronic device for measuring device delay Active CN109782912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910005061.XA CN109782912B (en) 2019-01-03 2019-01-03 Method, apparatus, medium, and electronic device for measuring device delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910005061.XA CN109782912B (en) 2019-01-03 2019-01-03 Method, apparatus, medium, and electronic device for measuring device delay

Publications (2)

Publication Number Publication Date
CN109782912A CN109782912A (en) 2019-05-21
CN109782912B true CN109782912B (en) 2022-10-25

Family

ID=66499941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910005061.XA Active CN109782912B (en) 2019-01-03 2019-01-03 Method, apparatus, medium, and electronic device for measuring device delay

Country Status (1)

Country Link
CN (1) CN109782912B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8988388B2 (en) * 2011-09-16 2015-03-24 Htc Corporation Electronic device and method for scanning a touch panel thereof
US20150138162A1 (en) * 2013-10-07 2015-05-21 Tactual Labs Co. Latency measuring and testing system and method
CN106534843A (en) * 2016-11-14 2017-03-22 北京凌宇智控科技有限公司 Delay measurement method and device
CN106998409B (en) * 2017-03-21 2020-11-27 华为技术有限公司 Image processing method, head-mounted display and rendering equipment
CN107820075A (en) * 2017-11-27 2018-03-20 中国计量大学 A kind of VR equipment delayed test devices based on light stream camera
CN108921951B (en) * 2018-07-02 2023-06-20 京东方科技集团股份有限公司 Virtual reality image display method and device and virtual reality equipment

Also Published As

Publication number Publication date
CN109782912A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN108415705B (en) Webpage generation method and device, storage medium and equipment
EP3335097B1 (en) Method for measuring angles between displays and electronic device using the same
US10281981B2 (en) AR output method and electronic device for supporting the same
US8953036B2 (en) Information processing apparatus, information processing method, program, and information processing system
WO2017104987A1 (en) Photographing device and control method thereof
WO2019179237A1 (en) Satellite-view electronic map acquisition method and device, apparatus, and storage medium
CN110532170B (en) Method and device for building test environment, electronic equipment and medium
CN107329671B (en) Model display method and device
US20200286276A1 (en) Electronic device and method for displaying and generating panoramic image
WO2017206451A1 (en) Image information processing method and augmented reality device
CN108389264A (en) Coordinate system determines method, apparatus, storage medium and electronic equipment
CN111897429A (en) Image display method, image display device, computer equipment and storage medium
CN111597465A (en) Display method and device and electronic equipment
CN108646280A (en) A kind of localization method, device and user terminal
CN110276794B (en) Information processing method, information processing device, terminal device and server
CN109782912B (en) Method, apparatus, medium, and electronic device for measuring device delay
CN111710046A (en) Interaction method and device and electronic equipment
CN114116081B (en) Interactive dynamic fluid effect processing method and device and electronic equipment
CN116271836A (en) Scene visual angle adjusting method, device, terminal and storage medium
CN108801246B (en) Method and system for accurate spatial positioning
CN108038871A (en) The pivot of rotating platform determines method, apparatus, server and storage medium
CN114049403A (en) Multi-angle three-dimensional face reconstruction method and device and storage medium
CN114529452A (en) Method and device for displaying image and electronic equipment
CN113960648A (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
CN111539794A (en) Voucher information acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant