Touch delay optimization method, device, equipment, storage medium and program product

By monitoring the writing and reading frequency of touch data and adjusting the storage queue length to optimize touch delay, the storage and reading mismatch problem of the touch screen at low reporting rate is solved, thereby improving the user experience.

CN119356541BActive Publication Date: 2025-10-10HEFEI BOE OPTOELECTRONIC TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310923005.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-24
Publication Date
2025-10-10
Estimated Expiration
2043-07-24

AI Technical Summary

Technical Problem

In the case of low reporting rate, the storage rate and reading rate of the touch screen do not match, resulting in touch delay and affecting user experience.

Method used

By monitoring the writing frequency and reading frequency of touch data, the length of the storage queue is reduced so that the interval between the writing time and the reading time is less than a set threshold, and the storage queue is adjusted to write and read touch data.

Benefits of technology

Optimized touch latency to improve user experience and ensure that the time difference between read touch data and the latest written touch data is within an acceptable range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356541B_ABST
    Figure CN119356541B_ABST
Patent Text Reader

Abstract

The application provides a touch delay optimization method, device, equipment, storage medium and program product. The application monitors the writing frequency and reading frequency of touch data in real time. When it is found that the two frequencies are inconsistent and the writing frequency is greater than the reading frequency, the storage position of the touch data is controlled by reducing the length of the storage queue. When the touch data is written, it will start from the beginning of the queue and be written again because the storage position of the queue is used up, so as to cover the touch data with earlier time in the original storage position. Finally, when reading, the data with earlier time will be covered and the data with newer time will be read, so as to prevent the asynchronous phenomenon, optimize the delay, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal transmission technology, and in particular to a touch delay optimization method, device, equipment, storage medium, and program product. Background Art

[0002] With the advancement of technology and the increasing demand for products, the current demand for touch screens is getting higher and higher. In order to ensure the accuracy of touch effects and the smoothness of strokes, the reporting rate of touch screens is generally required to be greater than or equal to 100Hz, and the conventional setting is 120Hz.

[0003] However, when the processing system is in a low reporting rate usage scenario, the data reading rate may be low, resulting in a mismatch with the current storage rate, causing the displayed touch track or cursor to be out of sync with the touch area, causing touch delay, and thus having a certain impact on the user experience. Summary of the Invention

[0004] In view of this, the present application proposes a touch delay optimization method, apparatus, device, storage medium and program product to solve or partially solve the above problems.

[0005] Based on the above objectives, the present application provides a touch delay optimization method, including:

[0006] Acquire a writing frequency and a reading frequency of touch data, and determine whether the writing frequency is consistent with the reading frequency;

[0007] In response to the write frequency being greater than the read frequency, reducing a length of the storage queue of the touch data so that, when the touch data is read according to the adjusted storage queue, an interval between a write time of the read touch data and a write time of the most recently written touch data is less than a set threshold;

[0008] The touch data is written and read through the adjusted storage queue.

[0009] In some implementations, reducing the length of the storage queue of the touch data includes:

[0010] The amount of the touch data that can be stored in the storage queue is limited, so that each time the touch data is read according to the reading frequency, the touch data in the storage queue is updated at least once.

[0011] In some implementations, limiting the amount of touch data that can be stored in the storage queue includes:

[0012] The number of touch data stored in the storage queue is limited to one or two.

[0013] In some implementations, writing and reading the touch data through the adjusted storage queue includes:

[0014] Writing the touch data according to the adjusted queue order of the storage queue;

[0015] When the touch data is written once to the last storage position of the adjusted storage queue, data is written again starting from the first storage position of the adjusted storage queue to perform overwriting data writing in sequence.

[0016] In some embodiments, determining whether the write frequency is consistent with the read frequency includes:

[0017] determining whether a difference between the write frequency and the read frequency is within a set range;

[0018] In response to the difference being within a set range, it is confirmed that the write frequency is consistent with the read frequency.

