The present disclosure relates generally to processing systems and, more particularly, to one or more techniques for display or graphics processing.
Computing devices often utilize a graphics processing unit (GPU) to accelerate the rendering of graphical data for display. Such computing devices may include, for example, computer workstations, mobile phones such as so-called smartphones, embedded systems, personal computers, tablet computers, and video game consoles. GPUs execute a graphics processing pipeline that includes one or more processing stages that operate together to execute graphics processing commands and output a frame. A central processing unit (CPU) may control the operation of the GPU by issuing one or more graphics processing commands to the GPU. Modern day CPUs are typically capable of concurrently executing multiple applications, each of which may need to utilize the GPU during execution.
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
In an aspect of the disclosure, a method, a computer-readable medium, and an apparatus are provided. The apparatus may be a display processor, a display processing unit (DPU), a graphics processing unit (GPU), or a video processor. The apparatus may receive a hardware Vsync signal from a display, generate a hardware time stamp signal based on the hardware Vsync signal, determine an error for a pulse in the hardware timestamp signal, determine whether the error for the pulse is over a threshold, synchronize a software Vsync signal based on the hardware timestamp signal, wherein the pulse of the hardware timestamp signal is ignored in synchronization based on whether the error is above the threshold, and control rendering and transmission of a frame to the display based on the synchronized software Vsync signal.
The details of one or more examples of the disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the disclosure will be apparent from the description and drawings, and from the claims.
In general, examples disclosed herein provide techniques for generating an accurate software Vsync for display processing. In some examples, a compositor receives a hardware Vsync signal from a display. The compositor generates a hardware timestamp signal based on the hardware Vsync signal. The compositor determines an error for a pulse in the hardware timestamp signal. The compositor determines whether the error for the pulse is over a threshold. The compositor synchronizes a software Vsync signal based on the hardware timestamp signal, wherein the pulse of the hardware timestamp signal is ignored in synchronization based on whether the error is above the threshold. Finally, the compositor controls rendering and transmission of a frame to the display based on the synchronized software Vsync signal.
Various aspects of systems, apparatuses, computer program products, and methods are described more fully hereinafter with reference to the accompanying drawings. This disclosure may, however, be embodied in many different forms and should not be construed as limited to any specific structure or function presented throughout this disclosure. Rather, these aspects are provided so that this disclosure will be thorough and complete, and will fully convey the scope of this disclosure to those skilled in the art. Based on the teachings herein one skilled in the art should appreciate that the scope of this disclosure is intended to cover any aspect of the systems, apparatuses, computer program products, and methods disclosed herein, whether implemented independently of, or combined with, other aspects of the disclosure. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects set forth herein. In addition, the scope of the disclosure is intended to cover such an apparatus or method which is practiced using other structure, functionality, or structure and functionality in addition to or other than the various aspects of the disclosure set forth herein. Any aspect disclosed herein may be embodied by one or more elements of a claim.
Although various aspects are described herein, many variations and permutations of these aspects fall within the scope of this disclosure. Although some potential benefits and advantages of aspects of this disclosure are mentioned, the scope of this disclosure is not intended to be limited to particular benefits, uses, or objectives. Rather, aspects of this disclosure are intended to be broadly applicable to different wireless technologies, system configurations, networks, and transmission protocols, some of which are illustrated by way of example in the figures and in the following description. The detailed description and drawings are merely illustrative of this disclosure rather than limiting, the scope of this disclosure being defined by the appended claims and equivalents thereof.
Several aspects are presented with reference to various apparatus and methods. These apparatus and methods are described in the following detailed description and illustrated in the accompanying drawings by various blocks, components, circuits, processes, algorithms, and the like (collectively referred to as “elements”). These elements may be implemented using electronic hardware, computer software, or any combination thereof. Whether such elements are implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system.
By way of example, an element, or any portion of an element, or any combination of elements may be implemented as a “processing system” that includes one or more processors (which may also be referred to as processing units). Examples of processors include microprocessors, microcontrollers, graphics processing units (GPUs), general purpose GPUs (GPGPUs), central processing units (CPUs), application processors, digital signal processors (DSPs), reduced instruction set computing (RISC) processors, systems-on-chip (SOC), baseband processors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), programmable logic devices (PLDs), state machines, gated logic, discrete hardware circuits, and other suitable hardware configured to perform the various functionality described throughout this disclosure. One or more processors in the processing system may execute software. Software can be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software components, applications, software applications, software packages, routines, subroutines, objects, executables, threads of execution, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise. The term application may refer to software. As described herein, one or more techniques may refer to an application, i.e., software, being configured to perform one or more functions. In such examples, the application may be stored on a memory, e.g., on-chip memory of a processor, memory, or any other memory. Hardware described herein, such as a processor may be configured to execute the application. For example, the application may be described as including code that, when executed by the hardware, causes the hardware to perform one or more techniques described herein. As an example, the hardware may access the code from a memory and execute the code accessed from the memory to perform one or more techniques described herein. In some examples, components are identified in this disclosure. In such examples, the components may be hardware, software, or a combination thereof. The components may be separate components or sub-components of a single component.
Accordingly, in one or more examples described herein, the functions described may be implemented in hardware, software, or any combination thereof. If implemented in software, the functions may be stored on or encoded as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media. Storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise a random access memory (RAM), a read-only memory (ROM), an electrically erasable programmable ROM (EEPROM), optical disk storage, magnetic disk storage, other magnetic storage devices, combinations of the aforementioned types of computer-readable media, or any other medium that can be used to store computer executable code in the form of instructions or data structures that can be accessed by a computer.
As used herein, instances of the term “content” may refer to “graphical content,” “image,” and vice versa. This is true regardless of whether the terms are being used as an adjective, noun, or other parts of speech. In some examples, as used herein, the term “graphical content” may refer to a content produced by one or more processes of a graphics processing pipeline. In some examples, as used herein, the term “graphical content” may refer to a content produced by a processing unit configured to perform graphics processing. In some examples, as used herein, the term “graphical content” may refer to a content produced by a graphics processing unit.
In some examples, as used herein, the term “display content” may refer to content generated by a processing unit configured to perform displaying processing. In some examples, as used herein, the term “display content” may refer to content generated by a display processing unit. Graphical content may be processed to become display content. For example, a graphics processing unit may output graphical content, such as a frame, to a buffer (which may be referred to as a framebuffer). A display processing unit may read the graphical content, such as one or more frames from the buffer, and perform one or more display processing techniques thereon to generate display content. For example, a display processing unit may be configured to perform composition on one or more rendered layers to generate a frame. As another example, a display processing unit may be configured to compose, blend, or otherwise combine two or more layers together into a single frame. A display processing unit may be configured to perform scaling, e.g., upscaling or downscaling, on a frame. In some examples, a frame may refer to a layer. In other examples, a frame may refer to two or more layers that have already been blended together to form the frame, i.e., the frame includes two or more layers, and the frame that includes two or more layers may subsequently be blended.
The processing unit 120 may include an internal memory 121. The processing unit 120 may be configured to perform graphics processing, such as in a graphics processing pipeline 107. In some examples, the device 104 may include a display processor, such as the display processor 127, to perform one or more display processing techniques on one or more frames generated by the processing unit 120 before presentment by the display client 131. The display processor 127 may be configured to perform display processing. For example, the display processor 127 may be configured to perform one or more display processing techniques on one or more frames generated by the processing unit 120. The display client 131 may be configured to display or otherwise present frames processed by the display processor 127. In some examples, the display client 131 may include one or more of: a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, a projection display device, an augmented reality display device, a virtual reality display device, a head-mounted display, or any other type of display device.
Memory external to the processing unit 120, such as memory 124, may be accessible to the processing unit 120. For example, the processing unit 120 may be configured to read from and/or write to external memory, such as the memory 124. The processing unit 120 may be communicatively coupled to the memory 124 over a bus. In some examples, the processing unit 120 and the memory 124 may be communicatively coupled to each other over the bus or a different connection.
It should be appreciated that in some examples, the device 104 may include a content encoder/decoder configured to receive graphical and/or display content from any source, such as the memory 124 and/or the communication interface 126. The memory 124 may be configured to store received encoded or decoded graphical content. In some examples, the content encoder/decoder may be configured to receive encoded or decoded graphical content, e.g., from the memory 124 and/or the communication interface 126, in the form of encoded pixel data. In some examples, the content encoder/decoder may be configured to encode or decode any graphical content.
The internal memory 121 or the memory 124 may include one or more volatile or non-volatile memories or storage devices. In some examples, internal memory 121 or the memory 124 may include RAM, SRAM, DRAM, erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, a magnetic data media or an optical storage media, or any other type of memory.
The internal memory 121 or the memory 124 may be a non-transitory storage medium according to some examples. The term “non-transitory” may indicate that the storage medium is not embodied in a carrier wave or a propagated signal. However, the term “non-transitory” should not be interpreted to mean that internal memory 121 or the memory 124 is non-movable or that its contents are static. As one example, the memory 124 may be removed from the device 104 and moved to another device. As another example, the memory 124 may not be removable from the device 104.
The processing unit 120 may be a central processing unit (CPU), a graphics processing unit (GPU), a general purpose GPU (GPGPU), or any other processing unit that may be configured to perform graphics processing. In some examples, the processing unit 120 may be integrated into a motherboard of the device 104. In some examples, the processing unit 120 may be present on a graphics card that is installed in a port in a motherboard of the device 104, or may be otherwise incorporated within a peripheral device configured to interoperate with the device 104. The processing unit 120 may include one or more processors, such as one or more microprocessors, GPUs, application specific integrated circuits (ASIC s), field programmable gate arrays (FPGAs), arithmetic logic units (ALUs), digital signal processors (DSPs), discrete logic, software, hardware, firmware, other equivalent integrated or discrete logic circuitry, or any combinations thereof. If the techniques are implemented partially in software, the processing unit 120 may store instructions for the software in a suitable, non-transitory computer-readable storage medium, e.g., internal memory 121, and may execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Any of the foregoing, including hardware, software, a combination of hardware and software, etc., may be considered to be one or more processors.
In some aspects, the content generation system 100 can include a communication interface 126. The communication interface 126 may include a receiver 128 and a transmitter 130. The receiver 128 may be configured to perform any receiving function described herein with respect to the device 104. Additionally, the receiver 128 may be configured to receive information, e.g., eye or head position information, rendering commands, or location information, from another device. The transmitter 130 may be configured to perform any transmitting function described herein with respect to the device 104. For example, the transmitter 130 may be configured to transmit information to another device, which may include a request for content. The receiver 128 and the transmitter 130 may be combined into a transceiver 132. In such examples, the transceiver 132 may be configured to perform any receiving function and/or transmitting function described herein with respect to the device 104.
In some examples, the graphical content from the processing unit 120 for display via the display client 131 is not static and may be changing. Accordingly, the display processor 127 may periodically refresh the graphical content displayed via the display client 131. For example, the display processor 127 may periodically retrieve graphical content from the memory 124, where the graphical content may have been updated by the execution of an application (and/or the processing unit 120) that outputs the graphical content to the memory 124.
The rate at which the display processor 127 refreshes the graphical content displayed via the display client 131 may be referred to as the frames per second (FPS) rate or the “display refresh rate.” Examples of the display refresh rate include 30 fps, 60 fps, 90 fps, 120 fps, 240 fps, etc.
The processing unit 120 and the display client 131 may operate in synchrony to allow for consistent generation of graphical content and display of the graphical content as display content. To provide synchronization between the two components, the display client 131 may transmit a hardware Vsync to the processing unit 120. The processing unit 120 may generate a software Vsync based on the hardware Vsync and use the software Vsync to control the timing of the processing unit's operation. In some circumstances, the process of generating the software Vsync can be delayed, resulting in the software Vsync being irregular (e.g., out of alignment with the hardware Vsync). The irregular software Vsync may cause frame drops and/or FPS loss in the output of the display client 131.
Referring again to
As described herein, a device, such as the device 104, may refer to any device, apparatus, or system configured to perform one or more techniques described herein. For example, a device may be a server, a base station, user equipment, a client device, a station, an access point, a computer, e.g., a personal computer, a desktop computer, a laptop computer, a tablet computer, a computer workstation, or a mainframe computer, an end product, an apparatus, a phone, a smart phone, a server, a video game platform or console, a handheld device, e.g., a portable video game device or a personal digital assistant (PDA), a wearable computing device, e.g., a smart watch, an augmented reality device, or a virtual reality device, a non-wearable device, a display or display device, a television, a television set-top box, an intermediate network device, a digital media player, a video streaming device, a content streaming device, an in-car computer, any mobile device, any device configured to generate graphical content, or any device configured to perform one or more techniques described herein. Processes herein may be described as performed by a particular component (e.g., a GPU), but, in further embodiments, can be performed using other components (e.g., a CPU), consistent with disclosed embodiments.
The compositor 204 may control the synchronization between rendering a frame and transmitting the rendered frame to the display. The compositor 204 may utilize a software Vsync to control the rendering of frames and outputting of frames to the display client 131. In particular, the compositor 204 may utilize the software Vsync to synchronize the timing of rendering a frame and delivering the frame to the display processor 127 or the display client 131. The software Vsync may allow the compositor 204 to synchronize the rendering, composition, and display of the frame with a fixed interval (e.g., based on the framerate of the display client 131).
The compositor 204 may generate the software Vsync based on a hardware Vsync. When operating in video mode, the compositor 204 may generate the software Vsync based on a hardware Vsync received from the display processor 127. When operating in command mode, the compositor 204 may generate the software Vsync based on a hardware Vsync received from the display client 131. Command mode and video mode are discussed in more detail below. The display processor 127 or the display client 131 may transition the hardware Vsync transmitted to the compositor 204 from high to low or from low to high when the display client 131 has finished displaying a frame to allow the compositor 204 and the display client 131 to remain in sync.
The compositor 204 may not always be able to include the pulse on the hardware timestamp signal at the same time as the transition in the hardware Vsync. For example, under normal circumstances, there may be an average delay of 0.15 ms, up to 0.6 ms, between the time the hardware Vsync transitions and when the corresponding pulse is added to the hardware timestamp signal. This delay may be relatively minor, and may be absorbed in the design of the compositor 204 (e.g., absorbed in the design of the software Vsync generation components).
In some aspects, a long delay 302 may occur between when the compositor 204 receives the hardware Vsync and when the compositor 204 includes a corresponding pulse 304 in the hardware timestamp signal. The long delay 302 may be a software delay, in which software of the compositor 204 causes a delay in updating the hardware timestamp signal based on the hardware Vsync. For example, when the processing unit 120 is under a heavy load, frame composition may be delayed which may result in a delay in transmitting the frame to the display and a delay in generating the hardware timestamp signal. In another example, the long delay 302 may be caused by a software bug or deadlock delaying the generating of the hardware timestamp signal. In a further example, the long delay 302 may be based on the hardware interrupt request queue. In some aspects, the long delay 302 may be up to 16 ms. In some aspects, the long delay 302 may be a delay which is between 0.6 ms and 16 ms. In some aspects, the long delay 302 may be a delay which is between 1 ms and 16 ms. In some aspects, the long delay 302 may be any delay over 0.6 ms. The delayed pulse 304 may be referred to as a long-delayed kernel Vsync timestamp. When the software Vsync is synchronized based on the hardware timestamp signal, the delayed pulse 304 may result in an irregular software Vsync. When the compositor 204 utilizes the irregular software Vsync, it may cause a frame drop(s) and/or reduced FPS.
In some aspects, the error for a pulse may be evaluated based on various statistics such as the average of previous errors. The compositor may determine the delay for a set number of previous frames, and may determine the delay for the current frame based on the delays of the set number of previous frames. For example, where the Vsync transitioned after 16.8 ms, 17.1 ms, 16.1 ms, and 16.2 ms for the last four frames, the compositor 204 may determine that the average Vsync delay for the last four frames was 16.45 ms. The compositor 204 may then determine the error for the delay for the current frame based on the 16.45 ms average for the last four frames.
The compositor 204 may determine whether the error for a given pulse exceeds a threshold. In some aspects, the threshold may be 0.6 ms. For example, as illustrated in
The compositor 204 may then synchronize the software Vsync based on the hardware timestamp signal, but may ignore pulses with an error greater than the threshold such as the pulse 402. Where the compositor 204 ignores the pulse 402 in synchronizing the software Vsync, the software Vsync may have a pulse 404 which is an integer of times greater than the normal pulsewidth. For example, as illustrated in
In some aspects, the display client 131 may operate in a video mode. In video mode, the processing unit 120 may transmit the pixels to be displayed to the display client 131. In some aspects, the display client 131 may operate in a command mode. In command mode, the processing unit 120 may transmit data to the display client 131 or to the display processor 127, and the display client 131 or the display processor 127 may render the pixels to be displayed based on the data received from the processing unit 120.
In some aspects, the compositor 204 may determine whether the display client 131 is operating in video mode. The compositor 204 may determine the error for pulses of the hardware timestamp signal and ignore pulses over the threshold, as described above, when the display client 131 is operating in video mode. When the display client 131 is operating in video mode, the compositor 204 may generate the software Vsync based on a hardware Vsync signal received from a timing engine (e.g., a mobile display processor timing engine). The timing engine may be a part of the processing unit 120. The timing engine may share a clock source with the compositor 204. Accordingly, there may be little or no time shift between the software Vsync and the hardware Vsync, so the compositor 204 may not need to synchronize the software Vsync frequently. When the display client 131 is not operating in video mode (e.g., when the display client 131 is operating in command mode), the compositor 204 may synchronize the software Vsync based on the hardware timestamp signal as described with respect to
At 502, the apparatus may receive a hardware Vsync from a display. For example, the compositor 204 or the processing unit 120 may receive the hardware Vsync from the display client 131 or the display processor 127.
At 504, the apparatus may generate a hardware timestamp signal based on the hardware Vsync received at 502. The apparatus may include a pulse on the hardware timestamp signal each time the hardware Vsync is detected. For example, the compositor 204 or the processing unit 120 may generate the hardware timestamp signal based on the hardware Vsync received from the display client 131 or the display processor 127.
At 506, the apparatus may determine an error for a pulse in the hardware timestamp signal. For example, the compositor 204 or the processing unit 120 may determine an error for a pulse in the hardware timestamp signal. The error may be an amount of time between when the hardware Vsync was actually received by the compositor 204 and when the pulse was included on the hardware timestamp signal. In some aspects, the error may have been caused by a software delay which resulted in delaying the addition of the pulse to the hardware timestamp signal. In some aspects, the apparatus may determine the error for each pulse of the hardware timestamp signal.
At 508, the apparatus may determine whether the error for the pulse is over a threshold. For example, the compositor 204 or the processing unit 120 may determine whether the error is over a threshold. The threshold may be configured such that the maximum normal delay in the pulse expected in normal operation of the apparatus is not above the threshold, but a long delay is above the threshold. In some aspects, a long delay may refer to a delay that would cause irregularities in the software Vsync. In some aspects, a long delay may refer to a delay resulting from frame composition being delayed based on a heavy load on the processing unit 120, resulting in a delay in transmitting the frame to the display and a delay in generating the hardware timestamp signal. In some aspects, a long delay may refer to a delay resulting from a software bug or deadlock delaying the generating of the hardware timestamp signal. In some aspects, a long delay may refer to a delay based on the hardware interrupt request queue. For example, the threshold may be 0.6 ms.
At 510, the apparatus may determine whether the display is operating in video mode. For example, in some aspects, the processing unit 120 may determine whether the display client 131 is operating in video mode.
If, at 508, the apparatus determined that the error was not over the threshold or, at 510, the apparatus determined that the display was not operating in video mode, then at 512, the apparatus may synchronize the software Vsync based on the hardware timestamp signal, including the pulse. For example, the compositor 204 or the processing unit 120 may synchronize the software Vsync as described with respect to
If, at 508, the apparatus determined that the error was over the threshold and, at 510, the apparatus determined that the display was operating in video mode, then at 514, the apparatus may discard the pulse of the hardware timestamp signal. At 516, the apparatus may synchronize the software Vsync based on the hardware timestamp signal, ignoring the discarded pulse. For example, the compositor 204 or the processing unit 120 may synchronize the software Vsync as described above with respect to
At 518, the apparatus may control rendering and transmission of a frame to the display based on the synchronized software Vsync. For example, the compositor 204 or the processing unit 120 may control rendering and transmission of a frame to the display client 131 based on the synchronized software Vsync.
In accordance with this disclosure, the term “or” may be interrupted as “and/or” where context does not dictate otherwise. Additionally, while phrases such as “one or more” or “at least one” or the like may have been used for some features disclosed herein but not others, the features for which such language was not used may be interpreted to have such a meaning implied where context does not dictate otherwise.
In one or more examples, the functions described herein may be implemented in hardware, software, firmware, or any combination thereof. For example, although the term “processing unit” has been used throughout this disclosure, such processing units may be implemented in hardware, software, firmware, or any combination thereof. If any function, processing unit, technique described herein, or other module is implemented in software, the function, processing unit, technique described herein, or other module may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media may include computer data storage media or communication media including any medium that facilitates transfer of a computer program from one place to another. In this manner, computer-readable media generally may correspond to (1) tangible computer-readable storage media, which is non-transitory or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this disclosure. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media. A computer program product may include a computer-readable medium.
The code may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), arithmetic logic units (ALUs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term “processor,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. Also, the techniques could be fully implemented in one or more circuits or logic elements.
The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs, e.g., a chip set. Various components, modules or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need realization by different hardware units. Rather, as described above, various units may be combined in any hardware unit or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.
The following examples are illustrative only and may be combined with aspects of other embodiments or teachings described herein, without limitation.
Example 1 is a method of display processing, comprising: receiving a hardware Vsync signal from a display; generating a hardware timestamp signal based on the hardware Vsync signal; determining an error for a pulse in the hardware timestamp signal; determining whether the error for the pulse is over a threshold; synchronizing a software Vsync signal based on the hardware timestamp signal, wherein the pulse of the hardware timestamp signal is ignored in synchronization based on whether the error is above the threshold; and controlling rendering and transmission of a frame to the display based on the synchronized software Vsync signal.
Example 2 is the method of Example 1, wherein the pulse of the hardware timestamp signal is ignored in synchronization further based on whether the display is in video mode.
Example 3 is the method of Examples 1 and 2, wherein the pulse is ignored if the error is above the threshold and the display is in video mode.
Example 4 is the method of any of Examples 1 to 3, wherein determining the error for the pulse is based on determining that the display is not in video mode.
Example 5 is an apparatus for display processing, comprising: a memory; and at least one processor coupled to the memory and configured to: receive a hardware Vsync signal from a display; generate a hardware timestamp signal based on the hardware Vsync signal; determine an error for a pulse in the hardware timestamp signal; determine whether the error for the pulse is over a threshold; synchronize a software Vsync signal based on the hardware timestamp signal, wherein the pulse of the hardware timestamp signal is ignored in synchronization based on whether the error is above the threshold; and control rendering and transmission of a frame to the display based on the synchronized software Vsync signal.
Example 6 is the apparatus of Example 5, wherein the pulse of the hardware timestamp signal is ignored in synchronization further based on whether the display is in video mode.
Example 7 is the apparatus of Examples 5 and 6, wherein the pulse is ignored if the error is above the threshold and the display is in video mode.
Example 8 is the apparatus of any of Examples 5 to 7, wherein the at least one processor is configured to determine the error for the pulse based on determining that the display is not in video mode.
Example 9 is a non-transitory computer-readable medium storing computer executable code for display processing, comprising code to: receive a hardware Vsync signal from a display; generate a hardware timestamp signal based on the hardware Vsync signal; determine an error for a pulse in the hardware timestamp signal; determine whether the error for the pulse is over a threshold; synchronize a software Vsync signal based on the hardware timestamp signal, wherein the pulse of the hardware timestamp signal is ignored in synchronization based on whether the error is above the threshold; and control rendering and transmission of a frame to the display based on the synchronized software Vsync signal.
Example 10 is the non-transitory computer-readable medium of Example 9, wherein the pulse of the hardware timestamp signal is ignored in synchronization further based on whether the display is in video mode.
Example 11 is the non-transitory computer-readable medium of Examples 9 and 10, wherein the pulse is ignored if the error is above the threshold and the display is in video mode.
Example 12 is the non-transitory computer-readable medium of any of Examples 9 to 11, wherein the code is to determine the error for the pulse based on determining that the display is not in video mode.
Example 13 is an apparatus for display processing, comprising: a memory; and at least one processor coupled to the memory and configured to: receive a hardware Vsync signal from a display; determine whether the display is in video mode or command mode; generate a hardware timestamp signal based on the hardware Vsync signal; determine an error for a pulse in the hardware timestamp signal; upon determining that the display is in video mode, determine whether the error for the pulse is over a threshold; synchronize a software Vsync signal based on the hardware timestamp signal, wherein the pulse of the hardware timestamp signal is ignored in synchronization based on whether the error is above the threshold if the display is in video mode; and control rendering and transmission of a frame to the display based on the synchronized software Vsync signal.
Example 14 is the apparatus of Example 13, wherein the pulse of the hardware timestamp signal is ignored in synchronization if the error is above the threshold and the display is in video mode.
Example 15 is the apparatus of Examples 13 and 14, wherein determining the error for the pulse is based on determining that the display is in video mode.
Example 16 is the apparatus of any of Examples 13 to 15, wherein the apparatus is a wireless communication device.
Various examples have been described. These and other examples are within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
PCT/CN2019/130447 | Dec 2019 | CN | national |
This application claims the benefit of Patent Cooperation Treaty Application Serial No. PCT/CN2019/130447, entitled “METHODS AND APPARATUS TO FACILITATE FRAME PER SECOND RATE SWITCHING VIA TOUCH EVENT SIGNALS” and filed on Dec. 31, 2019, which is expressly incorporated by reference herein in its entirety.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/141179 | 12/30/2020 | WO |