Drawing delay optimization method and device, display device and readable storage medium
By generating and inserting target touch events into the display device, the problem of high drawing latency is solved, the drawing feel is improved, hardware requirements are reduced, and a smoother drawing experience is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
- Filing Date
- 2022-12-28
- Publication Date
- 2026-06-19
AI Technical Summary
Existing technologies have high latency in drawing on display devices, which affects user experience, and have high hardware requirements, making it difficult to effectively reduce latency through software optimization.
By acquiring a set of touch events and a set of touch times, and combining them with the sampling time of the display device, a target touch event is generated and inserted between adjacent touch events, thereby improving the touch sampling rate and reducing the display response time.
It significantly reduces drawing latency, improves drawing feel, reduces reliance on hardware, and increases drawing efficiency.
Smart Images

Figure CN115953505B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent display device technology, and in particular to a method, apparatus, display device, and computer-readable storage medium for optimizing drawing delay. Background Technology
[0002] With the upgrading and development of various display devices such as smartphones, smart TVs, and tablets, the functions and programs applied to these devices are becoming increasingly diverse, bringing great convenience to people's lives and production. On the touchscreens of display devices, applications such as electronic whiteboards for drawing (writing) are widely used. However, if users write too quickly during the drawing and writing process, the time difference (latency) between the pen and the actual display results in a subjective feeling that the writing is "unresponsive," greatly impacting the user experience of drawing and writing on display devices.
[0003] Current technical solutions typically involve optimizing the drawing application's code. This involves drawing after receiving touch events from the system, minimizing time-consuming operations during the drawing process to reduce overall drawing time and improve efficiency. However, this optimization method requires high-performance hardware from the display device, placing significant demands on it. Furthermore, the actual drawing latency remains relatively high, making it difficult to meet user expectations. Summary of the Invention
[0004] The main objective of this invention is to provide a method, apparatus, display device, and computer-readable storage medium for optimizing drawing latency, aiming to solve the technical problem of high latency during drawing and writing by users through display devices.
[0005] To achieve the above objectives, the present invention provides a method for optimizing drawing delay, which is applied to a display device; the method includes the following steps:
[0006] Obtain the current set of touch events and determine the set of touch times corresponding to the set of touch events;
[0007] Obtain the sampling time of the display device, and generate a target touch event based on the sampling time and the touch time set;
[0008] Based on the target touch event, reduce the drawing display response time between adjacent touch events.
[0009] Optionally, the set of touch events includes a first touch event and a second touch event that occur consecutively; the set of touch times includes a first touch time corresponding to the first touch event and a second touch time corresponding to the second touch event; wherein the second touch time is later than the first touch time.
[0010] Optionally, the step of generating the target touch event based on the sampling time and the set of touch times includes:
[0011] Determine the touch time difference between the second touch time and the first touch time, and determine the sampling time difference between the second touch time and the sampling time;
[0012] A target touch event is generated based on the touch time difference, the touch sampling time difference, and the first touch time.
[0013] Optionally, the step of generating a target touch event based on the touch time difference, the touch sampling time difference, and the first touch time includes:
[0014] Determine the ratio of the sampling time difference to the touch time difference;
[0015] Determine the product between the touch time difference and the correction value of the ratio;
[0016] The sum between the product value and the first touch time is determined, and the sum is used as the target occurrence time of the target touch event to generate the target touch event.
[0017] Optionally, the step of obtaining the current set of touch events and determining the set of touch times corresponding to the set of touch events includes:
[0018] Obtain the current set of touch events, and determine whether the user's behavior is drawing based on each consecutive touch event in the set of touch events;
[0019] If the user behavior is the drawing behavior, then determine the touch time set corresponding to the touch event set.
[0020] Optionally, the step of obtaining the sampling time of the display device includes:
[0021] Obtain the current screen refresh time of the display device;
[0022] The sampling time of the display device is determined based on the screen refresh time.
[0023] Optionally, the step of reducing the drawing display response time between adjacent touch events based on the target touch event includes:
[0024] The target touch event is inserted between adjacent touch events to reduce the drawing display response time between adjacent touch events.
[0025] Furthermore, to achieve the above objectives, the present invention also provides a painting delay optimization device, the painting delay optimization device comprising:
[0026] A touch sensing module is used to acquire the current set of touch events and determine the set of touch times corresponding to the set of touch events.
[0027] The touch creation module is used to obtain the sampling time of the display device and generate a target touch event based on the sampling time and the set of touch times;
[0028] The drawing response module is used to reduce the drawing display response time between adjacent touch events based on the target touch event.
[0029] In addition, to achieve the above objectives, the present invention also provides a display device, including a processor, a storage unit, and a drawing delay optimization program stored on the storage unit and executable by the processor, wherein when the drawing delay optimization program is executed by the processor, the steps of the drawing delay optimization method as described above are implemented.
[0030] The present invention also provides a computer-readable storage medium storing a drawing delay optimization program, wherein when the drawing delay optimization program is executed by a processor, it implements the steps of the drawing delay optimization method as described above.
[0031] The drawing latency optimization method in this invention involves obtaining the current set of touch events and determining the set of touch times corresponding to those events; obtaining the sampling time of the display device and generating a target touch event based on the sampling time and the set of touch times; and reducing the drawing display response time between adjacent touch events based on the target touch event. This invention solves the technical problem of high latency during drawing and writing using a display device.
[0032] This invention primarily addresses the time difference between the touch sampling time of the display device's touchscreen and the sampling time of the display device system. By acquiring the current, i.e., the latest set of touch events consisting of multiple touch events and the touch time corresponding to each touch event, and obtaining the sampling time of the display device (the sampling time of the display device system), a new target touch event is automatically created based on the sampling time and the set of touch times. This new target touch event is then interpolated between any two adjacent touch events. When the display device's drawing application receives the new target touch event, it executes the drawing function according to the user's touch behavior. At this point, compared to events under a fixed touch sampling, there are one or more additional events. From a system perspective, this is equivalent to increasing the touch sampling rate of the touchscreen hardware, making drawing more responsive and smooth, and significantly reducing the latency for users to draw and write on the display device. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of the hardware operating environment of the display device involved in the embodiments of the present invention;
[0034] Figure 2 This is a flowchart illustrating the first embodiment of the drawing delay optimization method of the present invention;
[0035] Figure 3 This is a detailed flowchart of step S20 in an embodiment of the painting delay optimization method of the present invention;
[0036] Figure 4 This is a detailed flowchart illustrating step S22 of an embodiment of the drawing delay optimization method of the present invention;
[0037] Figure 5 This is a detailed flowchart illustrating step S10 of an embodiment of the drawing delay optimization method of the present invention;
[0038] Figure 6 This is a schematic diagram of the overall application process of the painting delay optimization method of the present invention;
[0039] Figure 7 This is a schematic diagram of the frame structure of the drawing delay optimization device of the present invention.
[0040] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0041] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0042] This invention provides a display device, which can be a smart TV, smartphone, tablet computer, conference display panel, or other display devices, and is not limited thereto.
[0043] like Figure 1 As shown, Figure 1 This is a schematic diagram of the hardware operating environment of the display device involved in the embodiments of the present invention.
[0044] like Figure 1 As shown, the display device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a storage unit 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display or an input unit such as a control panel; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The storage unit 1005 may be a high-speed RAM storage unit or a stable storage unit (non-volatile memory), such as a disk storage unit. The storage unit 1005 may also optionally be a storage device independent of the aforementioned processor 1001. The storage unit 1005, as a computer storage medium, may include a drawing delay optimization program.
[0045] Those skilled in the art will understand that Figure 1 The hardware structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0046] Continue to refer to Figure 1 , Figure 1 The storage unit 1005, which is a computer-readable storage medium, may include an operating system, a user interface module, a network communication module, and a drawing delay optimization program.
[0047] exist Figure 1 In this module, the network communication module is mainly used to connect to the server and communicate with it for data; while the processor 1001 can call the drawing delay optimization program stored in the storage unit 1005 and perform the following operations:
[0048] Obtain the current set of touch events and determine the set of touch times corresponding to the set of touch events;
[0049] Obtain the sampling time of the display device, and generate a target touch event based on the sampling time and the touch time set;
[0050] Based on the target touch event, reduce the drawing display response time between adjacent touch events.
[0051] Furthermore, the processor 1001 can call the drawing delay optimization program stored in the storage unit 1005 and also perform the following operations:
[0052] Determine the touch time difference between the second touch time and the first touch time, and determine the sampling time difference between the second touch time and the sampling time;
[0053] A target touch event is generated based on the touch time difference, the touch sampling time difference, and the first touch time.
[0054] Furthermore, the processor 1001 can call the drawing delay optimization program stored in the storage unit 1005 and also perform the following operations:
[0055] Determine the ratio of the sampling time difference to the touch time difference;
[0056] Determine the product between the touch time difference and the correction value of the ratio;
[0057] The sum between the product value and the first touch time is determined, and the sum is used as the target occurrence time of the target touch event to generate the target touch event.
[0058] Furthermore, the processor 1001 can call the drawing delay optimization program stored in the storage unit 1005 and also perform the following operations:
[0059] Obtain the current set of touch events, and determine whether the user's behavior is drawing based on each consecutive touch event in the set of touch events;
[0060] If the user behavior is the drawing behavior, then determine the touch time set corresponding to the touch event set.
[0061] Furthermore, the processor 1001 can call the drawing delay optimization program stored in the storage unit 1005 and also perform the following operations:
[0062] Obtain the current screen refresh time of the display device;
[0063] The sampling time of the display device is determined based on the screen refresh time.
[0064] Furthermore, the processor 1001 can call the drawing delay optimization program stored in the storage unit 1005 and also perform the following operations:
[0065] The target touch event is inserted between adjacent touch events to reduce the drawing display response time between adjacent touch events.
[0066] Based on the hardware structure of the display device described above, various embodiments of the painting delay optimization method of the present invention are proposed.
[0067] To facilitate understanding of the various embodiments of the present invention, the embodiments of the technical solution of the present invention are briefly summarized in terms of the overall solution:
[0068] This invention mainly improves the touch sampling rate at the system level by performing linear interpolation between two adjacent touch events generated by the user's touch during the process of drawing and writing using a drawing application on a display device. This results in an additional touch event compared to a fixed touch sampling, making the drawing more responsive and reducing the drawing latency.
[0069] This invention provides a method for optimizing drawing delay.
[0070] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the drawing delay optimization method of the present invention. In the first embodiment of the present invention, the drawing delay optimization method is applied to a display device, and the method includes the following steps:
[0071] Step S10: Obtain the current set of touch events and determine the set of touch times corresponding to the set of touch events;
[0072] This embodiment applies to a display device, which can be a smart TV, smartphone, tablet computer, personal computer, or other display device with a touch screen. There are no restrictions on this. In addition, the system of the display device can be Android or other operating systems.
[0073] Different display devices have different touch sampling rates for their touchscreens. Simply put, the touch sampling rate is the number of times the screen senses a finger or stylus touch per second. The touch sampling rate is primarily limited by the touchscreen's hardware specifications and is generally a fixed value, i.e., a fixed touch sampling rate. In some existing technologies, increasing the touch sampling rate can reduce latency for drawing and writing; however, this approach involves high hardware costs, making it uneconomical and hindering widespread adoption.
[0074] This embodiment is based on the original fixed touch sampling rate of the display device's touch screen. When the display device detects that the user has opened a drawing program, it can obtain the current set of touch events according to the fixed touch sampling rate. Specifically, when the display device detects that the user has opened a drawing program, it can determine the currently opened application and match the currently opened application with a preset drawing application library. If they match, it is determined that the user has opened a drawing program. Alternatively, it can first determine the application type of the currently opened application. If the application type is office or artistic creation, it can also be determined that the user has opened a drawing program. It can also be determined directly by reading the name of the currently opened application. There are no restrictions here.
[0075] Touch events refer to various touch operations performed by users on the touchscreen using fingers or styluses. Acquiring the current set of touch events means capturing all touch events within a preset time period preceding and adjacent to the current time point. The preset time period can be set according to actual needs and is not limited here. The number of touch events is also not strictly limited, but at least two touch events must be captured. For example, within the most recent 10ms, the first touch event is captured at 0ms, and the second touch event is captured at 10ms. The number of touch events that can be captured within a certain time depends on the touch sampling rate mentioned above.
[0076] Specifically, determining the touch time set corresponding to the touch event set refers to the touch time set composed of the touch times corresponding to each touch event in the touch event set.
[0077] In one embodiment, the set of touch events includes a first touch event and a second touch event that occur consecutively; the set of touch times includes a first touch time corresponding to the first touch event and a second touch time corresponding to the second touch event; wherein the second touch time is later than the first touch time.
[0078] In this embodiment, two touch events need to be acquired. At the current time point, the latest consecutively occurring first touch event and second touch event are acquired, and the first touch time corresponding to the first touch event and the second touch time corresponding to the second touch event are acquired. The second touch time is later than the first touch time, that is, the second touch event occurs after the first touch event.
[0079] The purpose of this embodiment is to determine the time difference between the two latest touch events and their corresponding time points by acquiring them in real time. This allows for the accurate interleaving of new target touch events between adjacent touch events, thereby accelerating the response of the drawing display and making the drawing more responsive.
[0080] Step S20: Obtain the sampling time of the display device, and generate a target touch event based on the sampling time and the set of touch times;
[0081] The relationship between sampling time and the first touch time and the second touch time, that is, the relationship between each sampling time and the touch time of the two adjacent corresponding touch events, is: first touch time < sampling time < second touch time.
[0082] Due to differences in display device systems, the sampling time of the display device can be obtained directly or indirectly. This sampling time is created by the display device system and is generally a fixed value. This sampling time is different from the touch sampling rate mentioned above, and also different from the screen refresh rate of the display device's monitor. It should be noted that the display device's monitor refreshes according to the screen refresh rate, and each refresh is called a vertical synchronization event. The sampling time will always be a few milliseconds later than such vertical synchronization events. This is the main reason for the "unresponsive" rendering at the system level.
[0083] Based on the obtained sampling time and touch time set, a target touch event can be generated by linear interpolation using the midpoint modifier between two adjacent touch events. This target touch event is not directly generated by the user touching the screen, but is automatically generated by the system. The purpose is to make the touch events received by the drawing application more efficient, thereby making the drawing display response faster. This results in a more responsive drawing experience subjectively, and the drawing latency problem is significantly improved.
[0084] In one embodiment, step S20, the step of obtaining the sampling time of the display device, includes:
[0085] Obtain the current screen refresh time of the display device;
[0086] The sampling time of the display device is determined based on the screen refresh time.
[0087] In this embodiment, the operating system of the display device is Android. Based on the characteristics of Android, the sampling time of the display device can be obtained indirectly. Specifically, the current screen refresh time of the display device can be read first, that is, the time corresponding to the latest screen refresh. Since the sampling time of Android is always 5 milliseconds later than the screen refresh time, the sampling time of the Android display device can be determined by simply adding 5 milliseconds to the screen refresh time.
[0088] Please refer to Figure 3 In one embodiment, step S20, the step of generating a target touch event based on the sampling time and the set of touch times, includes:
[0089] Step S21: Determine the touch time difference between the second touch time and the first touch time, and determine the sampling time difference between the second touch time and the sampling time;
[0090] In this embodiment, the touch time difference between the two is obtained by subtracting the first touch time from the second touch time, and the sampling time difference between the second touch time and the sampling time is obtained by subtracting the sampling time from the second touch time.
[0091] Step S22: Generate a target touch event based on the touch time difference, the touch sampling time difference, and the first touch time.
[0092] The interpolation parameter between the two, i.e. the ratio between them, can be determined based on the touch time difference and the sampling time difference. Then, a linear interpolation is determined based on the interpolation parameter and the first touch time, and this linear interpolation is interpolated between any two adjacent touch events. At the same time, the target touch event is generated accordingly to complete the drawing operation performed by the user.
[0093] The purpose of this embodiment is to determine the touch time difference between two consecutive touch events and the sampling time difference between the second touch time and the sampling time, so as to reasonably and accurately interpolate the created target touch events between any two adjacent touch events, improve the accuracy and reliability of interpolation, and avoid invalid interpolation.
[0094] Please refer to Figure 4 In one embodiment, step S22 includes:
[0095] Step S220: Determine the ratio between the sampling time difference and the touch time difference;
[0096] Determine the ratio Ts / Tt between the sampling time difference Ts and the touch time difference Tt.
[0097] Step S221: Determine the product value between the touch time difference and the correction value of the ratio;
[0098] A correction coefficient A can be preset, which can be set according to actual needs. The correction value of the ratio is then A×(Ts / Tt), and the product of the touch time difference Tt and the correction value A×(Ts / Tt) is determined to be A×Ts. Alternatively, a correction amount B can be preset, in which case the correction value of the ratio is Ts / Tt+B, and the product of the touch time difference Tt and the correction value Ts / Tt+B is determined to be Ts+B×Tt.
[0099] Step S222: Determine the sum between the product value and the first touch time, and use the sum as the target occurrence time of the target touch event to generate the target touch event.
[0100] The sum of the product value A×Ts or Ts+B×Tt and the first touch time Ft is determined to be A×Ts+Ft or Ts+B×Tt+Ft. It should be noted that this sum ensures that the target occurrence time corresponding to the target touch event, that is, the time reported to the system and the drawing application, is between two adjacent touch events. This enables linear interpolation between any two consecutive touch events collected during the user's drawing process, thereby speeding up the drawing display response, achieving on-demand display, and reducing drawing latency.
[0101] Step S30: Based on the target touch event, reduce the drawing display response time between adjacent touch events.
[0102] While creating the target touch event, it is also necessary to insert the target touch event between each current and subsequent adjacent touch event, so as to reduce the drawing and writing latency in real time, that is, reduce the drawing display response time between adjacent touch events.
[0103] Specifically, step S30 includes:
[0104] The target touch event is inserted between adjacent touch events to reduce the drawing display response time between adjacent touch events.
[0105] This invention primarily addresses the time difference between the touch sampling time of the display device's touchscreen and the sampling time of the display device system. By acquiring the current, i.e., the latest set of touch events consisting of multiple touch events and the touch time corresponding to each touch event, and obtaining the sampling time of the display device (the sampling time of the display device system), a new target touch event is automatically created based on the sampling time and the set of touch times. This new target touch event is then interpolated between any two adjacent touch events. When the display device's drawing application receives the new target touch event, it executes the drawing function according to the user's touch behavior. At this point, compared to events under a fixed touch sampling, there are one or more additional events. From a system perspective, this is equivalent to increasing the touch sampling rate of the touchscreen hardware, making drawing more responsive and smooth, and significantly reducing the latency for users to draw and write on the display device.
[0106] Please refer to Figure 5 Based on the above embodiments, in one embodiment, step S10 includes:
[0107] Step S11: Obtain the current set of touch events, and determine whether the user's behavior is a drawing behavior based on each consecutive touch event in the set of touch events;
[0108] The current set of touch events includes multiple touch events acquired within a recent period. Each touch event corresponds to a touch duration. The user's behavioral intent can be determined based on the distribution pattern of the consecutive touch durations of these events, thus identifying whether the user is engaging in drawing, browsing the web, watching a movie, or playing a game. Specifically, to determine if a user's behavior is drawing: it is determined whether the consecutive touch durations corresponding to each consecutive touch event are consistent with the consecutive touch sampling times. If they are consistent and the number of touch sampling times reaches a preset number (which can be set according to actual needs, such as 20, but is not limited here), then the user's behavior can be considered drawing.
[0109] Step S12: If the user behavior is the drawing behavior, then determine the touch time set corresponding to the touch event set.
[0110] If the user's behavior is drawing, the combination of each obtained touch time will be used as the touch time set corresponding to the touch event set, and then steps S10 to S30 will be executed.
[0111] Through this embodiment of the present invention, the drawing and writing behavior performed by the user on the display device can be determined more accurately, thereby avoiding the misjudgment of drawing behavior that could lead to line interpolation affecting the experience of other functions of the display device.
[0112] To further understand the above embodiments and main technical solutions of the present invention, please refer to... Figure 6 , Figure 6 This is a schematic diagram of the overall application process of the painting delay optimization method of the present invention. For example... Figure 6 As shown:
[0113] Obtain the times of two touch events, that is, obtain the first touch time corresponding to the first touch event and the second touch time corresponding to the second touch event;
[0114] Calculating the touch time difference means calculating the difference between the first touch time and the second touch time;
[0115] The time difference between sampling time and touch time is calculated as the sampling-touch time difference.
[0116] Create an interpolation parameter alpha. This interpolation parameter can be the ratio of the touch time difference to the touch event difference, or it can be other parameters. However, it must be ensured that the target touch event created later is between any two adjacent touch events, that is, the corresponding target occurrence time is between the first touch time and the second touch time.
[0117] Calculate linear interpolation based on the interpolation parameters;
[0118] Determine whether the linear interpolation occurs between the two touch times;
[0119] If not, obtain the next touch time, use the next touch time as the first touch time, and calculate the touch time difference repeatedly.
[0120] If so, then generate a touch event (target touch event);
[0121] The drawing application draws based on the target touch event and various touch events generated by the user's touch.
[0122] In addition, refer to Figure 7 , Figure 7 This is a schematic diagram of the frame structure of the painting delay optimization device of the present invention. The present invention also proposes a painting delay optimization device, which includes:
[0123] Touch sensing module A10 is used to acquire the current set of touch events and determine the set of touch times corresponding to the set of touch events;
[0124] Touch creation module A20 is used to acquire the sampling time of the display device and generate a target touch event based on the sampling time and the set of touch times.
[0125] The drawing response module A30 is used to reduce the drawing display response time between adjacent touch events based on the target touch event.
[0126] Optionally, the touch creation module A20 is further configured to:
[0127] Determine the touch time difference between the second touch time and the first touch time, and determine the sampling time difference between the second touch time and the sampling time;
[0128] A target touch event is generated based on the touch time difference, the touch sampling time difference, and the first touch time.
[0129] Optionally, the touch creation module A20 is further configured to:
[0130] Determine the ratio of the sampling time difference to the touch time difference;
[0131] Determine the product between the touch time difference and the correction value of the ratio;
[0132] The sum between the product value and the first touch time is determined, and the sum is used as the target occurrence time of the target touch event to generate the target touch event.
[0133] Optionally, the touch sensing module A10 is further configured to:
[0134] Obtain the current set of touch events, and determine whether the user's behavior is drawing based on each consecutive touch event in the set of touch events;
[0135] If the user behavior is the drawing behavior, then determine the touch time set corresponding to the touch event set.
[0136] Optionally, the touch creation module A20 is further configured to:
[0137] Obtain the current screen refresh time of the display device;
[0138] The sampling time of the display device is determined based on the screen refresh time.
[0139] Optionally, the drawing response module A30 is further configured to:
[0140] The target touch event is inserted between adjacent touch events to reduce the drawing display response time between adjacent touch events.
[0141] The specific implementation of the painting delay optimization device of the present invention is basically the same as the embodiments of the painting delay optimization method described above, and will not be repeated here.
[0142] Furthermore, the present invention also provides a computer-readable storage medium. The computer-readable storage medium of the present invention stores a drawing delay optimization program, wherein, when executed by a processor, the drawing delay optimization program implements the steps of the drawing delay optimization method as described above.
[0143] The method implemented when the drawing delay optimization program is executed can be referred to in various embodiments of the drawing delay optimization method of the present invention, and will not be repeated here.
[0144] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0145] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0146] These computer program instructions may also be stored in a computer-readable storage unit that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage unit produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0147] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0148] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0149] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0150] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. A method for optimizing painting delay, characterized in that, The painting delay optimization method is applied to a display device; the method includes the following steps: Obtain the current set of touch events and determine the set of touch times corresponding to the set of touch events. The set of touch events includes a first touch event and a second touch event that occur consecutively. The set of touch times includes a first touch time corresponding to the first touch event and a second touch time corresponding to the second touch event. The second touch time is later than the first touch time. The sampling time of the display device is obtained, the touch time difference between the second touch time and the first touch time is determined, and the sampling time difference between the second touch time and the sampling time is determined; A target touch event is generated based on the touch time difference, the touch sampling time difference, and the first touch time. The target touch event is inserted between adjacent touch events to reduce the drawing display response time between adjacent touch events.
2. The painting delay optimization method of claim 1, wherein, The step of generating a target touch event based on the touch time difference, the touch sampling time difference, and the first touch time includes: Determine the ratio of the sampling time difference to the touch time difference; Determine the product between the touch time difference and the correction value of the ratio; The sum between the product value and the first touch time is determined, and the sum is used as the target occurrence time of the target touch event to generate the target touch event.
3. The painting delay optimization method as described in claim 1, characterized in that, The steps of obtaining the current set of touch events and determining the set of touch times corresponding to the set of touch events include: Obtain the current set of touch events, and determine whether the user's behavior is drawing based on each consecutive touch event in the set of touch events; If the user behavior is the drawing behavior, then determine the touch time set corresponding to the touch event set.
4. The painting delay optimization method as described in claim 1, characterized in that, The step of obtaining the sampling time of the display device includes: Obtain the current screen refresh time of the display device; The sampling time of the display device is determined based on the screen refresh time.
5. A painting delay optimization device, characterized in that, The painting delay optimization device includes: A touch sensing module is used to acquire a current set of touch events and determine a set of touch times corresponding to the set of touch events. The set of touch events includes a first touch event and a second touch event that occur consecutively. The set of touch times includes a first touch time corresponding to the first touch event and a second touch time corresponding to the second touch event. The second touch time is later than the first touch time. A touch creation module is used to acquire the sampling time of the display device, generate a target touch event based on the sampling time and the set of touch times, and the touch creation module is also used to determine the touch time difference between the second touch time and the first touch time, and to determine the touch sampling time difference between the second touch time and the sampling time; and generate a target touch event based on the touch time difference, the touch sampling time difference and the first touch time. The drawing response module is used to insert the target touch event between adjacent touch events to reduce the drawing display response time between adjacent touch events.
6. A display device, characterized in that, The display device includes a processor, a storage unit, and a drawing delay optimization program stored on the storage unit that can be executed by the processor, wherein when the drawing delay optimization program is executed by the processor, it implements the steps of the drawing delay optimization method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a painting delay optimization program, wherein when the painting delay optimization program is executed by a processor, it implements the steps of the painting delay optimization method as described in any one of claims 1 to 4.