[0019] In some embodiments, after determining whether the difference between the write frequency and the read frequency is within a set range, the method further includes:

[0020] In response to the difference being outside a set range, a determination is made as to whether the write frequency is greater than the read frequency.

[0021] In some embodiments, determining whether the write frequency is consistent with the read frequency includes:

[0022] Determine standard frequency values ​​corresponding to the write frequency and the read frequency, and determine whether the write frequency is consistent with the read frequency based on whether the standard frequency values ​​of the two are the same.

[0023] In some embodiments, the set threshold is at least the interval time between two adjacent readings corresponding to the reading frequency.

[0024] Based on the same concept, the present application also provides a touch delay optimization device, comprising:

[0025] an acquisition module, configured to acquire a writing frequency and a reading frequency of touch data, and determine whether the writing frequency is consistent with the reading frequency;

[0026] a processing module, configured to, in response to the writing frequency being greater than the reading frequency, reduce a length of a storage queue for the touch data, so that when the touch data is read according to the adjusted storage queue, an interval between a writing time of the read touch data and a writing time of the most recently written touch data is less than a set threshold;

[0027] The execution module is configured to write and read the touch data through the adjusted storage queue.

[0028] Based on the same concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above methods when executing the program.

[0029] Based on the same concept, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement any of the methods described above.

[0030] Based on the same concept, the present application also provides a computer program product, comprising computer program instructions, which, when executed on a computer, enable the computer to execute any of the above methods.

[0031] As can be seen from the above, the present application provides a touch latency optimization method, apparatus, device, storage medium, and program product, including: obtaining a write frequency and a read frequency of touch data, determining whether the write frequency is consistent with the read frequency; in response to the write frequency being greater than the read frequency, reducing the length of a storage queue for touch data so that when reading touch data according to the adjusted storage queue, the interval between the write time of the read touch data and the write time of the most recently written touch data is less than a set threshold; and writing and reading touch data using the adjusted storage queue. The present application monitors the write frequency and the read frequency of touch data in real time. When it is found that the two frequencies are inconsistent and the write frequency is greater than the read frequency, the storage location of the touch data is controlled by reducing the length of the storage queue. When the write frequency of touch data is exhausted, the touch data is rewritten from the beginning of the queue, thereby overwriting the older touch data in the original storage location. When the older data is finally read, the touch data is read from the newer data because the older data is overwritten. This prevents asynchrony, optimizes latency, and improves user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0033] Figure 1 A schematic diagram of storing and reading touch point coordinate data under normal circumstances provided by an embodiment of the present application;

[0034] Figure 2 A schematic diagram of a data signal waveform for storing and reading touch point coordinate data under normal circumstances provided by an embodiment of the present application;

[0035] Figure 3 A schematic diagram of storing and reading touch reporting point coordinate data in a low reporting rate usage scenario provided by an embodiment of the present application;

[0036] Figure 4 A schematic diagram of a data signal waveform for storing and reading touch reporting point coordinate data in a low reporting rate usage scenario provided by an embodiment of the present application;

[0037] Figure 5 A schematic flow chart of an exemplary method provided in an embodiment of the present application;

[0038] Figure 6 A schematic flow chart of a touch data generation process of an exemplary method provided in an embodiment of the present application;

[0039] Figure 7 A schematic diagram of storing and reading touch reporting point coordinate data provided by the present application in a low reporting rate usage scenario provided by an embodiment of the present application;

[0040] Figure 8 A schematic diagram of the structure of an exemplary device provided in an embodiment of the present application;

[0041] Figure 9 A schematic diagram of the electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of this specification more clear, this specification is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0043] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, usage scenarios, etc. of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0044] For example, in response to receiving a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. Thus, based on the prompt message, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operation of the technical solution of this application.

[0045] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0046] It is understandable that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this application. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.

[0047] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0048] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should have the usual meanings understood by people with ordinary skills in the field to which this application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements, objects or method steps that appear before the word cover the elements, objects or method steps listed after the word and their equivalents, without excluding other elements, objects or method steps. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0049] As described in the background technology section, touchscreen products in related art implement touch control through the use of a touch IC. To account for varying external power supply interference, each touch IC has its own firmware (firmware). The current firmware's reporting rate is typically set to 120Hz. In Windows, because the system read rate is based on the firmware settings, the reading rate is generally 120Hz. The read data is real-time, and at a high refresh rate of 120Hz, the timeliness and smoothness of touch control are guaranteed. However, when the system reads data at a low reporting rate, touch delays are prone to occur due to a mismatch between the storage and reading frequencies. For example, in the BIOS (Basic Input Output System), if the firmware is set to 120Hz, the system may read data at a reporting rate of only 60Hz. When a touch is applied, a cursor will appear on the touchscreen. However, this can cause a touch delay that is noticeable to the human eye due to the misalignment between the finger and cursor movement.

[0050] In specific application scenarios, such as Figure 1 and Figure 2 The figure shows the schematic diagram and waveform diagram of the storage and reading of the touch point coordinate data under normal circumstances. Figure 1 This is a schematic diagram of the storage queue for the reported point coordinate data in the FW. The left and right data represent the MCU (Microcontroller Unit) storing the touch coordinate data (push touch data) and the system reading the touch coordinate data (pop touch data). Under Windows, the FW reporting rate is 120Hz. Due to the clock error calculated internally by the FW or the measurement error of the oscilloscope, the actual data interval may be 8.18ms, about 122Hz. The system reads the data at 8.18ms, 122Hz, which is consistent with the FW settings. Therefore, there is not much delay in storing / reading data, and the latest data can be read in time. The effect is that the line drawing accuracy is very high. Figure 2 From the SDA (bidirectional data line) and SCL (clock line), it can be seen that the measured interval for the system to read data is 8.18ms.

[0051] And as Figure 3 and Figure 4 , which is a schematic diagram and waveform diagram of storage and reading of touch reporting point coordinate data in the related art under the low reporting rate usage scenario. Figure 3This means that the MCU stores coordinate data at an interval of 8.18ms, approximately 122Hz, but the system reads data at an interval of 14.95ms, approximately 66msHz, which is inconsistent with the FW setting. Therefore, the data read may not be the latest data at all times. For example, data5 is stored before data2 is read. If the storage queue can store 20 data, then with the accumulation of time, when data19 is stored, data9 is read. The time difference is 8.18*10=81.8ms. The difference between the stored coordinate data and the read coordinate data will be relatively large, and the human eye can clearly recognize the touch delay. Figure 4 It can be seen from the SDA and SCL that the measured interval for the system to read data is 14.95ms.

[0052] It can be seen that when the storage rate and the read rate are inconsistent, according to the relevant technical solutions, when reading data from the storage queue, the time interval between the read data and the most recently written data will become increasingly larger over time. In other words, when reading data, the data read may still be stored data that has a certain time gap, and this time gap will become increasingly larger. As a result, the displayed touch track or cursor is out of sync with the touched part, causing touch delay, which has a certain impact on the user experience.

[0053] In light of the above practical situation, an embodiment of the present application provides a touch delay optimization solution, comprising: obtaining a write frequency and a read frequency of touch data, determining whether the write frequency is consistent with the read frequency; in response to the write frequency being greater than the read frequency, reducing the length of a storage queue for touch data, so that when reading touch data according to the adjusted storage queue, the interval between the write time of the read touch data and the write time of the most recently written touch data is less than a set threshold; and writing and reading touch data using the adjusted storage queue. The present application monitors the write frequency and read frequency of touch data in real time, and when it is found that the two frequencies are inconsistent and the write frequency is greater than the read frequency, controls the storage location of the touch data by reducing the length of the storage queue. When writing touch data, due to the exhaustion of the queue storage location, the touch data is rewritten from the beginning of the queue, thereby overwriting the older touch data in the original storage location. Finally, when reading, the older data is overwritten and the newer data is read again, thereby preventing asynchrony, optimizing latency, and improving user experience.

[0054] like Figure 5 The figure shows a flow chart of a touch delay optimization method proposed in this application. The method is applied to the client and specifically includes:

[0055] Step 101 : Acquire a writing frequency and a reading frequency of touch data, and determine whether the writing frequency is consistent with the reading frequency.

[0056] In some embodiments, touch data is data generated when a user touches the touch screen with an external contact device such as a finger or a touch pen, such as touch time, number of touch points, coordinates of touch point positions, etc. Figure 6 As shown in the figure, when a touch occurs, it passes through the analog and digital circuit modules within the MCU, generating raw data / diff data. This data is then subjected to noise reduction by hardware and algorithms to identify the effective touch area and calculate the corresponding coordinates, known as the reported point coordinates. Ultimately, the coordinates are uploaded to the system and processed and displayed on the screen. The reported point coordinates here can be considered a type of touch data.

[0057] After touch data is generated, it must ultimately be displayed on the screen. The touch detection unit and the display processing unit in the system are generally not the same unit. Therefore, when data is exchanged between the two units, to minimize the processing burden on either, a storage stack or queue is typically set up in the middle of the link to temporarily store the data. A stack is a linear list with insertions and deletions limited to the end of the list; a queue is a first-in-first-out (FIFO) linear list that allows insertions at one end and deletions at the other. Due to the unique characteristics of touch data and touch displays, queues are generally used for data storage. Data storage involves writing (storing) and reading. The touch detection unit has a frequency for writing data to the storage queue, known as the write frequency; the display processing unit or downstream processing unit has a frequency for reading data from the storage queue, known as the read frequency.

[0058] In some embodiments, after determining the current write frequency and read frequency, the magnitudes of the two can be compared to see if the two frequencies are consistent. In some embodiments, it can be strictly considered that only when the two frequencies are exactly the same can they be considered consistent. In other embodiments, due to the influence of practical factors (such as clock errors calculated internally by the FW or oscilloscope measurement errors, etc.), the write frequency and the read frequency generally have a certain error deviation, or even fluctuate within a small range within an error interval, and these errors are generally difficult to eliminate, so a comparison interval or range can be set for the two frequencies. For example, if the standard is 120Hz, then a range of plus or minus 3Hz can be set, that is, a set range of 117Hz to 123Hz. As long as the write frequency and the read frequency fall within this set range, it is considered that both frequencies correspond to 120Hz and that the two are consistent. That is, in some embodiments, determining whether the write frequency is consistent with the read frequency includes: determining the standard frequency values ​​corresponding to the write frequency and the read frequency, and determining whether the write frequency is consistent with the read frequency based on whether the standard frequency values ​​of the two are the same. The standard frequency value is the set write frequency and read frequency of the write end or the read end, which is generally a fixed integer frequency value, such as 60Hz, 120Hz, etc. The actual write frequency and read frequency will be within a certain range of the standard frequency value due to the aforementioned reasons.

[0059] Of course, in other embodiments, this setting range may also correspond to the difference between the write frequency and the read frequency. For example, if the standards corresponding to the write frequency and the read frequency are both 120Hz, then the write frequency and the read frequency will generally fluctuate within a smaller range, such as within 117Hz to 123Hz. The difference between the two must also be within a specific range, so in some embodiments, it is also possible to determine whether the two are consistent by comparing the difference between the two. That is, in some embodiments, determining whether the write frequency is consistent with the read frequency includes: determining whether the difference between the write frequency and the read frequency is within a set range; in response to the difference being within a set range, confirming that the write frequency is consistent with the read frequency. However, in some scenarios, the write frequency and the read frequency may not correspond to the conventionally set data read and write frequencies, such as 70Hz or even 75Hz. In the method of judging by difference, since only the size of the difference is determined, even if the write frequency and the read frequency are unconventional frequencies, as long as the difference between the two is not very large (that is, the difference is within a certain range), the difference in read and write speeds between the two will not be very large, and will not have much impact on the final display.

[0060] In some optional embodiments, if it is found that the write frequency and the read frequency are inconsistent, then the size relationship between the write frequency and the read frequency will generally be determined at the same time, that is, whether the write frequency is higher or the read frequency is higher. That is, in some embodiments, after determining whether the difference between the write frequency and the read frequency is within a set range, the method further includes: in response to the difference being outside the set range, determining whether the write frequency is greater than the read frequency. In the scenario where the read frequency is high and the write frequency is low, since the reading end will obtain more data stored in the storage queue, each time the data obtained is generally the latest touch data, and in this scenario, problems such as display delay will generally not occur. Therefore, touch delay problems generally only occur when the read frequency is lower than the write frequency.

[0061] Step 102: In response to the write frequency being greater than the read frequency, reduce the length of the storage queue of the touch data so that when the touch data is read according to the adjusted storage queue, the interval between the write time of the read touch data and the write time of the most recently written touch data is less than a set threshold.

[0062] In some embodiments, when it is determined that the write frequency is greater than the read frequency, the touch data storage queue at this time will obtain more touch data than the touch data being read. Here, for the storage queue, the data will generally be numbered according to the time sequence of writing, and when reading, it will be read sequentially according to the number. Under this premise, in a scenario where the write frequency is greater than the read frequency, the data number that may be read may be much smaller than the number of the current latest written data. For example, the touch data numbered 4 should be read in sequence, but the number of the latest written data is already 8 or 9, resulting in a delay of the time corresponding to the data numbered 8 minus the time corresponding to the data numbered 4.

[0063] In related designs, the storage queue may be set longer due to other considerations, for example, to store 20 or even 30 sets of data. In this embodiment, the storage space of the storage queue is represented by storage locations. When touch data is written to the storage queue of 20 storage locations, these storage locations are written sequentially. When all 20 storage locations are filled, the data is written over again from the beginning, that is, the newly written touch data overwrites the existing touch data in the storage location. Due to the long storage queue, the frequency of updating or overwriting all storage locations is slower. In this scenario, as mentioned above, the reader performing sequential reading will read older touch data, causing display delays.

[0064] Furthermore, to ultimately shorten the time difference between read touch data and written touch data, the length of the storage queue can be directly limited. Specifically, this is achieved by controlling the number of storage locations. Originally, there were 20 storage locations in the storage queue, but after being limited, this number is reduced to three, two, or even one. Thus, although the write and read frequencies remain unchanged, since there are only a few storage locations left, the time difference between the read touch data and the most recently written touch data will only be the time difference between these few touch data. In other words, the interval between the write time of the read touch data and the write time of the most recently written touch data will only be the time difference caused by these few storage locations. This allows a time threshold to be set, and ultimately, based on the write and read frequencies, it is determined whether to retain one or several storage locations.

[0065] In some specific embodiments, there are only two storage locations. Figure 7 The figure below is a schematic diagram of the storage and reading of touch point coordinate data provided by this application in a low reporting rate scenario. Touch data is still stored at 122Hz, 8.18ms intervals; data is also read at the system's 66Hz (14.95ms), but the data stored in the storage queue will be updated based on the current storage queue's capacity and write frequency. At the beginning, data data1 and data data2 are stored sequentially. The first data data1 is read first, and then data data3 is stored. Since the storage queue has only two storage locations, data data3 replaces the data data1 that is read at the head of the queue. At this time, the data in the storage queue is data2 and data3. Because the system read rate is slower than the stored data, the next data is not read at this time. Therefore, when data4 is written to the storage queue, it will replace data data2, and the data in the storage queue will become data data3 and data data4. If the second data is read at this time, data data3 will be read first (since data2 no longer exists, this number will be skipped). If it is written again, the stored data will become data data4 and data data5. At this time, the next data is not read, and data data6 is written to replace data data4. The stored data is changed to data data5 and data data6. At this time, the system reads the third data and it becomes data data5. And so on. Figure 7 As shown in the figure, data 2, data 4, and data 6 are skipped. However, for the read data, there is only one data difference from the latest written data, and the data read is relatively the latest data. Therefore, there will not be a large time difference between the stored coordinate data and the read coordinate data, which will cause delay in human eye recognition when touching.

[0066] Further, since the ultimate goal is to make the interval between the write time of the read touch data and the write time of the latest touch data less than a certain threshold, the way to achieve this can be to control the length of the storage queue to ensure that the touch data in the storage queue is updated at least once each time the read is performed. The maximum interval time in this way is also determinable, i.e. the difference between the time of the earliest touch data after the update and the time of the latest touch data, which is proportional to the length of the storage queue, i.e. if there are three storage locations, the difference is the time difference between three write data; if there are two storage locations, the difference is the time difference between two write data. That is, in some embodiments, the reducing the length of the storage queue of the touch data includes: limiting the number of touch data that the storage queue can store, so that the touch data in the storage queue is updated at least once each time the touch data is read according to the read frequency.

[0067] In some scenarios with higher delay requirements, the length of the storage queue can be directly set to store only one touch data or two touch data, so as to ensure that there is no time difference or the time difference is only one touch data time. That is, in some embodiments, the limiting the number of touch data that the storage queue can store includes: limiting the number of touch data that the storage queue can store to one or two.

[0068] Finally, in some embodiments, the set threshold can be at most the interval time between the adjacent two reads corresponding to the read frequency. That is, in some embodiments, the set threshold is at least the interval time between the adjacent two reads corresponding to the read frequency.

[0069] Step 103, writing and reading the touch data through the adjusted storage queue.

[0070] In some embodiments, after adjusting the storage queue or limiting the storage queue, the writing and reading of the touch data can be performed through the storage queue.

[0071] The specific writing and reading process can be to first store the touch data in the queue order of the storage queue. When the last storage location in the storage queue has completed a storage operation, the new touch data can be written directly to the beginning of the storage queue and restart the data storage. At this time, because the storage location already contains the previous touch data, the writing can be performed in an overwriting manner, that is, the written touch data replaces the original touch data. That is, in some embodiments, writing and reading the touch data through the adjusted storage queue includes: writing the touch data in the queue order of the adjusted storage queue; when the last storage location in the adjusted storage queue has completed a touch data writing operation, re-starting with the first storage location in the adjusted storage queue and writing the touch data in an overwriting manner.

[0072] As can be seen from the above embodiments, the present invention provides a touch latency optimization method, comprising: obtaining a write frequency and a read frequency of touch data, determining whether the write frequency is consistent with the read frequency; in response to the write frequency being greater than the read frequency, reducing the length of a storage queue for touch data, so that when reading touch data according to the adjusted storage queue, the interval between the write time of the read touch data and the write time of the most recently written touch data is less than a set threshold; and writing and reading touch data using the adjusted storage queue. The present invention monitors the write frequency and read frequency of touch data in real time, and when it is found that the two frequencies are inconsistent and the write frequency is greater than the read frequency, controls the storage location of the touch data by reducing the length of the storage queue. When writing touch data, due to the exhaustion of the queue storage location, the touch data is rewritten from the beginning of the queue, thereby overwriting the older touch data in the original storage location. When reading, the older data is overwritten and the touch data is read from the newer data, thereby preventing asynchrony, optimizing latency, and improving user experience.

[0073] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of the embodiment of the present application can also be applied in a distributed scenario and completed by multiple devices working together. In the case of such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the method described.

[0074] It is to be understood that the foregoing description is directed to particular embodiments of the application. Various other embodiments can be devised which do not depart from the scope of the application. In some cases, the actions or steps recited in the claims can be performed in a different order and still achieve the desired result. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown or sequential order in order to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.

[0075] Based on the same idea, the present application also provides a touch delay optimization apparatus corresponding to the method of any of the above embodiments.

[0076] Reference Figure 8 The touch delay optimization apparatus comprises:

[0077] The acquisition module 210 is configured to acquire a write frequency and a read frequency of touch data, and determine whether the write frequency is consistent with the read frequency.

[0078] The processing module 220 is configured to, in response to the write frequency being greater than the read frequency, reduce a length of a storage queue of the touch data, so that, when reading the touch data according to the adjusted storage queue, an interval between a write time of the read touch data and a write time of the latest written touch data is less than a set threshold.

[0079] The execution module 230 is configured to perform the writing and reading of the touch data through the adjusted storage queue.

[0080] In some embodiments, the processing module 220 is further configured to:

[0081] limit the number of the touch data that can be stored in the storage queue, so that, when reading the touch data each time according to the read frequency, the touch data in the storage queue is updated at least once.

[0082] In some embodiments, the processing module 220 is further configured to:

[0083] limit the number of the touch data stored in the storage queue to one or two.

[0084] In some embodiments, the execution module 230 is further configured to:

[0085] write the touch data according to a queue order of the adjusted storage queue;

[0086] When the touch data is written once to the last storage position of the adjusted storage queue, data is written again starting from the first storage position of the adjusted storage queue to perform overwriting data writing in sequence.

[0087] In some implementations, the acquisition module 210 is further configured to:

[0088] determining whether a difference between the write frequency and the read frequency is within a set range;

[0089] In response to the difference being within a set range, it is confirmed that the write frequency is consistent with the read frequency.

[0090] In some implementations, the acquisition module 210 is further configured to:

[0091] In response to the difference being outside a set range, a determination is made as to whether the write frequency is greater than the read frequency.

[0092] In some implementations, the acquisition module 210 is further configured to:

[0093] Determine standard frequency values ​​corresponding to the write frequency and the read frequency, and determine whether the write frequency is consistent with the read frequency based on whether the standard frequency values ​​of the two are the same.

[0094] In some embodiments, the set threshold is at least the interval time between two adjacent readings corresponding to the reading frequency.

[0095] For the convenience of description, the above devices are described as being functionally divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0096] The apparatus of the above embodiment is used to implement the corresponding touch delay optimization method in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0097] Based on the same concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the touch delay optimization method as described in any of the above embodiments is implemented.

[0098] Figure 9A more specific electronic device hardware structure schematic diagram provided by the embodiment is shown, and the device can include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 for internal communication.

[0099] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided by the embodiments of the present specification.

[0100] The memory 1020 can be implemented by a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 can store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the related program codes are stored in the memory 1020 and called and executed by the processor 1010.

[0101] The input / output interface 1030 is used to connect input / output modules to realize information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. The input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.

[0102] The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication through a wired manner (such as USB, network cable, etc.) or through a wireless manner (such as mobile network, WIFI, Bluetooth, etc.).

[0103] The bus 1050 includes a channel for transmitting information between various components (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040) of the device.

[0104] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may only include the components necessary to implement the embodiments of this specification, and does not necessarily include all the components shown in the figure.

[0105] The electronic device of the above embodiment is used to implement the corresponding touch delay optimization method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0106] Based on the same concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the touch delay optimization method described in any of the above embodiments.

[0107] The computer-readable media of this embodiment include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0108] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the touch delay optimization method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0109] Based on the same concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a computer program product comprising computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer to cause the computer and / or the processor to perform the touch delay optimization method. Corresponding to the execution subject corresponding to each step in each embodiment of the touch delay optimization method, the processor that executes the corresponding step can belong to the corresponding execution subject.

[0110] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the touch delay optimization method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0111] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. Within the scope of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0112] In addition, for simplicity of description and discussion, and in order not to make the embodiment of the application difficult to understand, the known power supply / ground connection with integrated circuit (IC) chip and other components may or may not be shown in the accompanying drawings provided. In addition, the device can be shown in the form of a block diagram to avoid making the embodiment of the application difficult to understand, and this also takes into account the following fact, that is, the details of the embodiment of these block diagram devices are highly dependent on the platform to be implemented in the embodiment of the application (that is, these details should be fully within the scope of understanding of those skilled in the art). When specific details (for example, circuit) are set forth to describe exemplary embodiments of the application, it will be apparent to those skilled in the art that the embodiment of the application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0113] Although the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those skilled in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may utilize the embodiments discussed.

[0114] The embodiments of the present application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of this application.

Claims

1. A touch delay optimization method, characterized in that: include: Acquire a writing frequency and a reading frequency of touch data, and determine whether the writing frequency is consistent with the reading frequency; In response to the write frequency being greater than the read frequency, reducing a length of the storage queue of the touch data so that, when the touch data is read according to the adjusted storage queue, an interval between a write time of the read touch data and a write time of the most recently written touch data is less than a set threshold; Writing and reading the touch data through the adjusted storage queue; The reducing the length of the storage queue of the touch data includes: limiting the amount of touch data that can be stored in the storage queue so that the touch data in the storage queue is updated at least once each time the touch data is read according to the reading frequency; The step of writing and reading the touch data through the adjusted storage queue includes: Writing the touch data according to the adjusted queue order of the storage queue; When the touch data is written once to the last storage position of the adjusted storage queue, data is written again starting from the first storage position of the adjusted storage queue to perform overwriting data writing in sequence.

2. The method according to claim 1, characterized in that The limiting the amount of touch data that can be stored in the storage queue includes: The number of touch data stored in the storage queue is limited to one or two.

3. The method according to claim 1, characterized in that The determining whether the write frequency is consistent with the read frequency includes: determining whether a difference between the write frequency and the read frequency is within a set range; In response to the difference being within a set range, it is confirmed that the write frequency is consistent with the read frequency.

4. The method according to claim 3, characterized in that After determining whether the difference between the write frequency and the read frequency is within a set range, the method further includes: In response to the difference being outside a set range, a determination is made as to whether the write frequency is greater than the read frequency.

5. The method according to claim 1, wherein The determining whether the write frequency is consistent with the read frequency includes: Determine standard frequency values ​​corresponding to the write frequency and the read frequency, and determine whether the write frequency is consistent with the read frequency based on whether the standard frequency values ​​of the two are the same.

6. The method according to claim 1, characterized in that The set threshold is at least the interval time between two adjacent readings corresponding to the reading frequency.

7. A touch delay optimization device, characterized in that: include: an acquisition module, configured to acquire a writing frequency and a reading frequency of touch data, and determine whether the writing frequency is consistent with the reading frequency; a processing module, configured to, in response to the writing frequency being greater than the reading frequency, reduce a length of a storage queue for the touch data, so that when the touch data is read according to the adjusted storage queue, an interval between a writing time of the read touch data and a writing time of the most recently written touch data is less than a set threshold; an execution module, configured to write and read the touch data through the adjusted storage queue; The reducing the length of the storage queue of the touch data includes: limiting the amount of touch data that can be stored in the storage queue so that the touch data in the storage queue is updated at least once each time the touch data is read according to the reading frequency; The step of writing and reading the touch data through the adjusted storage queue includes: Writing the touch data according to the adjusted queue order of the storage queue; When the touch data is written once to the last storage position of the adjusted storage queue, data is written again starting from the first storage position of the adjusted storage queue to perform overwriting data writing in sequence.

8. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to implement the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises computer program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • SDI output method and device, video processing equipment and readable storage medium

    CN114422654A

  • Parameter optimization method and system and control device

    CN115129245A