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

By monitoring and adjusting the storage queue length of touch data, the problem of touch delay under low reporting rate is solved, timely reading and writing of data is achieved, and the user experience is improved.

CN119356541AActive Publication Date: 2025-01-24HEFEI BOE OPTOELECTRONIC TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the processing system is in a low point-rate usage situation, the data reading rate of the touch screen is low, resulting in a mismatch between the storage rate and the reading rate, and a touch delay occurs, affecting the user experience.

Method used

Through real -time monitoring of the writing frequency and reading frequency of touch data, if the incoming frequency is greater than the frequency of reading, the length of the storage queue is reduced, and the interval between the storage queue to ensure that the reading of the touches and the latest written data is less than Set the threshold.

Benefits of technology

It effectively prevents the desynchronization of touch data during storage and reading, optimizes touch delay and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356541A_ABST
    Figure CN119356541A_ABST
Patent Text Reader

Abstract

The invention provides a touch delay optimization method and device, equipment, a storage medium and a program product. According to the method, the writing frequency and the reading frequency of the touch data are monitored in real time, and when the 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, so that the storage position of the touch data can be used up when the touch data is written because the storage position of the queue is used up; according to the embodiment of the invention, when the data is read, the data is written again from the start of the queue, so that the earlier touch data in the original storage position is covered, and finally, the data is read from the new data due to the fact that the earlier data is covered during reading, so that the asynchronous phenomenon is prevented, the delay is optimized, and the user experience is improved.
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 improvement of people's demand for products, the current demand for touch screens is getting higher and higher. In order to ensure the accuracy of the touch effect and the smoothness of the line, the reporting rate of the touch screen 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 site, 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, device, equipment, 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 writing frequency being greater than the reading frequency, reducing 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 writing time of the read touch data and the writing 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, the writing and reading of 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 at the last storage position of the adjusted storage queue, the data is written again starting from the first storage position of the adjusted storage queue to sequentially perform overwriting.

[0016] In some implementations, 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 implementations, 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 implementations, determining whether the write frequency is consistent with the read frequency includes:

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

[0023] In some implementations, 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, including:

[0025] An acquisition module, used for acquiring a writing frequency and a reading frequency of touch data, and determining whether the writing frequency is consistent with the reading frequency;

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

[0027] The execution module is used 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 methods described above 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, including 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 delay optimization method, device, equipment, storage medium and program product, including: obtaining the writing frequency and reading frequency of touch data, determining whether the writing frequency is consistent with the reading frequency; in response to the writing frequency being greater than the reading frequency, reducing 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 writing time of the read touch data and the writing time of the latest written touch data is less than the set threshold; writing and reading the touch data through the adjusted storage queue. The present application monitors the writing frequency and reading frequency of the touch data in real time, and 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, so that when the touch data is written, it will be rewritten from the beginning of the queue because the queue storage position is exhausted, thereby covering the touch data with an earlier time in the original storage position, and finally when reading, the earlier data will be covered and read from the newer data, so as to prevent the phenomenon of asynchrony, optimize the delay and improve the 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 the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying 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 point rate usage scenario provided by an embodiment of the present application;

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

[0038] Figure 6 A schematic diagram of a process of generating touch data according to 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 point 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] Fig. 9 A schematic diagram of the structure of an electronic device 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 an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present application according to the prompt message.

[0045] As an optional but non-limiting implementation, in response to receiving an active request from the user, 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. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0046] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of the present application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of the present 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) shall 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 be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements, objects or method steps appearing 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 can 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, the touch products in the related art, the touch screen realizes touch by setting a touch chip (touchIC). Taking into account the interference of different external power supplies, each touch chip will have its own FW (Firmware). The current FW reporting rate is conventionally set to 120Hz. In the Windows interface, because the system reading rate is set according to the FW setting, the general reading rate is also 120Hz. The read data is real-time data, and under the 120Hz high refresh, the timeliness and smoothness of the touch can also be guaranteed. However, when the system is in a low reporting rate to read data, because the storage and reading frequencies do not match, touch delays are prone to occur. For example, under BIOS (Basic Input Output System, basic input and output system), FW is set to 120Hz, and the system may only read the reporting rate data at 60Hz. When touching, the cursor will be displayed on the touch screen. At this time, there will be a touch delay that can be recognized by the human eye due to the asynchronous movement of the finger and the cursor.

[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 point coordinate data storage in FW. The left and right data represent the MCU (Microcontroller Unit) storing the touch coordinate data (pushtouch data) and the system reading the touch coordinate data (pop touch data). Under Windows system, the FW point reporting rate is 120Hz. Due to the clock error calculated internally by FW or the measurement error of the oscilloscope, the actual data interval may be 8.18ms, about 122Hz. The system reads data at 8.18ms, 122Hz, which is consistent with the FW setting. 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 actual interval for the system to read data is 8.18ms.

[0051] And as Figure 3 and Figure 4 As shown, it is a schematic diagram and a waveform diagram of the storage and reading of touch point reporting coordinate data in the related technology under the low reporting rate usage scenario. Figure 3It means that the MCU stores coordinate data at an interval of 8.18ms, about 122Hz, but the system reads data at an interval of 14.95ms, about 66msHz, which is inconsistent with the FW setting. Therefore, the read data is not always the latest data. 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 storing coordinate data and reading 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 actual measured interval of the system reading data is 14.95ms.

[0052] It can be seen that when the storage rate is inconsistent with the reading rate, according to the relevant technical solution, when reading data from the storage queue, the time interval between the read data and the latest written data will become larger and larger as time goes by, that is, when reading data, the data may still be stored data before a certain time gap, and this time gap will become larger and larger. As a result, the displayed touch track or cursor is not synchronized with the touched part, causing touch delay, which has a certain impact on the user experience.

[0053] In combination with the above actual situation, the embodiment of the present application provides a touch delay optimization scheme, including: obtaining the writing frequency and reading frequency of touch data, determining whether the writing frequency is consistent with the reading frequency; in response to the writing frequency being greater than the reading frequency, reducing 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 writing time of the read touch data and the writing time of the latest written touch data is less than the set threshold; writing and reading the touch data through the adjusted storage queue. The present application monitors the writing frequency and reading frequency of the touch data in real time, and 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, so that when the touch data is written, it will be rewritten from the beginning of the queue because the queue storage position is used up, thereby covering the touch data with an earlier time in the original storage position, and finally when reading, the earlier data will be covered and read from the newer data, so as to prevent the phenomenon of asynchrony, optimize the delay, and improve the user experience.

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

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

[0056] In some embodiments, the touch data is data generated when a user touches the touch screen through an external contact device such as a finger or a touch pen, such as touch time, number of touch points, touch point position coordinates, etc. Figure 6 As shown in the figure, when a touch occurs, the touch will pass through the analog circuit module and digital circuit module inside the MCU to generate raw data / diff data. These data will then be de-noised by hardware and algorithms to identify the effective touch area and calculate the corresponding coordinates, i.e., the reported point coordinates. Finally, the coordinates are uploaded to the system and displayed on the screen after processing. The reported point coordinates here can be considered as a type of touch data.

[0057] After that, after the touch data is generated, it needs to be displayed on the screen in the end, and the unit for touch detection and the unit for display processing in the system are generally not the same unit. Therefore, when data is exchanged between the two units, in order not to increase the processing burden of both, a storage stack or storage queue is generally set in the middle of the link to temporarily store the data. Here, the stack is a linear table that is limited to insertion and deletion at the end of the table; the queue is a linear table of first in first out (First In First Out), which only allows insertion operations at one end and deletion operations at the other end. In view of the characteristics of touch data and touch display, queues are generally used for data storage. In the process of data storage, writing (storage) and reading are involved. The touch detection unit will have a frequency of writing data to the storage queue, that is, the writing frequency; the unit for display processing or the downstream processing unit will have a frequency of reading data from the storage queue, that is, the reading frequency.

[0058] In some embodiments, after determining the current write frequency and read frequency, the magnitudes of the two can be compared to see whether the two frequencies are consistent. Here, in some embodiments, it can be strictly considered that only when the two frequencies are exactly the same, the two are considered to be consistent. In other embodiments, due to the influence of practical factors (such as the clock error calculated internally by FW or the oscilloscope measurement error, etc.), the write frequency and the read frequency generally have a certain error deviation, or even fluctuate in a small range in an error interval, and these errors are generally difficult to eliminate, so that a comparison interval or range can be set for the two frequencies. For example, if the standard is 120Hz, then a positive and negative 3Hz interval can be set, that is, a setting range of 117Hz to 123Hz. As long as the write frequency and the read frequency fall within this setting range, it is considered that the frequencies of both correspond to 120Hz, and the two are considered to be consistent. That is, in some embodiments, the determination of 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, so as to determine whether the write frequency is consistent with the read frequency according to whether the standard frequency values ​​of the two are the same. The standard frequency value is the set writing frequency and reading frequency of the writing end or reading end, which is generally a fixed integer frequency value, such as 60Hz, 120Hz, etc., and the actual writing frequency and reading 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 float within a smaller range, such as within 117Hz to 123Hz, and 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 the set range; in response to the difference being within the 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 writing frequency and the reading 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 reading and writing speeds between the two will not be very large, and will not cause 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, 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 the set range, the method also 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 read end will obtain more data stored in the storage queue, each time the data is generally the latest touch data, and in this scenario, display delays and other problems generally do not occur. Therefore, touch delay problems generally only occur when the read frequency is less than the write frequency.

[0061] Step 102, in response to the write frequency being greater than the read frequency, reducing 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, at this time, for the storage queue of touch data, the touch data obtained will be more than the touch data 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 the 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 at this time the number of the latest written data has reached 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 is set to be longer due to some other factors, for example, it can store 20 or even 30 groups of data. In this embodiment, the storage space of the storage queue is represented by the storage position. When the touch data is written to the storage queue of 20 storage positions, these storage positions will be written in sequence. When all 20 storage positions are filled, the data will be written in an overwritten manner from the beginning, that is, the newly written touch data will overwrite the original touch data in the storage position. Since the storage queue is long, the frequency of updating or overwriting all storage positions will be slower. In this scenario, as mentioned above, the reading end that performs sequential reading will read the earlier touch data, thereby causing display delay.

[0064] Furthermore, in order to ultimately shorten the time gap between the read touch data and the written touch data, the length of the storage queue can be directly limited. Specifically, the number of storage locations is controlled. Originally, there were 20 storage locations in the storage queue, but after being limited, it was reduced to three, two, or even one. In this way, although the write frequency and the read frequency have not changed, since there are only a few storage locations left, the time difference between the read touch data and the latest written touch data is at most the time difference between these few touch data. That is, the interval between the write time of the read touch data and the write time of the latest written touch data is at most the time difference caused by these few storage locations. In this way, a time threshold can be set, and finally, based on the write frequency and the read frequency, it is determined whether to retain one storage location or several storage locations.

[0065] In some specific embodiments, there are only two storage locations. Figure 7 The figure shows a schematic diagram of the storage and reading of the touch point coordinate data provided by the present application in a low point reporting rate usage scenario. The touch data is still stored at 122Hz, 8.18ms interval; the data is also read at 66Hz (14.95ms) of the system, but the data stored in the storage queue will be replaced according to the amount of data that can be stored in the current storage queue and the 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 reading 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), and written again, the stored data will become data data4 and 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 data2, data data4, and data data6 are skipped, but for the read data, there is only one data difference from the current latest written data, and the data read are all relatively latest data, so 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] Furthermore, since the ultimate goal is to make the interval between the writing time of the read touch data and the writing time of the latest written touch data less than a certain threshold, the implementation method 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 touch data is read. In this way, the maximum interval time can also be determined, that is, the difference between the time of the earliest touch data after the update and the time of the latest touch data, and the difference is proportional to the length of the storage queue, that is, if there are 3 storage locations, the difference is the time difference between the three written data; if there are 2 storage locations, the difference is the time difference between the two written data. That is, in some embodiments, reducing the length of the storage queue of the touch data includes: limiting the amount of the 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.

[0067] In some scenarios with high latency 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 the time of one touch data. That is, in some embodiments, limiting the number of touch data that can be stored in the storage queue includes: limiting the number of touch data stored in the storage queue to one or two.

[0068] Finally, in some embodiments, the threshold value may be at most the interval between two adjacent readings corresponding to the reading frequency. That is, in some embodiments, the threshold value may be at least the interval between two adjacent readings corresponding to the reading frequency.

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

[0070] In some embodiments, after the storage queue is adjusted or the storage queue is limited, touch data may be written and read through the storage queue.

[0071] The specific writing and reading process may be to first store the touch data in the queue order of the storage queue, and when the last storage position in the storage queue completes a storage, the new touch data can be directly jumped to the starting position of the storage queue to restart the data storage. At this time, since the previous touch data exists in the storage position itself, the writing can be performed in an overwriting manner, that is, the written touch data replaces the original stored touch data. That is, in some embodiments, the writing and reading of 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 position of the adjusted storage queue completes the writing of the touch data, the data is written again starting from the first storage position of the adjusted storage queue and the overwriting is performed in sequence.

[0072] As can be seen from the above embodiments, a touch delay optimization method provided by the embodiment of the present application includes: obtaining the writing frequency and reading frequency of touch data, determining whether the writing frequency is consistent with the reading frequency; in response to the writing frequency being greater than the reading frequency, reducing 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 writing time of the read touch data and the writing time of the latest written touch data is less than a set threshold; and writing and reading the touch data through the adjusted storage queue. The present application monitors the writing frequency and reading frequency of the touch data in real time, and 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, so that when the touch data is written, it will be rewritten from the beginning of the queue because the queue storage position is exhausted, thereby covering the touch data with an earlier time in the original storage position, and finally when reading, the earlier data will be covered and read from the newer data, so as to prevent the phenomenon of asynchrony, optimize the delay, and improve the 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 to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0074] It should be noted that the above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0075] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a touch delay optimization device.

[0076] refer to Figure 8 , the touch delay optimization device comprises:

[0077] The acquisition module 210 is used to acquire the writing frequency and the reading frequency of the touch data, and determine whether the writing frequency is consistent with the reading frequency.

[0078] The processing module 220 is used to reduce the length of the storage queue of the touch data in response to the write frequency being greater than the read frequency, 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.

[0079] The execution module 230 is used to write and read the touch data through the adjusted storage queue.

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

[0081] 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.

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

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

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

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

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

[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 the standard frequency values ​​corresponding to the write frequency and the read frequency, and determine whether the write frequency is consistent with the read frequency according to whether the standard frequency values ​​of the two are the same.

[0094] In some implementations, 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 in terms of functions 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 device 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 executable 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] Fig. 9A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may 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 in the device.

[0099] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

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

[0101] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may 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) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0103] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[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 the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present 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 embodiment 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 medium of this embodiment includes 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, modules of programs, 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 disk read-only memory (CD-ROM), digital versatile disk (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, the present application also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute 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 may 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 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. In line with the concept 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, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present 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 application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use 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 the present 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 writing frequency being greater than the reading frequency, reducing 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 writing time of the read touch data and the writing time of the most recently written touch data is less than a set threshold; The touch data is written and read through the adjusted storage queue.

2. The method according to claim 1, characterized in that The reducing the length of the storage queue of the touch data comprises: 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.

3. The method according to claim 2, characterized in that The limiting the amount of the 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.

4. The method according to claim 2, characterized in that: 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 at the last storage position of the adjusted storage queue, the data is written again starting from the first storage position of the adjusted storage queue to sequentially perform overwriting.

5. 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.

6. The method according to claim 5, 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.

7. The method according to claim 1, characterized in that The determining whether the write frequency is consistent with the read frequency includes: Determine the standard frequency values ​​corresponding to the write frequency and the read frequency, and determine whether the write frequency is consistent with the read frequency according to whether the standard frequency values ​​of the two are the same.

8. 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.

9. A touch delay optimization device, characterized in that: include: An acquisition module, used for acquiring a writing frequency and a reading frequency of touch data, and determining whether the writing frequency is consistent with the reading frequency; a processing module, configured to reduce the length of the storage queue of the touch data in response to the writing frequency being greater than the reading frequency, so that when the touch data is read according to the adjusted storage queue, the interval between the writing time of the read touch data and the writing time of the latest written touch data is less than a set threshold; The execution module is used to write and read the touch data through the adjusted storage queue.

10. 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 8 is implemented.

11. 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 cause a computer to implement the method according to any one of claims 1 to 8.

12. 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 8.

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

  • Data transmission control method and system and touch display device

    CN115237275A

  • Real time elastic FIFO latency optimization

    US20080141063A1