CN-122024673-A - Multi-screen independent refreshing method and device under Android system
Abstract
The invention provides a multi-screen independent refreshing method and device under an Android system, which optimize the display rhythm control, presentation judgment and presentation scheduling process on the basis of the existing Android display frame, so that different displays can independently execute frame presentation processing according to respective refreshing demands, thereby reducing the mutual restriction among the displays with different refreshing rates, improving the display performance of the display with high refreshing rate and the fluency of multi-screen collaborative display, and simultaneously taking into account the simplicity, stability and compatibility of system realization.
Inventors
- YANG DONGHU
- BAI XUE
- LI LIANG
- WANG BIN
Assignees
- 此芯科技集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260414
Claims (10)
- 1. A multi-screen independent refreshing method under an Android system is characterized by comprising the following steps: determining a plurality of displays in an Android system and refresh parameters corresponding to the displays, and determining a target rhythm display with the highest refresh rate from the plurality of displays; based on the target rhythm display, a display refreshing driving rhythm is established, and a display pipeline is enabled to run according to the refreshing rhythm corresponding to the target rhythm display; Before the display processing of each frame, determining a target display set corresponding to the current frame according to the current display time corresponding to the target rhythm display and the respective refresh requirement of each display; And controlling the displays in the target display set to execute frame display processing, and controlling the displays which are not included in the target display set to skip the display processing of the current frame, so that different displays independently refresh the display according to the refresh rhythm.
- 2. The method according to claim 1, wherein the step of creating a display refresh drive cadence based on the target cadence display to cause a display pipeline to operate according to the refresh cadence corresponding to the target cadence display comprises: Taking a refresh period corresponding to the target rhythm display as a unified driving rhythm of an application drawing end and a system synthesis end; and in the frame presenting stage, only waiting for the completion of the presenting operation corresponding to the target rhythm display so as to release the subsequent frame processing flow.
- 3. The method according to claim 1, wherein determining the target presenting display set corresponding to the current frame according to the current presenting time corresponding to the target rhythm display and the respective refresh requirement of each display specifically comprises: Acquiring expected presentation time corresponding to the target rhythm display; Respectively comparing the expected presentation time with the refresh period corresponding to each display; Determining a display aligned with the current frame according to the phase comparison result; the target cadence display and the display aligned with the current frame are collectively determined as the target presentation display set.
- 4. The method according to claim 1, wherein controlling the displays in the set of target rendering displays to perform a frame rendering process comprises: Asynchronously executing corresponding presentation operations for non-target rhythm displays in the target presentation display set; Continuously executing the presentation flow corresponding to the target rhythm display in the current frame without waiting for the completion of the presentation of the non-target rhythm display; acquiring a task object returned by asynchronous execution, and adding the task object into a queue to be processed; And when the subsequent frame starts, uniformly waiting and cleaning the task objects in the queue to be processed.
- 5. The method according to claim 1, wherein controlling a display that is not incorporated into the set of target rendering displays skips the rendering process of the current frame, in particular comprising: identifying, at a presentation pipeline entry, a target skip display that is not incorporated into the set of target presentation displays; Skipping the verification process and the presentation process corresponding to the target skip display; And releasing the layer resources corresponding to the target skip display, and multiplexing a release fence corresponding to the target skip display when one frame is successfully presented, wherein the release fence is used as a release basis of the layer resources corresponding to the current frame.
- 6. The method of claim 4, wherein for a non-target cadence display that performs asynchronous presentation, the method further comprises: forcing the layers on the non-target rhythm display to be synthesized in a client synthesis mode; disabling the hardware synthesizer from performing device synthesis on the non-target cadence display; And synthesizing corresponding release fence constraint layer buffer release time based on the client so as to reduce the risk of screen tearing.
- 7. The method according to claim 1, wherein the method further comprises: detecting whether a plurality of displays are in a mirror display mode; When the multiple displays are detected to be in the same-layer stack mirror image display mode, the independent refreshing parameters set by the displays are cleared, and the compatible display mode is switched to a compatible display mode for executing display on all the displays and waiting for completion of all the displays.
- 8. The method of claim 1, further comprising an independent VSync implementation process, the independent VSync implementation process comprising: sensing a physical display identifier corresponding to the current window at an application drawing end; Initiating a VSync request for a target physical display based on the physical display identification; Routing the VSync request to an independent scheduling channel of a corresponding display at a system synthesis server according to the physical display identifier; and respectively triggering drawing processing and synthesizing processing of the corresponding display based on the independent scheduling channels of the displays.
- 9. The method according to claim 8, wherein the drawing process and the synthesizing process of the corresponding display are triggered based on the respective independent scheduling channels of the displays, respectively, specifically comprising: When the synthesized thread is awakened by the VSync signal of any display, judging whether the current synthesized period is awakened for the first time; executing a complete synthesis flow when the first wake-up is determined, and caching a synthesis result; And when the non-first wake-up is judged, skipping the synthesis step, and calling the cached synthesis result to execute presentation processing on the corresponding display.
- 10. Multi-screen independent refreshing device under Android system, which is characterized by comprising: The rhythm display determining module is used for determining a plurality of displays in the Android system and refresh parameters corresponding to the displays, and determining a target rhythm display with the highest refresh rate from the plurality of displays; the rhythm driving module is used for establishing a display refreshing driving rhythm based on the target rhythm display, so that a display assembly line runs according to the refreshing rhythm corresponding to the target rhythm display; The display set determining module is used for determining a target display set corresponding to the current frame according to the current display time corresponding to the target rhythm display and the respective refreshing requirement of each display before the display processing of each frame; and the presentation control module is used for controlling the displays in the target presentation display set to execute frame presentation processing and controlling the displays which are not incorporated in the target presentation display set to skip the presentation processing of the current frame so as to enable the different displays to independently refresh the display according to the respective refresh rhythms.
Description
Multi-screen independent refreshing method and device under Android system Technical Field The disclosure relates to the technical field of display control, in particular to a multi-screen independent refreshing method and device under an Android system. Background Along with the continuous popularization of folding screen terminals, double-screen terminals and external display devices, the multi-screen display capability in the Android system is widely applied to office collaboration, vehicle-mounted display, education demonstration, video and audio entertainment, industrial control and other scenes. In this type of application scenario, different displays often have different physical refresh rates, for example, the main display supports a higher refresh rate, and the auxiliary display uses a relatively lower refresh rate. In the actual operation process of the multi-screen system, the smooth display requirement of the high-refresh-rate display and the stable display requirement of the low-refresh-rate display are generally considered at the same time, so how to realize independent operation of a plurality of displays according to respective refresh rhythms in the same Android system becomes an important technical problem in the multi-screen display field. In the existing Android display framework, application drawing, system synthesis and physical display are generally scheduled around a unified display rhythm. In a multi-screen scenario, the system typically employs a single cadence display to drive the overall display pipeline, causing multiple displays to perform drawing, compositing, and rendering operations at the same VSync cadence. Because the refresh periods of different displays are not uniform, when a high refresh rate display works together with a low refresh rate display, the existing schemes generally limit the actual display cadence of each display to a lower refresh rate display, thereby resulting in the high refresh rate display failing to fully exploit its hardware refresh capabilities. Especially, under the condition that the main screen needs high frame rate smooth display and the auxiliary screen only needs lower frame rate stable display, the existing unified scheduling mode easily causes the display performance of the main screen to be reduced, and the interaction experience of a user is affected. Disclosure of Invention The embodiment of the disclosure provides at least a multi-screen independent refreshing method and device under an Android system, which optimize the display rhythm control, presentation judgment and presentation scheduling process on the basis of the existing Android display frame, so that different displays can independently execute frame presentation processing according to respective refreshing requirements, thereby reducing the mutual constraint among the displays with different refreshing rates, improving the display performance of the display with high refreshing rate and the fluency of multi-screen collaborative display, and simultaneously taking into account the simplicity, stability and compatibility of system realization. The embodiment of the disclosure provides a multi-screen independent refreshing method under an Android system, which comprises the following steps: determining a plurality of displays in an Android system and refresh parameters corresponding to the displays, and determining a target rhythm display with the highest refresh rate from the plurality of displays; based on the target rhythm display, a display refreshing driving rhythm is established, and a display pipeline is enabled to run according to the refreshing rhythm corresponding to the target rhythm display; Before the display processing of each frame, determining a target display set corresponding to the current frame according to the current display time corresponding to the target rhythm display and the respective refresh requirement of each display; And controlling the displays in the target display set to execute frame display processing, and controlling the displays which are not included in the target display set to skip the display processing of the current frame, so that different displays independently refresh the display according to the refresh rhythm. In an optional implementation manner, a display refresh driving rhythm is established based on the target rhythm display, so that a display pipeline runs according to the refresh rhythm corresponding to the target rhythm display, and the method specifically includes: Taking a refresh period corresponding to the target rhythm display as a unified driving rhythm of an application drawing end and a system synthesis end; and in the frame presenting stage, only waiting for the completion of the presenting operation corresponding to the target rhythm display so as to release the subsequent frame processing flow. In an optional implementation manner, according to the current presentation time corresponding to the target rhythm d