CN115639977B - Android graph synthesis method and device, electronic equipment and storage medium - Google Patents

Android graph synthesis method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115639977B
CN115639977B CN202211658359.9A CN202211658359A CN115639977B CN 115639977 B CN115639977 B CN 115639977B CN 202211658359 A CN202211658359 A CN 202211658359A CN 115639977 B CN115639977 B CN 115639977B
Authority
CN
China
Prior art keywords
vsync
hardware
android
state
storage medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211658359.9A
Other languages
Chinese (zh)
Other versions
CN115639977A (en
Inventor
董龙江
温健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Haima Cloud Technology Co ltd
Original Assignee
Anhui Haima Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Haima Cloud Technology Co ltd filed Critical Anhui Haima Cloud Technology Co ltd
Priority to CN202211658359.9A priority Critical patent/CN115639977B/en
Publication of CN115639977A publication Critical patent/CN115639977A/en
Application granted granted Critical
Publication of CN115639977B publication Critical patent/CN115639977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides an android graph synthesis method and device, electronic equipment and storage medium, wherein the method comprises the following steps: after closing a An Zhuozhu screen, receiving a vertical synchronization signal sent by VSYNC hardware; and performing graph synthesis based on the vertical synchronous signals, so that the graph synthesis frame rate of the container end and the host end is the same.

Description

Android graph synthesis method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of cloud application, in particular to an android graph synthesis method and device, electronic equipment and a storage medium.
Background
Common android phones are limited by the screen size, and usually only one android operating system can be operated at the same time, and only one application is supported at the forefront. In the field of cloud applications (such as cloud gaming), in order to maximize benefits, it is necessary to enable one processor to run multiple android operating systems simultaneously, each running an application. Based on performance considerations, a dock (dock is an open-source application container engine, so that the developer can package their applications and rely on packages into a portable container, then release them to any popular Linux or Windows operating system machine, and also implement virtualization, where the container is completely using sandbox mechanisms and does not have any interfaces with each other) technology can be used to start multiple android operating systems, where the android running on the original physical processor is called the host side, where the android running inside the dock is called the container side, where the host side and the container side share the same kernel and all hardware. The applicant found during the development that the graphics composition frame rate of the container side is inferior to that of the host side on the high-pass platform.
Therefore, how to provide a scheme to make the graphics composition frame rate of the container end and the host end the same becomes a technical problem to be solved.
Disclosure of Invention
Aiming at the technical problems in the prior art, the embodiment of the application provides an android graph synthesis method and device, electronic equipment and storage medium.
In a first aspect, an embodiment of the present application provides a method for synthesizing an android graphics, including:
after closing a An Zhuozhu screen, receiving a vertical synchronization signal sent by VSYNC hardware;
and performing graph synthesis based on the vertical synchronous signal.
In a second aspect, embodiments of the present application further provide an apparatus for synthesizing a Zhuo Tuxing sample, comprising:
the receiving unit is used for receiving a vertical synchronous signal sent by VSYNC hardware after closing a An Zhuozhu screen;
and the synthesis unit is used for carrying out graph synthesis based on the vertical synchronous signal.
In a third aspect, embodiments of the present application further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the android graphics compositing method according to the first aspect.
In a fourth aspect, embodiments of the present application further provide an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the android graphics compositing method according to the first aspect.
In summary, the android graphics synthesis method and device, the electronic device and the storage medium provided by the embodiment of the application receive the vertical synchronization signal sent by the VSYNC hardware after closing the An Zhuozhu screen; and performing graph synthesis based on the vertical synchronous signals, wherein when the container android performs graph synthesis, VSYNC hardware is started, and the VSYNC hardware cannot be influenced by a CPU, so that the same graph synthesis frame rate of the container end and the host end can be ensured.
Drawings
Fig. 1 is a schematic flow chart of an embodiment of an android graphics synthesis method provided in the embodiments of the present application;
fig. 2 is a schematic structural diagram of an embodiment of an apparatus for synthesizing Zhuo Tuxing according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
The applicant finds that the high-pass platform container end frame rate is smaller than the host end frame rate in the research and development process, and provides the following solution for solving the problem.
Referring to fig. 1, a flow chart of an android graphics synthesis method provided in an embodiment of the present application may include:
s10, after closing a An Zhuozhu screen, receiving a vertical synchronization signal sent by VSYNC hardware;
in this embodiment, when the An Zhuozhu screen is closed, the signal receiving VSYNC (vertical synchronization) hardware cannot be closed (the VSYNC hardware periodically sends a vertical synchronization signal), and the graphics display system performs display processing after receiving the synchronization signal, so as to avoid image tearing phenomenon). In this case, the graphic display system may continuously receive the vertical synchronization signal transmitted by the VSYNC hardware after closing the An Zhuozhu screen.
In addition, when the container android performs graphics synthesis, it is required to ensure that VSYNC hardware is available, and the container android can enable the VSYNC hardware to perform display processing.
S11, performing graph synthesis based on the vertical synchronous signals.
In this embodiment, after receiving the vertical synchronization signal sent by the VSYNC hardware, the graphics display system performs graphics synthesis based on the vertical synchronization signal.
According to the android graphics synthesis method, after a An Zhuozhu screen is closed, a vertical synchronization signal sent by VSYNC hardware is received; and performing graph synthesis based on the vertical synchronous signals, wherein when the container android performs graph synthesis, VSYNC hardware is started, and the VSYNC hardware cannot be influenced by a CPU, so that the same graph synthesis frame rate of the container end and the host end can be ensured.
On the basis of the foregoing method embodiment, before the receiving the vertical synchronization signal sent by the VSYNC hardware, the method may further include:
in the android starting process of the container, judging whether the state of the VSYNC hardware is a closed transition state or not;
and initializing the VSYNC hardware if the state of the VSYNC hardware is not the closed transition state.
In this embodiment, it should be noted that in this solution, in the android startup process of the container, whether the state of the VSYNC hardware is a closed transition state is determined; if the state of the VSYNC hardware is not the closed state, initializing the VSYNC hardware can ensure that the VSYNC hardware is successfully initialized in the starting process of the container android, so that the container android can start the VSYNC hardware.
On the basis of the foregoing method embodiment, the method may further include: when the An Zhuozhu screen is turned off, the logic of the android graphics composition is modified to turn off the power of the main screen only.
In this embodiment, when the logic for synthesizing the android graphics of the container is to turn off the An Zhuozhu screen, only the power supply of the main screen is turned off, and the signals sent by the VSYNC hardware are continuously kept and received, so as to ensure that the signals sent by the VSYNC hardware can be used by the android graphics of the container when synthesizing the graphics.
On the basis of the foregoing method embodiment, the method may further include:
modifying the initialization flow of the display to the VSYNC hardware to continue to execute the initialization flow under the condition that the state of the VSYNC hardware is not the closed state is judged and known.
In this embodiment, the initialization flow of the high-pass display to the VSYNC hardware may be modified, so that the initialization flow is continuously executed instead of selecting to close the VSYNC function when it is determined that the initial state of the VSYNC hardware is not closed, thereby ensuring that the container android can enable the VSYNC hardware.
Referring to fig. 2, a schematic structural diagram of an apparatus for synthesizing a Zhuo Tuxing synthetic device according to an embodiment of the present application is shown, including:
the receiving unit 20 is configured to receive a vertical synchronization signal sent by the VSYNC hardware after closing the An Zhuozhu screen;
a synthesizing unit 21 for performing graphics synthesis based on the vertical synchronization signal.
According to the android graphics synthesis device provided by the embodiment of the application, after the screen of An Zhuozhu is closed by the receiving unit 20, the vertical synchronization signal sent by the VSYNC hardware is received; by means of the synthesis unit 21, the vertical synchronization signal is used for carrying out graph synthesis, and in the scheme, when the container android carries out graph synthesis, VSYNC hardware is enabled and cannot be influenced by a CPU, so that the same graph synthesis frame rate of the container end and the host end can be ensured.
On the basis of the foregoing apparatus embodiment, the method may further include:
the judging unit is used for judging whether the state of the VSYNC hardware is in a closed state or not in the android starting process of the container before the receiving unit receives the vertical synchronous signal sent by the VSYNC hardware;
and the initialization unit is used for initializing the VSYNC hardware if the judging unit determines that the state of the VSYNC hardware is not the closed transition state.
On the basis of the foregoing apparatus embodiment, the method may further include:
and the first modification unit is used for modifying the logic of the android graphic composition to only turn off the power supply of the main screen when the An Zhuozhu screen is turned off.
On the basis of the foregoing apparatus embodiment, the method may further include:
the second modification unit is configured to modify an initialization flow of the display to the VSYNC hardware to continue to execute the initialization flow when it is determined that the state of the VSYNC hardware is not the off state.
As shown in fig. 3, an electronic device provided in an embodiment of the present application includes: the processor 30, the memory 31 and the bus 32, the memory 31 stores machine readable instructions executable by the processor 30, when the electronic device is running, the processor 30 communicates with the memory 31 through the bus 32, and the processor 30 executes the machine readable instructions to perform the steps of the android graphics synthesizing method as described above.
Specifically, the above-mentioned memory 31 and processor 30 can be general-purpose memories and processors, and are not particularly limited herein, and the above-mentioned android graphics synthesis method can be performed when the processor 30 runs a computer program stored in the memory 31.
Corresponding to the android graph synthesis method, the embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program executes the steps of the android graph synthesis method when being executed by a processor.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, which are not described in detail in this application. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. The android graph synthesis method is characterized by comprising the following steps of:
modifying the initialization flow of the display to the VSYNC hardware to continue to execute the initialization flow under the condition that the state of the VSYNC hardware is not the closed state;
when the An Zhuozhu screen is closed, modifying the logic of android graphic composition to only close the power supply of the main screen;
after closing the An Zhuozhu screen, the container android receives a vertical synchronization signal sent by VSYNC hardware;
the container An Zhuoji performs pattern synthesis on the vertical synchronization signal.
2. The method of claim 1, further comprising, prior to receiving the vertical synchronization signal transmitted by VSYNC hardware:
in the android starting process of the container, judging whether the state of the VSYNC hardware is a closed state or not;
and initializing the VSYNC hardware if the state of the VSYNC hardware is not the closed state.
3. An apparatus for synthesizing a Zhuo Tuxing compound, comprising:
the second modification unit is used for modifying the initialization flow of the display to the VSYNC hardware to continue to execute the initialization flow under the condition that the state of the VSYNC hardware is not the closed state;
the first modification unit is used for modifying the logic of the android graphic composition into a power supply of only closing the main screen when closing the An Zhuozhu screen;
the receiving unit is used for receiving a vertical synchronous signal sent by VSYNC hardware after closing a An Zhuozhu screen;
a synthesizing unit for performing graphic synthesis based on the vertical synchronization signal;
the receiving unit and the synthesizing unit are functional modules of the container android.
4. The apparatus as recited in claim 3, further comprising:
the judging unit is used for judging whether the state of the VSYNC hardware is a closed state or not in the android starting process of the container before the receiving unit receives the vertical synchronous signal sent by the VSYNC hardware;
and the initialization unit is used for initializing the VSYNC hardware if the judging unit determines that the state of the VSYNC hardware is not the closed state.
5. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the android graphics compositing method according to any of claims 1-2.
6. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the android graphics compositing method according to any of claims 1-2.
CN202211658359.9A 2022-12-23 2022-12-23 Android graph synthesis method and device, electronic equipment and storage medium Active CN115639977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211658359.9A CN115639977B (en) 2022-12-23 2022-12-23 Android graph synthesis method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211658359.9A CN115639977B (en) 2022-12-23 2022-12-23 Android graph synthesis method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115639977A CN115639977A (en) 2023-01-24
CN115639977B true CN115639977B (en) 2024-01-26

