WO2017206893A1 - 界面刷新同步方法、装置、终端及存储介质 - Google Patents

界面刷新同步方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2017206893A1
WO2017206893A1 PCT/CN2017/086529 CN2017086529W WO2017206893A1 WO 2017206893 A1 WO2017206893 A1 WO 2017206893A1 CN 2017086529 W CN2017086529 W CN 2017086529W WO 2017206893 A1 WO2017206893 A1 WO 2017206893A1
Authority
WO
WIPO (PCT)
Prior art keywords
refresh
interface
thread
foreground applications
foreground
Prior art date
Application number
PCT/CN2017/086529
Other languages
English (en)
French (fr)
Inventor
曾元清
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to EP17805838.4A priority Critical patent/EP3407186B1/en
Publication of WO2017206893A1 publication Critical patent/WO2017206893A1/zh
Priority to US16/122,409 priority patent/US10810019B2/en
Priority to US16/435,298 priority patent/US10768947B2/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/395Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • G09G2340/0435Change or adaptation of the frame rate of the video stream
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to an interface refresh synchronization method, device, terminal, and storage medium.
  • kernel space is mainly the core functions of various operating systems (clock, task scheduling, FM voltage regulation, interrupt response, etc.).
  • Various applications run primarily in user space.
  • the interface refresh rate of the foreground application of human-computer interaction and interface update and its interface refresh content directly affect the user experience.
  • Embodiments of the present invention provide an interface refresh synchronization method, apparatus, terminal, and storage medium, which enable a kernel to understand each specific interface refresh operation of each foreground application.
  • an interface refresh synchronization method comprising:
  • a plurality of foreground applications in the user space of the operating system initiate an interface refresh operation, obtain, in the user space, a plurality of refresh information of the interface refresh operation, where the refresh information includes a thread number of each interface refresh operation, Refresh time and refresh content corresponding to each thread number;
  • a foreground application interface refresh synchronization device comprising:
  • the obtaining module is configured to obtain, in the user space, a plurality of refresh information of the interface refresh operation, where the refresh information includes each interface refresh, when a plurality of foreground applications in the user space of the operating system initiate an interface refresh operation
  • a transmission module configured to transmit the acquired refresh information of the multiple interface refresh operations to a kernel space of the operating system.
  • a terminal comprising: an input device, an output device, a memory, and a processor;
  • the memory is for storing instructions
  • the processor is operative to execute the instructions to implement some or all of the steps of the method described in the first aspect of the embodiments of the invention.
  • a storage medium storing a program, the program being executable to perform some or all of the steps of the method described in the first aspect of the embodiments of the present invention.
  • FIG. 1 is a schematic flowchart of an interface refresh synchronization method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another interface refresh synchronization method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an interface refresh synchronization apparatus according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of another foreground application interface refresh synchronization device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the signal bar application is responsible for updating the signal display
  • the browser is responsible for updating the web content
  • the power control module is responsible for updating the battery power icon
  • multiple foreground applications are completing their display window.
  • the synthesis operation is completed with the content of the entire display layer, and then the display interface of the kernel is actively called, and the display content is sent to the display device for display.
  • the kernel receives the display content of a complete layer and can count the overall screen refresh rate. However, it did not receive the refresh information of each individual application, and did not know which thread of each application is responsible for refreshing.
  • the specific refresh behavior and its refresh content each time caused it to be a central processor (English: Central
  • CPU processing unit
  • graphics processor English: Graphics Processing Unit, GPU
  • the resource requirements of the foreground application interface update service cannot be accurately sensed, resulting in the application of the card.
  • application performance issues such as stuck, and lead to power consumption issues related to it.
  • an interface refresh synchronization method, device, terminal, and storage medium By implementing an interface refresh synchronization method, device, terminal, and storage medium provided by an embodiment of the present invention, when multiple foreground applications in the user space of the operating system initiate an interface refresh operation, multiple interface refreshes are acquired in the user space.
  • the refresh information of the operation is used to transmit the refresh information of the obtained interface refresh operations to the kernel space of the operating system, where the refresh information includes a thread number of each interface refresh operation, a refresh time corresponding to each thread number, and a refresh content, thereby Let the kernel know about each specific interface refresh operation for each foreground application.
  • the foreground application is relative to the background application.
  • the front and back applications refer to the running application in the system.
  • the current application is displayed to the user and the user can operate the foreground application.
  • the foreground application foreground application In order to run in the background of the system, the foreground application foreground application generally runs in the user space of the operating system.
  • FIG. 1 is a schematic flowchart of an interface refresh synchronization method according to an embodiment of the present disclosure, where the method includes the following steps:
  • Each foreground application generally runs in the user space of the operating system.
  • the foreground application is relative to the background application.
  • the front and back applications refer to the running application in the system, but are currently displayed to the user. The user can operate the foreground application, and the background application runs in the background of the system.
  • the interface refresh rate of the foreground application of human-computer interaction and interface update and its interface refresh content directly affect the user experience.
  • the signal bar application is responsible for updating the signal display
  • the browser is responsible for updating the web content
  • the power control module is responsible for updating the battery power icon.
  • the refresh information of each interface refresh operation of the foreground application is obtained, where the refresh information includes a thread number of each interface refresh operation, and each thread number corresponds to The refresh time and the refresh content of each frame.
  • the thread number of the initiating application party can be queried through the standard interface of the operating system, and the specific thread of which application is initiated by each application is clearly recorded, and according to the thread number. Sorting and sorting, effectively distinguishing display updates of the same or different regions initiated by different threads of the same application; if there are multiple foreground applications simultaneously initiating an interface refresh operation, acquiring refresh information of each interface refresh operation of multiple foreground applications .
  • the process number of the interface refresh operation can also be obtained, and each process can include multiple threads. It should be noted that obtaining the refresh content of each frame can actually obtain the cache address of the refresh content, and the kernel can obtain the refresh content from the cache address of the refresh content.
  • the interface refresh operation includes a graphic display operation and an image synthesis operation, that is, each foreground application completes one frame display data preparation of its display window, and completes the synthesis operation with the content of the entire display layer.
  • a foreground application refresh synchronization method is configured to obtain refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user space of the operating system initiate an interface refresh operation.
  • the acquired refresh information of the multiple interface refresh operations is transmitted to the kernel space of the operating system, and the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each foreground.
  • Each specific interface refresh operation of the application is configured to obtain refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user space of the operating system initiate an interface refresh operation.
  • the acquired refresh information of the multiple interface refresh operations is transmitted to the kernel space of the operating system, and the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each foreground.
  • Each specific interface refresh operation of the application is configured to obtain refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user
  • FIG. 2 is a schematic flowchart of another interface refresh synchronization method according to an embodiment of the present invention, where the method includes the following steps:
  • the refresh information of each interface refresh operation of the foreground application is obtained, where the refresh information includes a thread number of each interface refresh operation, and each thread number corresponds to The refresh time and the refresh content of each frame.
  • each application directly calls the basic graphics library of the operating system in the process of calling the core function of the graphic display or image synthesis, and obtains the corresponding basic graphic for the interface refresh, because the basic graphic
  • the specific refresh content is included, and the refresh content includes: refreshing the window size, refreshing the changed pixel points, and refreshing rate, and the like, so that the refresh content of the interface refresh operation can be determined according to the basic graphic obtained from the basic graphics library, and then
  • the thread number of the initiating application party can be queried through the standard interface of the operating system, and clearly which application is initiated by which thread each refresh operation is performed, and classified according to the thread number, effectively distinguishing between different threads initiated by the same application. Display updates for the same or different regions to Obtaining the refresh time corresponding to each thread number.
  • process ID of the interface refresh operation may also be obtained, and each process may include multiple threads; if multiple foreground applications simultaneously initiate an interface refresh operation, multiple foreground applications are acquired. Refresh information for each interface refresh operation of the program. It should be noted that obtaining the refresh content of each frame can actually obtain the cache address of the refreshed content.
  • the interface refresh operation includes a graphic display operation and an image synthesis operation, that is, each foreground application completes one frame display data preparation of its display window, and completes the synthesis operation with the content of the entire display layer.
  • S204 is specifically: analyzing, in the kernel space, a weight of a plurality of factors of the refresh content according to the plurality of foreground applications, and analyzing each interface refresh operation of the plurality of foreground applications The refresh content corresponding to the thread number is obtained, and the refresh load condition of each thread of the plurality of foreground applications is obtained; wherein the plurality of factors for refreshing the content include: refreshing the window size, refreshing the changed pixel point, and the refresh rate.
  • the refresh content of each frame of each application is analyzed, and the refresh load of each thread of each application is obtained, which can make the load analysis result more accurate.
  • S205 Perform system frequency modulation and task scheduling according to a refresh load condition of each thread of the plurality of foreground applications.
  • auxiliary parameters of important decisions can accurately sense the resource requirements of the foreground application interface update service, so as to accurately perform system frequency modulation and task scheduling.
  • a foreground application refresh synchronization method is configured to obtain refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user space of the operating system initiate an interface refresh operation.
  • Get the refresh information of multiple interface refresh operations to the operation The kernel space of the system, the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each specific interface refresh operation of each foreground application; After understanding each specific interface refresh operation of each foreground application, it can accurately perceive the resource requirements of the foreground application interface update service, thereby accurately performing system frequency modulation and task scheduling.
  • FIG. 3 is a schematic structural diagram of a foreground application interface refresh synchronization device according to an embodiment of the present invention.
  • the device 1000 includes two operation spaces, a user space and a kernel space, and the functions of the device are implemented in two operation spaces.
  • the apparatus 1000 includes: an obtaining module 11 and a transmitting module 12. specifically:
  • the obtaining module 11 is configured to obtain, in the user space, a plurality of refresh information of the interface refresh operation when a plurality of foreground applications in the user space of the operating system initiate an interface refresh operation.
  • Each foreground application generally runs in the user space of the operating system.
  • the foreground application is relative to the background application.
  • the front and back applications refer to the running application in the system, but are currently displayed to the user. The user can operate the foreground application, and the background application runs in the background of the system.
  • the interface refresh rate of the foreground application of human-computer interaction and interface update and its interface refresh content directly affect the user experience.
  • the signal bar application is responsible for updating the signal display
  • the browser is responsible for updating the web content
  • the power control module is responsible for updating the battery power icon.
  • the refresh information of each interface refresh operation of the foreground application is obtained, where the refresh information includes a thread number of each interface refresh operation, and each thread number corresponds to The refresh time and the refresh content of each frame.
  • the thread number of the initiating application party can be queried through the standard interface of the operating system, and the record is clearly recorded each time.
  • the refresh operation is initiated by which thread of the application, and is sorted according to the thread number, effectively distinguishing the display update of the same or different regions initiated by different threads of the same application; if there are multiple foreground applications simultaneously initiating the interface refresh operation , to obtain refresh information for each interface refresh operation of multiple foreground applications.
  • the process number of the interface refresh operation can also be obtained, and each process can include multiple threads. It should be noted that obtaining the refresh content of each frame can actually obtain the cache address of the refresh content, and the kernel can obtain the refresh content from the cache address of the refresh content.
  • the interface refresh operation includes a graphic display operation and an image synthesis operation, that is, each foreground application completes one frame display data preparation of its display window, and completes the synthesis operation with the content of the entire display layer.
  • the transmission module 12 is configured to transmit the acquired refresh information of the multiple interface refresh operations to a kernel space of the operating system.
  • a foreground application refresh synchronization system acquires refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user space of the operating system initiate an interface refresh operation.
  • the acquired refresh information of the multiple interface refresh operations is transmitted to the kernel space of the operating system, and the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each foreground.
  • Each specific interface refresh operation of the application is transmitted to the kernel space of the operating system, and the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each foreground.
  • the device 2000 includes two operation spaces, a user space and a kernel space, and the functions of the device are implemented in two operation spaces.
  • the apparatus 2000 includes: an obtaining module 21, a transmitting module 22, an analyzing module 23, and a scheduling module 24. specifically:
  • the obtaining module 21 is configured to obtain, in the user space, a plurality of refresh information of the interface refresh operation when a plurality of foreground applications in the user space of the operating system initiate an interface refresh operation.
  • the obtaining module 21 includes an obtaining unit 211 and a determining unit 212. specifically:
  • the obtaining unit 211 is configured to: when a plurality of foreground applications in the user space of the operating system initiate an interface refresh operation, obtain a corresponding basic graphic from the basic graphics library of the user space for the interface Refresh.
  • the determining unit 212 is configured to determine, according to the basic graphic acquired from the basic graphic library, refresh information of the plurality of interface refresh operations.
  • the refresh information of each interface refresh operation of the foreground application is obtained, where the refresh information includes a thread number of each interface refresh operation, and each thread number corresponds to The refresh time and the refresh content of each frame.
  • each application directly calls the basic graphics library of the operating system in the process of calling the core function of the graphic display or image synthesis, and obtains the corresponding basic graphic for the interface refresh, because the basic graphic
  • the specific refresh content is included, and the refresh content includes: refreshing the window size, refreshing the changed pixel points, and refreshing rate, and the like, so that the refresh content of the interface refresh operation can be determined according to the basic graphic obtained from the basic graphics library, and then
  • the thread number of the initiating application party can be queried through the standard interface of the operating system, and clearly which application is initiated by which thread each refresh operation is performed, and classified according to the thread number, effectively distinguishing between different threads initiated by the same application. Display updates for the same or different regions to Obtaining the refresh time corresponding to each thread number.
  • process ID of the interface refresh operation may also be obtained, and each process may include multiple threads; if multiple foreground applications simultaneously initiate an interface refresh operation, multiple foreground applications are acquired. Refresh information for each interface refresh operation of the program. It should be noted that obtaining the refresh content of each frame can actually obtain the cache address of the refreshed content.
  • the interface refresh operation includes a graphic display operation and an image synthesis operation, that is, each foreground application completes one frame display data preparation of its display window, and completes the synthesis operation with the content of the entire display layer.
  • the transmission module 22 is configured to transmit the acquired refresh information of the multiple interface refresh operations to the kernel space of the operating system.
  • the analyzing module 23 is configured to analyze the refresh content corresponding to each thread number of the plurality of interface refresh operations in the kernel space, and obtain a refresh load condition of each thread of the plurality of foreground applications.
  • the size, the refreshed pixel point and its refresh rate are analyzed and calculated, and the refresh load of each display thread in each application is obtained.
  • the analyzing module 23 is specifically configured to: in the kernel space, analyze an interface refresh of the multiple foreground applications according to weights set by multiple foreground applications for multiple factors of refreshing content
  • the refresh content corresponding to each thread number of the operation obtains a refresh load condition of each thread of the plurality of foreground applications; wherein the plurality of factors for refreshing the content include: refreshing the window size, refreshing the changed pixel points, and refreshing rate.
  • the refresh content of each frame of each application is analyzed, and the refresh load of each thread of each application is obtained, which can make the load analysis result more accurate.
  • the scheduling module 24 is configured to perform system frequency modulation and task scheduling according to a refresh load condition of each thread of the plurality of foreground applications.
  • the analysis results are submitted to the kernel's task scheduler, frequency regulator and its CPU/GPU hot plugger as auxiliary parameters for important decisions such as task priority, task scheduling, frequency modulation, and switching core, so that the foreground can be accurately perceived.
  • the application interface updates the resource requirements of the service to accurately perform system frequency modulation and task scheduling.
  • a foreground application refresh synchronization system acquires refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user space of the operating system initiate an interface refresh operation.
  • the acquired refresh information of the multiple interface refresh operations is transmitted to the kernel space of the operating system, and the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each foreground.
  • Each specific interface refresh operation of the application after understanding each specific interface refresh operation of each foreground application, the kernel can accurately perceive the resource requirements of the foreground application interface update service, thereby accurately performing system frequency modulation and tasks. Scheduling.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 5, the terminal 3000 can include:
  • the input device 31, the output device 32, the memory 33, and the processor 34 (the number of the processors 34 in the terminal may be one or more, and one processor in FIG. 5 is taken as an example).
  • Some embodiments of the invention The input device 31, the output device 32, the memory 33, and the processor 34 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the memory 33 is configured to store an instruction
  • the processor 34 is configured to execute the instructions to:
  • a plurality of foreground applications in the user space of the operating system initiate an interface refresh operation, obtain, in the user space, a plurality of refresh information of the interface refresh operation, where the refresh information includes a thread number of each interface refresh operation, Refresh time and refresh content corresponding to each thread number;
  • the processor 34 is further configured to:
  • System frequency modulation and task scheduling are performed according to refresh load conditions of respective threads of the plurality of foreground applications.
  • the interface refresh operation includes a graphic display operation and an image synthesis operation.
  • the processor 34 is specifically configured to:
  • the refresh information of the plurality of interface refresh operations is determined according to the base graphics acquired from the basic graphics library.
  • the processor 34 is specifically configured to:
  • the refresh content corresponding to each thread number of the interface refresh operation of the plurality of foreground applications is analyzed according to the weights set by the plurality of foreground applications on the plurality of factors of the refresh content, and the obtained A refresh load condition of each thread of the plurality of foreground applications; wherein the plurality of factors for refreshing the content include: refreshing the window size, refreshing the changed pixel points, and refreshing the rate.
  • a foreground application refresh synchronization system acquires refresh information of multiple interface refresh operations in a user space when multiple foreground applications in the user space of the operating system initiate an interface refresh operation.
  • Get the refresh information of multiple interface refresh operations to the operation The kernel space of the system, the refresh information includes the thread number of each interface refresh operation, the refresh time corresponding to each thread number, and the refresh content, so that the kernel can understand each specific interface refresh operation of each foreground application; After understanding each specific interface refresh operation of each foreground application, it can accurately perceive the resource requirements of the foreground application interface update service, thereby accurately performing system frequency modulation and task scheduling.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the interface refresh synchronization methods described in the foregoing method embodiments.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • the computer readable medium may include a random access memory (RAM), a read-only memory (ROM), and an electrically erasable programmable read-only memory (Electrically Erasable Programmable).
  • EEPROM Electrically Error Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • Any connection may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, wireless and microwave are included in the media In the shadow.
  • DSL Digital Subscriber Line
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种界面刷新同步方法、装置、终端及存储介质。当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息(S101),将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间(S102),该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作。

Description

界面刷新同步方法、装置、终端及存储介质
本发明要求2016年5月31日递交的发明名称为“一种前景应用程序界面刷新同步方法及系统”的申请号201610382641.7的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及计算机技术领域,尤其涉及一种界面刷新同步方法、装置、终端及存储介质。
背景技术
在当前主流的操作系统中,通常分为两种运行空间:内核空间(kernel)和用户空间(user space)。内核空间主要是各种操作系统核心功能(时钟,任务调度,调频调压,中断响应等)。各种应用程序则主要运行在用户空间中。在具有人机交互界面的系统中,人机交互和界面更新的前景应用的界面刷新率及其界面刷新内容会直接影响到用户体验。
发明内容
本发明实施例提供一种界面刷新同步方法、装置、终端及存储介质,能使内核了解每个前景应用程序的每个具体的界面刷新操作。
一方面,提供了一种界面刷新同步方法,所述方法包括:
当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容;
将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核 空间。
另一方面,提供了一种前景应用程序界面刷新同步装置,所述装置包括:
获取模块,用于当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容;
传输模块,用于将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
又一方面,提供了一种终端,所述终端包括:输入装置、输出装置、存储器和处理器;
所述存储器用于存储指令;
所述处理器用于执行所述指令以实现本发明实施例第一方面所描述的方法中的部分或全部步骤。
又一方面,提供了一种存储介质,所述存储介质存储有程序,所述程序可被执行,以执行本发明实施例第一方面所描述的方法中的部分或全部步骤。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种界面刷新同步方法的流程示意图;
图2为本发明实施例提供的另一种界面刷新同步方法的流程示意图;
图3为本发明实施例提供的一种界面刷新同步装置的结构示意图;
图4为本发明实施例提供的另一种前景应用程序界面刷新同步装置的结构示意图;
图5为本发明实施例提供的一种终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
很多人机交互场景下,例如手机上网界面里,信号栏应用负责更新信号显示,而浏览器负责更新网页内容,同时电量控制模块负责更新电池电量图标,多个前景应用程序在完成其显示窗口的一帧显示数据准备之后,会和当前整个显示图层的内容完成合成操作,然后主动的调用内核的显示接口,将显示内容发送给显示设备进行显示。这个过程中,内核收到的是一个完整图层的显示内容,并能够统计整体的屏幕刷新率。但是,它没能够收到每一个独立应用的刷新信息,并不知道具体每个应用的哪个线程负责刷新,具体每次的刷新行为及其刷新内容,导致其在做中央处理器(英文:Central Processing Unit,简称:CPU)/图形处理器(英文:Graphics Processing Unit,简称:GPU)核数控制和调频策略的时候,无法精确的感知前景应用界面更新业务的资源需求,导致容易出现应用卡顿,应用卡死等性能问题,并导致与之相关的功耗问题。
通过实施本发明实施例提供的一种界面刷新同步方法、装置、终端及存储介质,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在用户空间中获取多个界面刷新操作的刷新信息,将获取的多个界面刷新操作的刷新信息传输给操作系统的内核空间,该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作。
前景应用程序是相对于后景应用程序而言的,前、后景应用程序是指系统中正在运行的应用程序,其中,当前显示给用户、用户能操作的是前景应用程 序,在系统后台运行的是后景应用程序前景应用程序一般运行在操作系统的用户空间中。
图1为本发明实施例提供的一种界面刷新同步方法的流程示意图,该方法包括以下步骤:
S101,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息。
各前景应用程序一般运行在操作系统的用户空间中,前景应用程序是相对于后景应用程序而言的,前、后景应用程序是指系统中正在运行的应用程序,然而当前显示给用户、用户能操作的是前景应用程序,后景应用程序在系统后台运行。
在具有人机交互界面的系统中,人机交互和界面更新的前景应用的界面刷新率及其界面刷新内容会直接影响到用户体验。例如手机上网界面里,信号栏应用负责更新信号显示,而浏览器负责更新网页内容,同时电量控制模块负责更新电池电量图标。本实施例中,当任一前景应用程序发起界面刷新操作时,获取该前景应用程序的每一次界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和每一帧刷新内容,具体地,可以通过操作系统标准接口查询发起应用方的线程号,清晰的记录了每次刷新操作是由哪个应用的具体哪个线程发起的,并根据线程号进行分类整理,有效地区分同一应用不同线程发起的同一或不同区域的显示更新;如果存在多个前景应用程序同时发起界面刷新操作,则获取多个前景应用程序的每一次界面刷新操作的刷新信息。此外,还可以获取界面刷新操作的进程号,每一个进程可包括多个线程。需要说明的是,获取每一帧刷新内容事实上可以获取刷新内容的缓存地址即可,内核可以从刷新内容的缓存地址获取到刷新内容。
所述界面刷新操作包括图形显示操作和图像合成操作,即各个前景应用程序完成其显示窗口的一帧显示数据准备,再和当前整个显示图层的内容完成合成操作。
S102,将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
用户空间主动访问内核接口,将刷新信息发送给内核。
根据本发明实施例提供的一种前景应用程序刷新同步方法,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在用户空间中获取多个界面刷新操作的刷新信息,将获取的多个界面刷新操作的刷新信息传输给操作系统的内核空间,该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作。
图2为本发明实施例提供的另一种界面刷新同步方法的流程示意图,该方法包括以下步骤:
S201,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,从所述用户空间的基础图形库中获取对应的基础图形用于界面刷新。
S202,根据从所述基础图形库中获取的基础图形确定多个所述界面刷新操作的刷新信息。
本实施例中,当任一前景应用程序发起界面刷新操作时,获取该前景应用程序的每一次界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和每一帧刷新内容,具体地,各个应用在图形显示或图像合成的核心函数调用过程中,直接调用操作系统的基础图形库,获取对应的基础图形用于界面刷新,由于基础图形中包含了具体的刷新内容,刷新内容包括:刷新窗口大小、刷新变化的像素点和刷新率等多个因素,因此,根据从基础图形库获取的基础图形可以确定界面刷新操作的刷新内容,然后可以通过操作系统标准接口查询发起应用方的线程号,清晰的记录了每次刷新操作是由哪个应用的具体哪个线程发起的,并根据线程号进行分类整理,有效地区分同一应用不同线程发起的同一或不同区域的显示更新,以及获取每个线程号对应的刷新时间,此外,还可以获取界面刷新操作的进程号,每一个进程可包括多个线程;如果存在多个前景应用程序同时发起界面刷新操作,则获取多个前景应用程序的每一次界面刷新操作的刷新信息。需要说明的是,获取每一帧刷新内容事实上可以获取刷新内容的缓存地址即可。
所述界面刷新操作包括图形显示操作和图像合成操作,即各个前景应用程序完成其显示窗口的一帧显示数据准备,再和当前整个显示图层的内容完成合成操作。
S203,将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
用户空间主动访问内核接口,将刷新信息发送给内核。
S204,在所述内核空间中,分析所述多个界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况。
按照预先约定的数据格式对用户空间传输过来的各个应用的刷新信息做出整理,并针对每一应用的每一显示线程的刷新内容的多个因素例如刷新窗口大小、刷新变化的像素点及其刷新率等进行分析计算,得出相应的各个应用中各个显示线程的刷新负载情况。
在具体的实现方式中,S204具体为:在所述内核空间中,根据多个前景应用程序对刷新内容的多个因素设定的权重,分析所述多个前景应程序的界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;其中,所述刷新内容的多个因素包括:刷新窗口大小、刷新变化的像素点和刷新率。在该实现方式中,根据各个应用对刷新内容的多个因素分别设定的权重,分析各个应用的每一帧界面刷新内容,得到各应用各线程的刷新负载情况,可以使得负载分析结果更准确。
S205,根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
将分析结果提交给内核的任务调度器(scheduler),频率调节器(governor)及其CPU/GPU热插拔器(CPU/GPU hotplug),作为其任务优先级、任务调度、调频、开关核等重要决策的辅助参数,从而可以精确的感知前景应用界面更新业务的资源需求,从而准确地进行系统调频和任务调度。
根据本发明实施例提供的一种前景应用程序刷新同步方法,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在用户空间中获取多个界面刷新操作的刷新信息,将获取的多个界面刷新操作的刷新信息传输给操作 系统的内核空间,该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作;内核在了解每个前景应用程序的每个具体的界面刷新操作后,可以精确的感知前景应用界面更新业务的资源需求,从而准确地进行系统调频和任务调度。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为根据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
图3为本发明实施例提供的一种前景应用程序界面刷新同步装置的结构示意图,该装置1000包括用户空间和内核空间两个运行空间,该装置的功能在两个运行空间中实现。本实施例中,该装置1000包括:获取模块11和传输模块12。具体地:
获取模块11,用于当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息。
各前景应用程序一般运行在操作系统的用户空间中,前景应用程序是相对于后景应用程序而言的,前、后景应用程序是指系统中正在运行的应用程序,然而当前显示给用户、用户能操作的是前景应用程序,后景应用程序在系统后台运行。
在具有人机交互界面的系统中,人机交互和界面更新的前景应用的界面刷新率及其界面刷新内容会直接影响到用户体验。例如手机上网界面里,信号栏应用负责更新信号显示,而浏览器负责更新网页内容,同时电量控制模块负责更新电池电量图标。本实施例中,当任一前景应用程序发起界面刷新操作时,获取该前景应用程序的每一次界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和每一帧刷新内容,具体地,可以通过操作系统标准接口查询发起应用方的线程号,清晰的记录了每次 刷新操作是由哪个应用的具体哪个线程发起的,并根据线程号进行分类整理,有效地区分同一应用不同线程发起的同一或不同区域的显示更新;如果存在多个前景应用程序同时发起界面刷新操作,则获取多个前景应用程序的每一次界面刷新操作的刷新信息。此外,还可以获取界面刷新操作的进程号,每一个进程可包括多个线程。需要说明的是,获取每一帧刷新内容事实上可以获取刷新内容的缓存地址即可,内核可以从刷新内容的缓存地址获取到刷新内容。
所述界面刷新操作包括图形显示操作和图像合成操作,即各个前景应用程序完成其显示窗口的一帧显示数据准备,再和当前整个显示图层的内容完成合成操作。
传输模块12,用于将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
用户空间主动访问内核接口,将刷新信息发送给内核。
根据本发明实施例提供的一种前景应用程序刷新同步系统,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在用户空间中获取多个界面刷新操作的刷新信息,将获取的多个界面刷新操作的刷新信息传输给操作系统的内核空间,该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作。
图4为本发明实施例提供的另一种前景应用程序界面刷新同步装置的结构示意图,该装置2000包括用户空间和内核空间两个运行空间,该装置的功能在两个运行空间中实现。本实施例中,该装置2000包括:获取模块21、传输模块22、分析模块23和调度模块24。具体地:
获取模块21,用于当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息。
本实施例中,获取模块21包括获取单元211和确定单元212。具体地:
获取单元211,用于当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,从所述用户空间的基础图形库中获取对应的基础图形用于界面 刷新。
确定单元212,用于根据从所述基础图形库中获取的基础图形确定多个所述界面刷新操作的刷新信息。
本实施例中,当任一前景应用程序发起界面刷新操作时,获取该前景应用程序的每一次界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和每一帧刷新内容,具体地,各个应用在图形显示或图像合成的核心函数调用过程中,直接调用操作系统的基础图形库,获取对应的基础图形用于界面刷新,由于基础图形中包含了具体的刷新内容,刷新内容包括:刷新窗口大小、刷新变化的像素点和刷新率等多个因素,因此,根据从基础图形库获取的基础图形可以确定界面刷新操作的刷新内容,然后可以通过操作系统标准接口查询发起应用方的线程号,清晰的记录了每次刷新操作是由哪个应用的具体哪个线程发起的,并根据线程号进行分类整理,有效地区分同一应用不同线程发起的同一或不同区域的显示更新,以及获取每个线程号对应的刷新时间,此外,还可以获取界面刷新操作的进程号,每一个进程可包括多个线程;如果存在多个前景应用程序同时发起界面刷新操作,则获取多个前景应用程序的每一次界面刷新操作的刷新信息。需要说明的是,获取每一帧刷新内容事实上可以获取刷新内容的缓存地址即可。
所述界面刷新操作包括图形显示操作和图像合成操作,即各个前景应用程序完成其显示窗口的一帧显示数据准备,再和当前整个显示图层的内容完成合成操作。
传输模块22,用于将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
用户空间主动访问内核接口,将刷新信息发送给内核。
分析模块23,用于在所述内核空间中,分析所述多个界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况。
按照预先约定的数据格式对用户空间传输过来的各个应用的刷新信息做出整理,并针对每一应用的每一显示线程的刷新内容的多个因素例如刷新窗口 大小、刷新变化的像素点及其刷新率等进行分析计算,得出相应的各个应用中各个显示线程的刷新负载情况。
在具体的实现方式中,分析模块23具体用于:在所述内核空间中,根据多个前景应用程序对刷新内容的多个因素设定的权重,分析所述多个前景应程序的界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;其中,所述刷新内容的多个因素包括:刷新窗口大小、刷新变化的像素点和刷新率。在该实现方式中,根据各个应用对刷新内容的多个因素分别设定的权重,分析各个应用的每一帧界面刷新内容,得到各应用各线程的刷新负载情况,可以使得负载分析结果更准确。
调度模块24,用于根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
将分析结果提交给内核的任务调度器,频率调节器及其CPU/GPU热插拔器,作为其任务优先级、任务调度、调频、开关核等重要决策的辅助参数,从而可以精确的感知前景应用界面更新业务的资源需求,从而准确地进行系统调频和任务调度。
根据本发明实施例提供的一种前景应用程序刷新同步系统,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在用户空间中获取多个界面刷新操作的刷新信息,将获取的多个界面刷新操作的刷新信息传输给操作系统的内核空间,该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作;内核在了解每个前景应用程序的每个具体的界面刷新操作后,可以精确的感知前景应用界面更新业务的资源需求,从而准确地进行系统调频和任务调度。
图5为本发明实施例提供的一种终端的结构示意图。如图5所示,该终端3000可包括:
输入装置31、输出装置32、存储器33和处理器34(终端中的处理器34的数量可以一个或多个,图5中以一个处理器为例)。在本发明的一些实施例 中,输入装置31、输出装置32、存储器33和处理器34可通过总线或其它方式连接,其中,图5中以通过总线连接为例。
所述存储器33用于存储指令;
所述处理器34用于执行所述指令以实现:
当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容;
将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
优选地,所述处理器34还用于:
在所述内核空间中,分析所述多个界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;
根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
优选地,所述界面刷新操作包括图形显示操作和图像合成操作。
优选地,所述处理器34具体用于:
当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,从所述用户空间的基础图形库中获取对应的基础图形用于界面刷新;
根据从所述基础图形库中获取的基础图形确定多个所述界面刷新操作的刷新信息。
优选地,所述处理器34具体用于:
在所述内核空间中,根据多个前景应用程序对刷新内容的多个因素设定的权重,分析所述多个前景应程序的界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;其中,所述刷新内容的多个因素包括:刷新窗口大小、刷新变化的像素点和刷新率。
根据本发明实施例提供的一种前景应用程序刷新同步系统,当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在用户空间中获取多个界面刷新操作的刷新信息,将获取的多个界面刷新操作的刷新信息传输给操作 系统的内核空间,该刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容,从而可以使内核了解每个前景应用程序的每个具体的界面刷新操作;内核在了解每个前景应用程序的每个具体的界面刷新操作后,可以精确的感知前景应用界面更新业务的资源需求,从而准确地进行系统调频和任务调度。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种界面刷新同步方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(Digital Subscriber Line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定 影中。如本发明所使用的,盘(Disk)和碟(disc)包括压缩光碟(CD)、激光碟、光碟、数字通用光碟(DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。
总之,以上所述仅为本发明技术方案的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (20)

  1. 一种界面刷新同步方法,其特征在于,所述方法包括:
    当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息;
    将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述内核空间中,分析所述多个界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;
    根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
  3. 如权利要求2所述的方法,其特征在于,所述在所述内核空间中,分析所述多个界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况,包括:
    在所述内核空间中,根据多个前景应用程序对刷新内容的多个因素设定的权重,分析所述多个前景应程序的界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;
    其中,所述刷新内容的多个因素包括:刷新窗口大小、刷新变化的像素点和刷新率。
  4. 如权利要求2所述的方法,其特征在于,所述根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度,包括:
    将所述多个前景应用程序的各个线程的刷新负载情况发送至内核的任务调度器,频率调节器及CPU/GPU热插拔器,以使所述任务调度器,频率调节器及CPU/GPU热插拔器根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息,包括:
    当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,从所述用户空间的基础图形库中获取对应的基础图形用于界面刷新;
    根据从所述基础图形库中获取的基础图形确定多个所述界面刷新操作的刷新信息。
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间,包括:
    通过用户空间主动访问内核接口,将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述界面刷新操作包括图形显示操作和图像合成操作。
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容。
  9. 如权利要求1至8任一项所述的方法,其特征在于,所述前景应用程序运行于所述用户空间。
  10. 一种界面刷新同步装置,其特征在于,所述装置包括:
    获取模块,用于当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,在所述用户空间中获取多个所述界面刷新操作的刷新信息,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容;
    传输模块,用于将获取的所述多个界面刷新操作的刷新信息传输给所述操 作系统的内核空间。
  11. 如权利要求10所述的装置,其特征在于,所述装置还包括:
    分析模块,用于在所述内核空间中,分析所述多个界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;
    调度模块,用于根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
  12. 如权利要求11所述的装置,其特征在于,所述分析模块具体用于:
    在所述内核空间中,根据多个前景应用程序对刷新内容的多个因素设定的权重,分析所述多个前景应程序的界面刷新操作的每个线程号对应的刷新内容,得到所述多个前景应用程序的各个线程的刷新负载情况;
    其中,所述刷新内容的多个因素包括:刷新窗口大小、刷新变化的像素点和刷新率。
  13. 如权利要求11所述的装置,其特征在于,所述调度模块,具体用于将所述多个前景应用程序的各个线程的刷新负载情况发送至内核的任务调度器,频率调节器及CPU/GPU热插拔器,以使所述任务调度器,频率调节器及CPU/GPU热插拔器根据所述多个前景应用程序的各个线程的刷新负载情况,进行系统调频和任务调度。
  14. 如权利要求10-13任一项所述的装置,其特征在于,所述获取模块包括:
    获取单元,用于当操作系统的用户空间中的多个前景应用程序发起界面刷新操作时,从所述用户空间的基础图形库中获取对应的基础图形用于界面刷新;
    确定单元,用于根据从所述基础图形库中获取的基础图形确定多个所述界 面刷新操作的刷新信息。
  15. 如权利要求10-14任一项所述的装置,其特征在于,所述传输模块,具体用于通过用户空间主动访问内核接口,将获取的所述多个界面刷新操作的刷新信息传输给所述操作系统的内核空间。
  16. 如权利要求10-15任一项所述的装置,其特征在于,所述界面刷新操作包括图形显示操作和图像合成操作。
  17. 如权利要求10-16任一项所述的装置,其特征在于,所述刷新信息包括各界面刷新操作的线程号、每个线程号对应的刷新时间和刷新内容。
  18. 如权利要求10-17任一项所述的装置,其特征在于,其特征在于,所述前景应用程序运行于所述用户空间。
  19. 一种终端,其特征在于,所述系统包括:存储器和处理器;
    所述存储器用于存储指令;
    所述处理器用于执行所述指令以执行权利要求1-9任一项所述的方法。
  20. 一种存储介质,所述存储介质存储有程序,所述程序用于执行权利要求1-9任一项所述的方法。
PCT/CN2017/086529 2016-05-31 2017-05-31 界面刷新同步方法、装置、终端及存储介质 WO2017206893A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP17805838.4A EP3407186B1 (en) 2016-05-31 2017-05-31 Interface refresh synchronization method and apparatus, terminal, and storage medium
US16/122,409 US10810019B2 (en) 2016-05-31 2018-09-05 Method for interface refresh synchronization, terminal device, and non-transitory computer-readable storage medium
US16/435,298 US10768947B2 (en) 2016-05-31 2019-06-07 Method for interface refresh synchronization,terminal device, and non-transitory computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610382641.7A CN106095417B (zh) 2016-05-31 2016-05-31 一种前景应用程序界面刷新同步方法及系统
CN201610382641.7 2016-05-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/122,409 Continuation-In-Part US10810019B2 (en) 2016-05-31 2018-09-05 Method for interface refresh synchronization, terminal device, and non-transitory computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2017206893A1 true WO2017206893A1 (zh) 2017-12-07

Family

ID=57447252

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086529 WO2017206893A1 (zh) 2016-05-31 2017-05-31 界面刷新同步方法、装置、终端及存储介质

Country Status (4)

Country Link
US (2) US10810019B2 (zh)
EP (1) EP3407186B1 (zh)
CN (1) CN106095417B (zh)
WO (1) WO2017206893A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095417B (zh) * 2016-05-31 2019-04-05 Oppo广东移动通信有限公司 一种前景应用程序界面刷新同步方法及系统
CN106936995B (zh) * 2017-03-10 2019-04-16 Oppo广东移动通信有限公司 一种移动终端帧率的控制方法、装置及移动终端
CN115794287A (zh) 2021-06-10 2023-03-14 荣耀终端有限公司 一种显示方法、电子设备及计算机存储介质
CN113741380B (zh) * 2021-11-08 2022-02-15 西安热工研究院有限公司 Dcs监视画面刷新方法、系统、设备及可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030221094A1 (en) * 2002-04-17 2003-11-27 Avery Pennarun Method and system for configuring a computer
CN102109959A (zh) * 2011-03-07 2011-06-29 惠州Tcl移动通信有限公司 屏幕旋转时java应用程序界面跟随旋转的方法
CN102622557A (zh) * 2012-02-22 2012-08-01 清华大学 x协议图形用户系统及将该系统写入内核态的方法
CN104282286A (zh) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 根据应用场景调整智能移动终端显示刷新率的方法及系统
CN104407965A (zh) * 2014-12-17 2015-03-11 北京元心科技有限公司 一种图形界面窗口的显示方法及系统
CN106095417A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种前景应用程序界面刷新同步方法及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8942771B1 (en) 2010-11-02 2015-01-27 Google Inc. Dynamic data refresh for mobile device applications
CN103135967B (zh) 2011-11-25 2017-07-21 腾讯科技(深圳)有限公司 显示未读消息的方法和系统
US20130278614A1 (en) * 2012-04-18 2013-10-24 Andrew Sultenfuss Information Handling System Display Adaptive Self-Refresh
KR102224479B1 (ko) 2014-04-22 2021-03-08 엘지전자 주식회사 디스플레이 디바이스 및 그 제어 방법
US9977657B2 (en) 2015-09-29 2018-05-22 Weebly, Inc. Application dashboard for website development and management
US10235095B2 (en) 2016-10-26 2019-03-19 Entit Software Llc Webpage refresh based on memory consumption

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030221094A1 (en) * 2002-04-17 2003-11-27 Avery Pennarun Method and system for configuring a computer
CN102109959A (zh) * 2011-03-07 2011-06-29 惠州Tcl移动通信有限公司 屏幕旋转时java应用程序界面跟随旋转的方法
CN102622557A (zh) * 2012-02-22 2012-08-01 清华大学 x协议图形用户系统及将该系统写入内核态的方法
CN104282286A (zh) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 根据应用场景调整智能移动终端显示刷新率的方法及系统
CN104407965A (zh) * 2014-12-17 2015-03-11 北京元心科技有限公司 一种图形界面窗口的显示方法及系统
CN106095417A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种前景应用程序界面刷新同步方法及系统

Also Published As

Publication number Publication date
EP3407186B1 (en) 2021-09-01
CN106095417B (zh) 2019-04-05
EP3407186A4 (en) 2019-03-20
EP3407186A1 (en) 2018-11-28
US10810019B2 (en) 2020-10-20
US10768947B2 (en) 2020-09-08
CN106095417A (zh) 2016-11-09
US20190294450A1 (en) 2019-09-26
US20180365032A1 (en) 2018-12-20

Similar Documents

Publication Publication Date Title
WO2019174595A1 (zh) 资源配置方法、装置、终端及存储介质
US11721273B2 (en) Information display method, terminal device, and storage medium
KR20200047494A (ko) 자동 애플리케이션 업데이트
WO2020207454A1 (zh) 信息推送方法和装置
US10768947B2 (en) Method for interface refresh synchronization,terminal device, and non-transitory computer-readable storage medium
US10635505B2 (en) Automated batch application programming interfaces
WO2020063008A1 (zh) 资源配置方法、装置、终端及存储介质
US11151314B2 (en) Extensible grid layout
US9699247B2 (en) User experience monitoring for application remoting
US10394680B2 (en) Techniques for tracking graphics processing resource utilization
WO2023040612A1 (zh) 用于处理订单的方法和装置
US20200348840A1 (en) System and method for event driven storage management
CN112395535A (zh) 图片的懒加载方法及装置、介质和电子设备
US20150067139A1 (en) Agentless monitoring of computer systems
KR20210113963A (ko) 정보 획득 방법 및 장치
KR20160059252A (ko) 인텐트 처리 방법 및 그 전자 장치
US10645191B1 (en) User controlled composition of content
CN113378346A (zh) 模型仿真的方法和装置
CN113296771B (zh) 页面显示方法、装置、设备和计算机可读介质
US10281973B2 (en) Application power usage
CN113972989B (zh) 数据校验方法及存储介质、电子设备
US11893391B2 (en) Processing computing jobs via an acceleration device
CN114138358A (zh) 应用程序的启动优化方法、装置、设备和存储介质
US20200193298A1 (en) Accurately identifying members of training data in variational autoencoders by reconstruction error
CN110716699A (zh) 用于写入数据的方法和装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2017805838

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2017805838

Country of ref document: EP

Effective date: 20180823

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805838

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE