Input Event Preprocessing for Low-Latency Screen Sliding
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional electronic devices experience delays in processing input events, particularly slide actions, due to the need to wait for a vertical synchronization signal, leading to prolonged response times and reduced sliding sensitivity in screen interactions.
Innovation Solution
The method involves processing target input events, such as slide actions, in advance before the arrival of the next vertical synchronization signal by meeting a preset condition related to the time difference between event reception and signal arrival, allowing immediate processing of layers corresponding to these events.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the electronic device waits for the next vertical synchronization signal before processing the input event, then the image frame drawing is synchronized with the display refresh, but the response time of screen sliding interaction increases
Solution Approach 1:
The patent applies preliminary action by checking whether the current time plus the maximum processing time exceeds the next vertical synchronization signal time before processing the input event. If the condition is met, the system processes the event immediately without waiting for the synchronization signal, thereby reducing response time while ensuring that processing completes before the next display refresh.
2Loss of time
If the electronic device processes the target input event before the second target vertical synchronization signal arrives, then the response time of screen sliding interaction is reduced, but the processing may interfere with the normal drawing triggered by the vertical synchronization signal
Solution Approach 1:
The system performs a preliminary check to determine whether the current time plus the maximum processing time exceeds the next vertical synchronization signal time. Only when this condition is satisfied does the system proceed with immediate processing, ensuring that the processing will complete before the synchronization signal arrives and thus will not interfere with the normal drawing process.
Solution Approach 2:
The patent dynamically adjusts the processing timing based on the relationship between the current time, maximum processing time, and next vertical synchronization signal time. The system switches between two modes: immediate processing when the time condition is met, and deferred processing when it is not, thereby adapting to different timing scenarios to resolve the contradiction.
3Productivity
If the electronic device immediately processes the target input event without waiting for the vertical synchronization signal, then the sliding sensitivity is improved, but the processing timing becomes inconsistent with the display refresh cycle
Solution Approach 1:
The system performs a preliminary check to determine whether immediate processing can be completed before the next vertical synchronization signal arrives. Only when this condition is satisfied does the system proceed with immediate processing, thereby improving sliding sensitivity while ensuring that the processing timing remains consistent with the display refresh cycle.
Data Source
Figure 1A
Figure 1B
Figure 1C
AI summary
Embodiments of this application provide an event processing method and a device, and relate to the field of terminal technologies, to process a collected target input event in advance when an electronic device determines that a received target input event meets a preset condition, without waiting for arrival of a next target vertical synchronization signal before the collected target input event is processed. A specific solution is: After the electronic device receives a first target vertical synchronization signal, if the input event received by the electronic device is a target input event and meets the preset condition, the target input event is processed before a second target vertical synchronization signal arrives. The second target vertical synchronization signal is a next target vertical synchronization signal of the first target vertical synchronization signal. Embodiments of this application are used in an event processing process.