Family

ID=84949571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211658359.9A Active CN115639977B (en) 2022-12-23 2022-12-23 Android graph synthesis method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115639977B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360928B (en) * 2023-05-15 2023-08-29 摩尔线程智能科技(北京)有限责任公司 Optimization method and device of android container display system and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292807A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of figure synthetic method, window method to set up and system
WO2021136331A1 (en) * 2019-12-31 2021-07-08 Qualcomm Incorporated Software vsync filtering
CN113114843A (en) * 2021-03-25 2021-07-13 北京小米移动软件有限公司 Data processing method and device, terminal and storage medium
CN114035851A (en) * 2021-11-08 2022-02-11 北京鲸鲮信息系统技术有限公司 Multi-system graphic data processing method and device, electronic equipment and storage medium
CN114730226A (en) * 2019-09-25 2022-07-08 威世半导体有限公司 Under-display sensor, system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292807A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of figure synthetic method, window method to set up and system
CN114730226A (en) * 2019-09-25 2022-07-08 威世半导体有限公司 Under-display sensor, system and method
WO2021136331A1 (en) * 2019-12-31 2021-07-08 Qualcomm Incorporated Software vsync filtering
CN113114843A (en) * 2021-03-25 2021-07-13 北京小米移动软件有限公司 Data processing method and device, terminal and storage medium
CN114035851A (en) * 2021-11-08 2022-02-11 北京鲸鲮信息系统技术有限公司 Multi-system graphic data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115639977A (en) 2023-01-24

Similar Documents

Publication Publication Date Title
US10127073B2 (en) Operating system context switching
US9176765B2 (en) Virtual machine system and a method for sharing a graphics card amongst virtual machines
US8966477B2 (en) Combined virtual graphics device
EP2479666B1 (en) Methods and systems to display platform graphics during operating system initialization
CN102446119B (en) Virtual machine dynamical migration method based on Passthrough I/O device
US9495723B2 (en) Scale-up techniques for multi-GPU passthrough
CN107292807B (en) Graph synthesis method, window setting method and system
US8627133B2 (en) Virtual machine boot speed-up by clock acceleration
CN115639977B (en) Android graph synthesis method and device, electronic equipment and storage medium
EP2500818A1 (en) Method and device for displaying application image
US10949226B2 (en) Display method of multi-application based on Android system, and terminal device
US20210225096A1 (en) Power off and power on method and apparatus for an in-vehicle system
CN109936716B (en) Display driving realization method and system
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
CN108292233B (en) Application processor for starting virtual machine
CN114461287A (en) Operating system starting method and device, electronic equipment and storage medium
CN109426527B (en) Computer system and method for sharing Bluetooth data between UEFI firmware and operating system
CN109656675B (en) Bus equipment, computer equipment and method for realizing physical host cloud storage
CN115357310A (en) System starting method and device, electronic equipment and storage medium
CN111258668A (en) Method and device for dynamically switching display of GPU virtual desktop
CN115756730A (en) Virtual machine scheduling method and device, GPU and electronic equipment
EP3244311A1 (en) Multiprocessor system and method for operating a multiprocessor system
US11675600B2 (en) Computing method and apparatus with multi-phase/level boot
CN116594754A (en) Task scheduling method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 230031 Room 672, 6/F, Building A3A4, Zhong'an Chuanggu Science Park, No. 900, Wangjiang West Road, High-tech Zone, Hefei, Anhui

Applicant after: Anhui Haima Cloud Technology Co.,Ltd.

Address before: 100015 rooms 304 and 305, 3 / F, 201 / F, yard 10, Jiuxianqiao North Road, Chaoyang District, Beijing

Applicant before: BEIJING HAIYUDONGXIANG TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant