CN113190315B - Display refreshing method and device - Google Patents

Display refreshing method and device Download PDF

Info

Publication number
CN113190315B
CN113190315B CN202110476113.9A CN202110476113A CN113190315B CN 113190315 B CN113190315 B CN 113190315B CN 202110476113 A CN202110476113 A CN 202110476113A CN 113190315 B CN113190315 B CN 113190315B
Authority
CN
China
Prior art keywords
display
processor
refresh
sending
refreshing
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
CN202110476113.9A
Other languages
Chinese (zh)
Other versions
CN113190315A (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.)
Anhui Huami Information Technology Co Ltd
Original Assignee
Anhui Huami Healthcare 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 Anhui Huami Healthcare Co Ltd filed Critical Anhui Huami Healthcare Co Ltd
Priority to CN202110476113.9A priority Critical patent/CN113190315B/en
Publication of CN113190315A publication Critical patent/CN113190315A/en
Application granted granted Critical
Publication of CN113190315B publication Critical patent/CN113190315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Abstract

The invention discloses a display refreshing method and a device thereof, wherein the display refreshing method comprises the following steps: in response to receiving a drawing completion signal from the processor, sending a synchronization signal to the processor; receiving image data sent by a processor based on a synchronous signal; refreshing the display based on the received image data. The technical scheme provided by the embodiment of the invention reduces the limit of the refresh frequency of the display on the image sending frame rate of the processor in the prior art, thereby exerting the drawing efficiency of the terminal to the maximum extent.

Description

Display refreshing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a display refreshing method and a display refreshing device.
Background
In order to ensure the smoothness of the display screen, it is necessary to ensure that the image sending of the processor is synchronized with the refreshing of the display, so that the image sending frame rate of the processor is limited by the refreshing frequency of the display.
However, in different systems or application programs, the drawing capability and drawing speed of the processor are different, and in order to ensure that the drawing sending of the processor is synchronous with the refreshing of the display and avoid the problems of screen flashing, tearing of the screen and the like of the display, even if the drawing capability of the processor is good and the drawing speed is high, the drawing sending needs to be performed according to the refreshing frequency of the display, which causes the waste of the drawing efficiency of the processor with strong drawing capability.
Disclosure of Invention
The embodiment of the invention aims to provide a display refreshing method and a display refreshing device, which can reduce the limit of the display refreshing frequency on the drawing efficiency of a processor, thereby exerting the drawing capability of the processor to the maximum extent.
In order to solve the above technical problem, an aspect of the embodiments of the present invention provides a display refresh method, including: in response to receiving a drawing completion signal from the processor, sending a synchronization signal to the processor; receiving image data sent by a processor based on a synchronous signal; the display is refreshed based on the received image data. According to the embodiment of the invention, the sending of the synchronous signal depends on the drawing capacity of the processor, so that the refreshing and drawing sending of the display depends on the drawing capacity of the processor, and the limitation of the current display refreshing frequency on the drawing sending frame rate is removed, thereby avoiding the problems that the drawing sending frame rate and the drawing efficiency are seriously limited because the drawing sending can be carried out only on the basis of the display refreshing frequency under different drawing capacity scenes, and avoiding the waste of the drawing capacity of the processor.
Further, in response to receiving a drawing completion signal from the processor, sending a synchronization signal to the processor, comprising: in response to receiving a drawing complete signal from the processor, determining a current refresh state of the display; in response to the current refresh state of the display being refresh-waiting, a synchronization signal is sent to the processor. In the embodiment of the invention, whether to send the picture is determined by two factors, namely the state of drawing (whether to finish drawing) and the refreshing state of the display (whether to finish refreshing the display), so that the normal picture sending of the display is ensured and the problems of picture tearing or disorder and the like of the display are avoided while the maximum utilization of the drawing capability of the processor is ensured.
In the embodiment of the present invention, when the display is refreshed, once the drawing is completed, the drawing is sent immediately, so that the time for the display to wait for refreshing is reduced, the drawing sending speed is increased, and the drawing sending efficiency is improved, specifically, as long as the refresh state of the display is waiting for refreshing when the drawing is completed, the drawing sending can be performed, for example: when the drawing speed is lower than the refresh speed of the display, namely when the display is refreshed and enters refresh waiting, once the drawing is finished, the drawn image data can be received and the drawing is sent without finishing the whole refresh waiting time of the current display.
Further, the display refresh method further includes: and responding to the fact that the current refreshing state of the display is in refreshing, and sending a synchronous signal to the processor after the display is refreshed. In the embodiment of the invention, whether the picture sending is carried out is determined by two factors, namely the drawing state and the refreshing state of the display, when the display is in refreshing, the picture is not sent immediately even if the drawing is finished, so that the mutual influence of the front frame image data and the rear frame image data of the display is avoided, and the tearing and the disorder of the picture are avoided. Specifically, as long as the refresh state of the display is in refresh when the drawing is completed, the drawing can be sent once the display refresh is completed, for example: when the drawing speed is higher than the refreshing speed of the display, namely when the drawing is finished, the refreshing state of the display is in refreshing, the refreshing of the display is waited for to be finished, once the refreshing is finished, the drawn image data can be directly received and the drawing is sent, the display does not need to enter the refreshing waiting state, the time spent in refreshing waiting can be completely saved, and the drawing sending speed is greatly improved.
Further, in response to receiving a drawing completion signal from the processor, sending a synchronization signal to the processor, comprising: and sending a synchronous signal to the processor in response to receiving a drawing completion signal within a preset time length, wherein the preset time length takes the display to start refreshing as a starting point. In the embodiment of the invention, whether the picture is sent is determined by three factors of the drawing state, the refreshing state of the display and the refreshing period, the picture is sent according to the drawing state and the refreshing state within the preset time length after the display starts to be refreshed, and the display is refreshed directly without waiting for the readiness of the drawing state and the refreshing state after the preset time length is exceeded, so that the lowest refreshing frequency of the display on the market is ensured to be met, and the normal operation of the display is ensured.
Further, the display refresh method further includes: and responding to the situation that the drawing completion signal is not received within the preset time length, and sending a synchronous signal to the processor based on the overtime of the preset time length. In the embodiment of the invention, the preset time length is that no drawing completion signal is output within the lowest refresh frequency of the display, so that the display is not waited any more, and the refresh action of the display is directly carried out.
Further, the preset duration is a preset maximum refresh period of the display. The preset duration is the refresh cycle corresponding to the minimum refresh frequency of the display, so as to meet the minimum requirement of the display on the refresh frequency.
Another aspect of an embodiment of the present invention provides an electronic device, including: the system comprises a processor and a display driver, wherein the processor is used for drawing and sending a drawing completion signal; the display driver is used for receiving the drawing completion signal and sending a synchronous signal to the processor; a processor further configured to send image data to the display driver based on the synchronization signal; a display driver for refreshing the display to display the image data on the display. In the electronic device provided by the embodiment of the invention, the refreshing of the display is carried out according to the drawing completion condition of the processor, and the drawing capability of the processor and the refreshing frequency of the display do not need to be confirmed in advance, so that the processors with different drawing capabilities can be suitable for the same display driving device, and the handshake operation of the processor and the display is simpler and more convenient.
Further, the display driving device is used for sending a synchronization signal to the processor under the condition that the drawing completion signal is received and the refresh state of the display is refresh waiting.
Further, the display driving device is further configured to send a synchronization signal after waiting for the refresh completion on the condition that the drawing completion signal is received and the refresh state of the display is in the refresh state.
Further, the display driving device is further configured to send a synchronization signal on condition that the drawing completion signal is received within a preset time period from the start of the display refresh.
Further, the display driver is further configured to send a synchronization signal in response to the expiration of the preset time period on a condition that the drawing completion signal is not received within the preset time period.
Further, the preset duration is a preset maximum refresh period of the display.
In another aspect, embodiments of the present invention provide a computer-readable medium, on which a computer program is stored, where the computer program is executed by a computer to implement the steps of the aforementioned display refresh method.
The technical scheme of the embodiment of the invention has the following beneficial technical effects:
the unique limit of the display refreshing frequency on the image sending frame rate is removed, the image sending frame rate of the display is determined through the drawing capacity of the processor, the limit of the display refreshing frequency on the image sending frame rate of the processor is reduced, the drawing capacity of the processor is exerted to the maximum extent, and the drawing efficiency of the terminal is improved.
Drawings
FIG. 1 is a schematic diagram of a diagram transmission process in the related art;
FIG. 2 is a schematic diagram of another diagram transmission process in the related art;
FIG. 3 is a schematic diagram of a diagram transmission process provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of another diagram transmission process provided by the embodiment of the invention;
FIG. 5 is a schematic diagram of another exemplary process for sending a chart according to an embodiment of the present invention;
FIG. 6 is a flow chart of a display refresh method according to an embodiment of the present invention;
FIG. 7 is a flow chart of another method for refreshing a display according to an embodiment of the present invention;
FIG. 8 is a flow chart of another method for refreshing a display according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Reference numerals are as follows:
100-a signal receiving module; 101-a processing module; 102-an execution module; 201-a processor; 202-display driving means; 203-a display; 800-a terminal; 801-central processor; 802-a memory; 803-a bus; 804-input output device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
The various regions, shapes, and relative sizes and positional relationships therebetween shown in the drawings are merely exemplary, and deviations may occur in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions/layers having different shapes, sizes, relative positions, as the actual requirements dictate.
It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The invention will be described in more detail below with reference to the accompanying drawings. Like elements in the various figures are denoted by like reference numerals. For purposes of clarity, the various features in the drawings are not necessarily drawn to scale.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
To enable the public to better understand the present invention, before describing the technical solution of the present invention in detail, terms are first defined.
Definition of terms:
refreshing time: that is, the time taken for the display to be in the refresh state, the refresh time of the display on the market is generally 8.3ms.
A refresh cycle: the refresh period = the duration occupied in refresh + the duration occupied by refresh waiting, i.e. the duration occupied by completing an image refresh for the display.
Refresh frequency: and carrying out corresponding frequency during refreshing according to the refreshing period.
In the embodiment provided by the invention, the refresh state of the display comprises refresh in and refresh waiting, wherein the refresh in refers to a refresh process of displaying the image data on the display, and the refresh waiting refers to a process of waiting for new image data when no new image data needs to be displayed. And after the refreshing of the display is finished, entering refreshing waiting, and after the refreshing waiting is finished, entering refreshing processing of image data of the next round by the display.
In the related art, the display is usually refreshed at a predetermined frequency, and the refresh frequency of the currently available AMOLED display is about 30-120Hz, which is too fast to charge up, and too slow to cause screen flicker.
In the related art, the refresh time of the display for displaying the image data on the display is fixed, and is generally 8.3ms, so that when the display is refreshed at the lowest frequency of 30Hz (cycle 33.3 ms), the duration occupied in the refresh is 8.3ms, and the duration occupied in the refresh waiting is 25ms.
Fig. 1 shows a schematic diagram of a display refresh process in the related art, referring to fig. 1, a display 203 performs refresh at a frequency of 60Hz (a period of 16.6 ms), a refresh time of the display 203 is 8.3ms, a rendering time of a processor 201 is 10ms, a sending frequency of a synchronization signal is equal to a refresh frequency of the display 203, that is, the synchronization signal is sent once every 16.6ms, both the rendering and rendering actions of the processor 201 need to be synchronized with the synchronization signal, and the rendering needs to be performed only by waiting for sending of the synchronization signal after the rendering is completed, so that it can be seen that a rendering frame rate of the processor 201 is a refresh frequency of the display 203, that is, 60fps.
In the example shown in fig. 1, the processor 201 has a fast drawing speed and a strong drawing capability, and can complete drawing within 10ms after one synchronization signal is output, but it is necessary to wait for the output of the next synchronization signal to send the drawing after the completion, that is, the drawing is sent after 16.6ms, so that 6.6ms is wasted in each drawing sending, and the drawing capability of the processor 201 is greatly limited.
Fig. 2 is a schematic diagram illustrating a display refresh process in the related art, and referring to fig. 2, a display 203 is refreshed at a frequency of 60Hz (a period of 16.6 ms), a refresh time of the display 203 is 8.3ms, a drawing time of a processor 201 is 17ms, a transmission frequency of a synchronization signal is equal to the refresh frequency of the display 203, that is, a synchronization signal is transmitted once every 16.6ms, both drawing and drawing actions of the processor 201 need to be synchronized with the synchronization signal, drawing can be performed only after the drawing is completed by waiting for the transmission of the synchronization signal, drawing is not completed, and drawing cannot be performed even if there is an output of the synchronization signal, in the example illustrated in fig. 2, the drawing time of the processor 201 is slightly longer than a time interval between two adjacent synchronization signals, that is, that the drawing action needs to be synchronized with the synchronization signal, that is, that the processor 201 needs to take about 33ms for drawing each time, and a drawing frame rate of the processor 201 is directly reduced to be half of the refresh frequency of the display 203, that is 30fps.
In the example shown in fig. 2, the drawing speed of the processor 201 is slightly slow, drawing is completed within 17ms after one sync signal is output, and drawing is not completed while the second sync signal is output, so drawing can only be sent when the third sync signal is output, that is, each drawing sending in the comparative example takes about 33ms, each drawing sending wastes about 16ms, drawing sending efficiency is low, and terminal drawing efficiency is poor.
The embodiment of the disclosure provides a method for refreshing a display, which can improve the terminal drawing efficiency.
Fig. 3 is a schematic diagram illustrating a display refresh process according to an embodiment of the present disclosure, referring to fig. 3, in this embodiment, a drawing time of the processor 201 is 10ms, and a refresh time of the display 203 is 8.3ms, so in this embodiment, as long as drawing is completed, the display 203 is refreshed, and a refresh state of the display 203 is in a refresh waiting state.
The present example performs the refresh of the display 203 according to the display refresh method described above: in response to the current refresh state of the display 203 being refresh-waiting, a synchronization signal is sent to the processor 201. That is, in this example, when the processor 201 finishes drawing, the display 203 is in a refresh waiting state, and the processor 201 can send the drawing, because the refresh time of the display 203 is less than the drawing time, in this example, the frame sending rate of the processor 201 only depends on the drawing speed of the processor 201, and the drawing can be sent when the drawing is finished without waiting, so that the frame sending rate of the processor 201 reaches at least 95fps, and compared with 60fps in the related art, the frame sending rate of this example is greatly increased.
Fig. 4 is a schematic diagram illustrating another display refresh process provided by the embodiment of the present disclosure, referring to fig. 4, in this example, the drawing time of the processor 201 is 17ms, and the refresh time of the display 203 is 8.3ms, so that as long as drawing is completed, the display 203 is refreshed, and the refresh state of the display 203 is in a refresh waiting state.
In the example shown in fig. 4, the display 203 is refreshed according to the display refreshing method described above: in response to the current refresh state of the display 203 being refresh waiting, a synchronization signal is sent to the processor 201.
Since the refresh time of the display 203 is also less than the drawing time in this example, the frame rate of the drawing of the processor 201 only depends on the drawing speed of the processor 201, the drawing can be taken when the drawing is completed without waiting, and even without wasting the waiting time of two refreshing times, therefore, when the drawing speed is more than twice of the refresh speed of the display 203, the frame rate of the drawing of the processor 201 can also reach at least 58fps, and compared with 30fps in the related art, the frame rate of the drawing of the embodiment of the present disclosure is greatly increased.
Fig. 5 shows another schematic diagram of a process of display refresh provided by the embodiment of the present disclosure, referring to fig. 5, in this example, a drawing time of the processor 201 is 5ms, a refresh time of the display 203 is 8.3ms, and the drawing time is less than the refresh time of the display 203, so in this example, when drawing is finished, the display 203 is in refresh.
The present example performs the refresh of the display 203 according to the display refresh method described above: and in response to the current refresh state of the display 203 being in the refresh state, sending a synchronization signal to the processor 201 after waiting for the display 203 to be refreshed. That is, in this example, when the processor 201 finishes drawing, the display 203 is in refresh, wait for the display 203 to finish refreshing, and enter a refresh waiting state after the display 203 finishes refreshing, the processor 201 can send the drawing, because the display 203 refresh time is longer than the drawing time, in this example, the drawing frame rate of the processor 201 only depends on the refresh rate of the display 203, and the drawing can be sent after the display 203 finishes refreshing each time, so that the drawing frame rate of the processor 201 reaches at least 120fps, and the drawing speed of the processor 201 can be exerted to the greatest extent on the premise of ensuring the display 203 to refresh stably.
Through comparison between the foregoing embodiment and the related art, it can be found that the technical solution provided by the embodiment of the present invention can maximize the drawing rate of the processor 201, thereby greatly improving the picture frame sending rate of the terminal product and providing better image display experience for the user.
Fig. 6 shows a flowchart of a display refresh method in an example provided by an embodiment of the present disclosure. In this example, the display refresh method includes: in response to receiving the drawing completion signal from the processor 201, sending a synchronization signal to the processor 201; receiving the image data transmitted by the processor 201 based on the synchronization signal; the display 203 is refreshed based on the received image data.
In this example, whether the display 203 sends the image is determined according to the drawing completion condition of the processor 201, and the limitation of the refresh frequency of the display 203 on the image sending frame rate is removed, so that the problems that the image sending frame rate and the drawing efficiency are severely limited due to the fact that the image sending can only be performed according to the refresh frequency of the display 203 in different drawing capability scenes are solved, and the waste of the drawing capability of the processor 201 is avoided.
Referring to fig. 7, fig. 7 shows a flowchart of a display refresh method in an alternative example provided by the embodiment of the present disclosure. The display refresh method comprises the following steps: in response to receiving a drawing complete signal from the processor 201, determining a current refresh state of the display 203; in response to the current refresh state of the display 203 being refresh waiting, sending a synchronization signal to the processor 201; receiving the image data transmitted by the processor 201 based on the synchronization signal; the display 203 is refreshed based on the received image data.
In this example, when the refresh state of the display 203 is in the refresh waiting state, once the drawing is completed, the drawn image data may be received and the drawing may be sent, and the time from the completion of the drawing to the completion of the refresh waiting of the display 203 is saved, thereby speeding up the drawing sending.
The method and the device realize the handshake operation of the processor 201 and the display 203, so that the dependence of the image sending frame rate on the fixed refreshing frequency of the display 203 is eliminated, the image sending frame rate depends on the refreshing time of the display 203 and the speed of completing the image drawing, and the drawing capability of the processor 201 is exerted to the maximum extent on the premise of ensuring the smoothness of the image.
Referring to fig. 8, fig. 8 is a flowchart illustrating a display refresh method in another alternative example provided by the embodiment of the present disclosure. The display refresh method comprises the following steps: in response to receiving a drawing complete signal from the processor 201, determining a current refresh state of the display 203; in response to that the current refresh state of the display 203 is in refresh, after waiting for the display 203 to complete refresh, sending a synchronization signal to the processor 201; receiving the image data transmitted by the processor 201 based on the synchronization signal; the display 203 is refreshed based on the received image data.
In this example, after the drawing is completed, once the display 203 is refreshed, the drawing can be sent directly without refreshing waiting, so that the time of refreshing all the time is saved, and the drawing sending speed is greatly improved. According to the embodiment, the fastest image sending frame rate can be ensured under the condition that refreshing of the display 203 is not conflicted, the terminal drawing efficiency is improved, and the user experience is improved.
In some embodiments, when the drawing time of the processor 201 is faster and is less than or equal to the refresh time of the display 203, for example, the refresh time of the display 203 is 8.3ms, and the drawing time is less than or equal to 8.3ms, the display 203 does not need to wait for refresh, and once the refresh is completed, the drawing is sent immediately, which greatly improves the drawing sending speed, so that the refresh frequency of the display 203, that is, the drawing sending frame rate, reaches 120fps, the drawing sending efficiency is very high, the image displayed by the display 203 has better definition and fluency, and the user experience is good.
In other embodiments, the display refresh method further includes: in response to receiving the drawing completion signal within a preset time period, sending a synchronization signal to the processor 201; in response to not receiving the drawing completion signal within the preset time period, a synchronization signal is sent to the processor 201 based on the preset time period being overtime. That is, the drawing completion signal is not received within the preset time period after the display 203 starts to refresh, and the display 203 is refreshed at the first frequency. The preset duration is a refresh period based on the first frequency refresh. Specifically, the first frequency is the lowest refresh frequency of the display 203, for example, the first frequency is 30Hz (the period is 33.3 ms), at this time, the preset time duration is 33.3ms, and when the drawing completion signal is not received within 33.3ms after the display 203 starts to refresh, the next round of refresh is not performed, and the next round of refresh is directly performed, and the input of the drawing completion signal is waited for in the next round of refresh. The technical scheme provided by this example can make the processor 201 not draw, and the display 203 displays static pictures, and ensures that the refresh frequency of the display 203 is not lower than the limit of the minimum refresh frequency, thereby ensuring smooth pictures, stable display screen, saving electric quantity and reducing energy consumption.
In the embodiment of the present disclosure, the display refresh method further includes: sending a synchronization signal based on the completion of the refresh of the display 203; based on sending the synchronization signal, the next refresh of the display 203 is started.
In any of the foregoing embodiments, the synchronization signal is used to instruct the processor 201 to send the image data of which drawing is completed, and at the same time, the synchronization signal instructs the processor 201 to start the next drawing.
In another aspect, the present invention provides a display driving apparatus 202, and the display driving apparatus 202 provided in this embodiment of the present application can implement the display refreshing method of the foregoing embodiment. The various embodiments of the display refresh method described above may be used to understand embodiments of the display driving apparatus 202 described below. The embodiments of the display driving apparatus 202 described below may also be used to understand the embodiments of the display refresh method described above.
In the embodiment of the present disclosure, the display driving apparatus 202 includes: a signal receiving module 100, configured to receive a drawing completion signal; a processing module 101 configured to determine, based on a refresh state of the display 203, transmission of a synchronization signal for instructing the processor 201 to transmit the image data; the execution module 102 is configured to refresh the display 203 based on the received image data. The display driving device 202 provided by the embodiment of the invention associates the image sending refresh of the display 203 with the refresh state and the drawing speed of the display 203 at the previous time, and relieves the fixed refresh frequency of the display 203, so that the display 203 can be suitable for processors 201 with different drawing capabilities, the adaptability is strong, the drawing capability of the processor 201 does not need to be confirmed in advance, the fixed refresh frequency does not need to be adjusted according to the drawing capability, and the drawing efficiency of the whole terminal platform is optimized.
The display driving apparatus 202 in this embodiment of the application further includes an image data receiving module, configured to receive image data sent by the processor 201, and after the image data receiving module receives the image data, the execution module 102 refreshes the display 203 so as to display the image data on the display 203.
In the display driving apparatus 202 in the embodiment of the present application, the refresh state of the display 203 can be directly obtained by the display driving apparatus 202. Optionally, a display 203 refresh state obtaining module is further included, and the display 203 refresh state can be obtained.
In the display driving apparatus 202 in the embodiment of the present application, the determining of the sending of the synchronization signal refers to determining whether the synchronization signal is sent at the time, if the synchronization signal is sent, the synchronization signal may instruct the processor 201 to send the image data, so that the display driving apparatus 202 receives the image data, if the synchronization signal is not sent, even if the processor 201 finishes drawing, the image data is not sent, until the display 203 finishes refreshing, and enters a refresh waiting state, the synchronization signal is not sent, so that it is ensured that the drawing sending actions of the previous and subsequent frames do not conflict.
Referring to fig. 9, another aspect of the present invention provides an electronic device, including: a processor 201 for performing drawing and sending a drawing completion signal after the drawing is completed; the display driving device 202 is connected with the processor 201 and used for determining the sending of the synchronous signal according to the refreshing state of the display 203 after receiving the drawing completion signal; wherein, the processor 201 sends the image data to the display driving device 202 based on receiving the synchronization signal; the display driving apparatus 202 refreshes the display 203 to display the image data on the display 203. In the electronic device provided by the embodiment of the present invention, the processors 201 with different drawing capabilities can be applied to the same display driving apparatus 202, so that the handshake operation between the processors 201 and the display 203 is simpler and more convenient.
In this embodiment, the processor 201 transmits a drawing completion signal based on the synchronization signal after the drawing is completed.
In some embodiments, the processor 201 includes: the image rendering device comprises a drawing sending module and a rendering module, wherein the rendering module is used for drawing, the drawing sending module is used for sending out image data which is drawn by the rendering module based on a synchronous signal, and optionally, the rendering module sends a drawing completion signal after drawing is completed. In some embodiments, based on the synchronization signal, the rendering module in the processor 201 sends the image data that is finished with the previous rendering, and the rendering module starts the rendering of the next image.
In some embodiments, the display driving apparatus 202 is further configured to send a synchronization signal to the processor 201 when the drawing completion signal is received and the refresh status of the display 203 is refresh waiting.
In some embodiments, the display driving apparatus 202 is further configured to wait for the refresh to be completed when the drawing completion signal is received and the refresh status of the display 203 is in the refresh state, and send the synchronization signal to the processor 201 after the refresh is completed.
In some embodiments, the display driving apparatus 202 is further configured to refresh the display 203 at a first frequency when the drawing completion signal is not received within a preset time period after the display 203 starts to refresh; the preset duration is a refresh period based on the first frequency refresh.
It is obvious to those skilled in the art that the "unit" or "module" in the embodiments of the present application may be software and/or hardware capable of performing a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), and the like, and thus, a detailed description thereof is omitted here.
Another aspect of the embodiments of the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program is used to implement the steps of the aforementioned display refresh method when executed by a computer. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Referring to fig. 10, fig. 10 shows a schematic structural diagram of an embodiment of the terminal of the present application, where the terminal 800 includes a memory 802, a central processor 801 and a computer program stored on the memory 802 and operable on the central processor 801, and when the central processor 801 executes the computer program, the steps of the method according to any of the embodiments described above are implemented. In the embodiment of the present application, the central processor 801 is a control center of a computer system, and may be a processor of a physical machine or a processor of a virtual machine.
The terminal 800 may further include a bus 803, and the central processor 801 and the memory 802 may be connected to each other via the bus 803, and the bus 803 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 803 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus. The mobile terminal 800 may also include an input-output device 804, where the input-output device 804 may include a display screen, such as a liquid crystal display screen.
The terminal in the embodiment of the present application includes, but is not limited to, any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a laptop computer, a vehicle-mounted computer, and a wearable electronic device.
The embodiment of the invention aims to protect a display refreshing method and a display refreshing device, and has the following effects:
by the technical scheme provided by the embodiment of the invention, the drawing capability of the processor can be furthest exerted, so that the picture sending frame rate of the terminal is improved, the image display effect of the display is optimized, the maximum computing capability of a platform is realized, and the best use experience is realized for a user.
In addition, in the technical scheme provided by the embodiment of the invention, the display driving device is adapted to the drawing speed of the processor, namely, the refresh frequency of the display depends on the drawing capability of the processor, so that different application programs do not need to determine the drawing capability of the processor in advance or match the display in advance in the using process, the dynamic frame rate adjustment is realized, the power consumption of the display module is greatly reduced, and the module runs at the lowest refresh frequency when no picture is updated.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (9)

1. A display refresh method, comprising:
in response to receiving a drawing completion signal from a processor, sending a synchronization signal to the processor, comprising: in response to receiving a drawing complete signal from a processor, determining a current refresh state of the display; sending the synchronization signal to the processor in response to the current refresh state of the display being refresh waiting; responding to the current refreshing state of the display to be in refreshing, and sending the synchronous signal to the processor after the display is refreshed;
receiving image data sent by the processor based on the synchronous signal;
refreshing the display based on the received image data.
2. The display refresh method of claim 1, wherein said sending a synchronization signal to a processor in response to receiving a drawing complete signal from the processor comprises:
and sending a synchronization signal to the processor in response to receiving the drawing completion signal within a preset time period, wherein the preset time period takes the start of refreshing of the display as a starting point.
3. The display refresh method of claim 2, further comprising:
and responding to the situation that the drawing completion signal is not received within the preset time length, and sending a synchronous signal to the processor based on the overtime of the preset time length.
4. The display refresh method of claim 2,
the preset duration is a preset maximum refresh period of the display.
5. An electronic device, comprising: a processor and a display driver, wherein,
the processor is used for drawing and sending a drawing completion signal;
the display driver, configured to receive the drawing completion signal and send a synchronization signal to the processor, includes: the display driving device is used for sending the synchronous signal to the processor under the condition that the drawing completion signal is received and the refreshing state of the display is refreshing waiting; the display driving device is also used for sending the synchronous signal after the display is refreshed under the condition that the drawing completion signal is received and the refreshing state of the display is refreshing;
the processor is further configured to send image data to the display driver based on the synchronization signal;
the display driver is further configured to refresh the display to display the image data on the display.
6. The electronic device of claim 5,
the display driving device is further configured to send the synchronization signal on the condition that the drawing completion signal is received within a preset time period from when the display starts to refresh.
7. The electronic device of claim 6,
the display driver is further configured to send the synchronization signal in response to expiration of the preset duration on a condition that the drawing completion signal is not received within the preset duration.
8. The electronic device of claim 6,
the preset duration is a preset maximum refresh period of the display.
9. A computer-readable medium, on which a computer program is stored which, when being executed by a computer, carries out the steps of the method according to any one of claims 1 to 4.
CN202110476113.9A 2021-04-29 2021-04-29 Display refreshing method and device Active CN113190315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110476113.9A CN113190315B (en) 2021-04-29 2021-04-29 Display refreshing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110476113.9A CN113190315B (en) 2021-04-29 2021-04-29 Display refreshing method and device

Publications (2)

Publication Number Publication Date
CN113190315A CN113190315A (en) 2021-07-30
CN113190315B true CN113190315B (en) 2022-11-25

Family

ID=76980680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110476113.9A Active CN113190315B (en) 2021-04-29 2021-04-29 Display refreshing method and device

Country Status (1)

Country Link
CN (1) CN113190315B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012162A (en) * 2019-03-25 2019-07-12 华为技术有限公司 A kind of ambient light data acquisition method and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004620B (en) * 2010-11-09 2012-05-09 广东威创视讯科技股份有限公司 Image updating method and device
CN104460934A (en) * 2013-09-13 2015-03-25 华为终端有限公司 Scheduling method and device for multi central processing units (CPU)
EP3503569A1 (en) * 2017-12-19 2019-06-26 Thomson Licensing Method of transmitting video frames from a video stream to a display and corresponding apparatus
KR102545078B1 (en) * 2018-10-01 2023-06-19 삼성전자주식회사 Display apparatus, method for controlling thereof and system
CN110018874B (en) * 2019-04-09 2021-07-13 Oppo广东移动通信有限公司 Vertical synchronization method, device, terminal and storage medium
CN110503708A (en) * 2019-07-03 2019-11-26 华为技术有限公司 A kind of image processing method and electronic equipment based on vertical synchronizing signal
CN110708587B (en) * 2019-09-29 2021-11-12 南阳柯丽尔科技有限公司 Window image refreshing frequency determining method and device, computer equipment and medium
CN112612562A (en) * 2020-12-14 2021-04-06 努比亚技术有限公司 Display refresh control method, terminal and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012162A (en) * 2019-03-25 2019-07-12 华为技术有限公司 A kind of ambient light data acquisition method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于任务队列的电子纸显示屏刷新策略研究;李庆诚等;《现代显示》;20110605(第06期);全文 *

Also Published As

Publication number Publication date
CN113190315A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN109992232B (en) Image updating method, device, terminal and storage medium
JP6069354B2 (en) Receiving apparatus, video refresh frequency control method, apparatus and system
CN110018874B (en) Vertical synchronization method, device, terminal and storage medium
US8687007B2 (en) Seamless display migration
WO2018161606A1 (en) Method, device and non-transitory computer-readable storage medium for controlling frame rate of mobile terminal, and mobile terminal thereof
KR20190117635A (en) Method and apparatus for improving image fluency
CN115631258B (en) Image processing method and electronic equipment
US10810927B2 (en) Electronic device and method for controlling display in electronic device
CN105786424B (en) The method that the quick split screen display available of the single-screen of embedded system solves
US20140184629A1 (en) Method and apparatus for synchronizing a lower bandwidth graphics processor with a higher bandwidth display using framelock signals
US20140184611A1 (en) Method and apparatus for sending partial frame updates rendered in a graphics processor to a display using framelock signals
CN104603867A (en) Memory control device, mobile terminal, memory control program, and computer-readable recording medium
WO2023061096A1 (en) Method and apparatus for adjusting refresh frame rate of display screen, and processor, chip and terminal
CN110750966B (en) Annotating processing method, annotating processing device, annotating processing equipment and storage medium
CN103260224A (en) Mobile terminal and method for achieving refreshing of charging animation during charging
CN113190315B (en) Display refreshing method and device
CN112863419A (en) Display device driving method, display device, and computer-readable storage medium
US11881141B2 (en) Dynamic refresh rate switching
CA2711874C (en) Aligning animation state update and frame composition
US11587531B2 (en) Technologies for power efficient display synchronization
EP4020129A1 (en) Technologies for self-refresh display power saving
CN114153415A (en) Image frame rate control method and related product
CN115841804B (en) Resolution real-time switching control method and device
CN115831074B (en) Frame rate conversion method and device based on single buffer mode
CN103853305A (en) Power management method and electronic device

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
TR01 Transfer of patent right

Effective date of registration: 20231113

Address after: 243000 floor 7, building B2, huami Global Innovation Center, No. 900, Wangjiang West Road, high tech Zone, Hefei, China (Anhui) pilot Free Trade Zone, Hefei, Anhui

Patentee after: Anhui Huami Information Technology Co.,Ltd.

Address before: 230088 No.01, 7th floor, building B2, Zhongan chuanggu Science Park, no.900, Wangjiang West Road, high tech Zone, Hefei City, Anhui Province

Patentee before: Anhui huami health care Co.,Ltd.

TR01 Transfer of patent right