WO2018161585A1 - 电子设备帧率的控制方法、装置、存储介质及电子设备 - Google Patents
电子设备帧率的控制方法、装置、存储介质及电子设备 Download PDFInfo
- Publication number
- WO2018161585A1 WO2018161585A1 PCT/CN2017/106941 CN2017106941W WO2018161585A1 WO 2018161585 A1 WO2018161585 A1 WO 2018161585A1 CN 2017106941 W CN2017106941 W CN 2017106941W WO 2018161585 A1 WO2018161585 A1 WO 2018161585A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- frame rate
- electronic device
- priority
- target object
- drawing frame
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234381—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/14—Display of multiple viewports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/12—Synchronisation between the display unit and other units, e.g. other display units, video-disc players
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/22—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
- G09G5/30—Control of display attribute
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control 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/37—Details of the operation on graphic patterns
- G09G5/377—Details of the operation on graphic patterns for mixing or overlaying two or more graphic patterns
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4621—Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2330/00—Aspects of power supply; Aspects of display protection and defect management
- G09G2330/02—Details of power systems and of start or stop of display operation
- G09G2330/021—Power management, e.g. power saving
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
- G09G2340/0435—Change or adaptation of the frame rate of the video stream
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/10—Mixing of images, i.e. displayed pixel being the result of an operation, e.g. adding, on the corresponding input pixels
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/12—Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2370/00—Aspects of data communication
- G09G2370/20—Details of the management of multiple sources of image data
Definitions
- the embodiments of the present invention relate to the technical field of electronic devices, and in particular, to a method, an apparatus, a storage medium, and an electronic device for controlling a frame rate of an electronic device.
- the embodiment of the present application provides a method, a device, and an electronic device for controlling a frame rate of an electronic device, which can reasonably control a composite frame rate of the electronic device.
- an embodiment of the present application provides a method for controlling a frame rate of an electronic device, including:
- an embodiment of the present application provides a device for controlling a frame rate of an electronic device, including:
- a drawing frame rate obtaining module configured to acquire a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application or a window;
- a composite frame rate determining module configured to determine a composite frame rate of the electronic device according to a drawing frame rate and a set priority of the respective target objects
- the to-be-displayed picture synthesis module is configured to perform, according to the composite frame rate, a combination of the to-be-displayed pictures of the currently operated target objects.
- an embodiment of the present application provides a storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and executing a control method of an electronic device frame rate as described above in whole or in part.
- an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the following steps when executing the computer program :
- the embodiment of the present application provides a method, a device, and an electronic device for controlling a frame rate of an electronic device, which can reasonably control a composite frame rate of the electronic device.
- FIG. 1 is a flowchart of a method for controlling a frame rate of an electronic device according to an embodiment of the present application
- FIG. 2 is a schematic diagram of a display process provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a Vsync display refresh mechanism provided by an embodiment of the present application.
- FIG. 4 is a flowchart of a method for controlling a frame rate of an electronic device according to an embodiment of the present application
- FIG. 5 is a schematic structural diagram of an apparatus for controlling a frame rate of an electronic device according to an embodiment of the present application
- FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 8 is still another schematic structural diagram of an electronic device according to an embodiment of the present application.
- the principles of the present application operate using many other general purpose or special purpose computing, communication environments, or configurations.
- Examples of well-known computing systems, environments, and configurations suitable for use in the present application may include, but are not limited to, hand-held phones, personal computers, servers, multi-processor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
- the embodiment of the present application provides a control scheme for an electronic device frame rate, which is specifically as follows:
- a method for controlling a frame rate of an electronic device comprising:
- the drawing frame rate of each target object currently acquired by the acquiring electronic device includes:
- the drawing frame rate of each target object of the electronic device in the current running scenario is obtained from the set white list.
- determining the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects includes:
- the drawing frame rate of the target object with the highest priority is determined as the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects.
- the drawing frame rate and setting priorities of the respective target objects currently acquired by the acquiring electronic device include:
- Determining, according to the drawing frame rate and the setting priority of the respective target objects, determining a composite frame rate of the electronic device includes:
- the obtaining a drawing frame rate of each target object currently running by the mobile terminal includes:
- the method further includes:
- the method further includes:
- the refresh rate of the display of the electronic device is set to be the same as the composite frame rate.
- FIG. 1 is a flowchart of a method for controlling a frame rate of an electronic device according to an embodiment of the present application.
- the method of this embodiment may be performed by a control device for an electronic device frame rate, and the device may be implemented by hardware and/or The software is implemented in such a manner that the device can be disposed inside the electronic device as part of the electronic device.
- the method for controlling the frame rate of an electronic device includes the following steps:
- Step 101 Acquire a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application or a window.
- the manner of obtaining the frame rate of the respective target objects may include: acquiring a real-time drawing frame rate of each target object in the current running scenario, or obtaining a drawing of each target object in the current running scenario from the set white list. Frame rate.
- Example 1 An application is currently running, such as a scene where the video is played in full screen;
- Example 2 multiple applications are currently running at the same time, for example, simultaneous browsing.
- Example 3 one or more windows are currently running, where one or more applications can be displayed in each window.
- the drawing frame rate corresponding to the running scene can be set for the target object according to the running scenario.
- the running scenario of the electronic device may be differentiated according to the process identifier of the running application. Further, the running identifier may be identified and distinguished according to the process identifier and the touch data.
- the touch data may include a touch location and a touch. Data such as area and touch duration.
- the touch data can be statistically analyzed, the corresponding touch event is determined according to the statistical analysis result, and the running scenario of the electronic device is identified according to the process identifier and the touch event.
- the touch event may include no event (eg, no touch screen is detected to be touched within a preset time period), a click event, a leaving event (eg, from a touch to a release touch), a slow sliding event, a fast sliding event, and the like.
- the method further includes the step of setting the priority of each target object, setting the priority of the application or the window according to the application attribute or the window attribute of the application, for example, setting the application of the application type to the highest priority.
- Social software type applications such as WeChat, QQ are set to intermediate priority, and reader type applications are set to the lowest priority.
- the activity type window can be set to high priority and the inactive window to low priority. It can be understood that the priority level can be set to 2, 3 or other numbers.
- Step 102 Determine a composite frame rate of the electronic device according to the drawing frame rate and the set priority of the respective target objects.
- FIG. 2 is a schematic diagram of a display process according to an embodiment of the present application.
- each application (hereinafter referred to as an application or APP) performs an image rendering operation separately according to its own application design (generally determined by the corresponding installation package APK). After the processing is completed, each application sends all the drawn images to the synthesis module that performs the image synthesis operation (Surface) Flinger).
- the system has three frame buffers (Frame Buffer, FB), three FBs can be recycled.
- Surface The flinger finds an idle FB from the three FBs, and on the free FB, according to the application configuration information, for example, which image should be bottomed, which image should be topped, which image adopts the bottom effect, etc., by composing (Compose) Operation, superimposing a plurality of images respectively drawn by each application to obtain a final display frame (to be displayed).
- the display to be displayed can be processed by electronic device display (Mobile Display The Process, MDP) module is transmitted to the display hardware (including the display controller and the display screen, so that the screen to be displayed is finally displayed on the display screen.
- the type of the display screen is not limited here, for example, it can be a liquid crystal display (Liquid) Crystal Display, LCD).
- FIG. 3 is a schematic diagram of a Vsync display refresh mechanism provided by an embodiment of the present application.
- the Vsync refresh mechanism actually inserts a "heartbeat" or system synchronization (Vsync) signal throughout the display process, and is sent by the display controller to the CPU for generating a Vsync interrupt to control each Render operation and Compose operation. It needs to be done according to the heartbeat, so that the key steps in the entire display process are incorporated into the unified management mechanism of Vsync.
- the Vsync signal frequency is currently commonly 60 Hz.
- the CPU control synthesis module forwards the first Vsync signal Vsync1 to each application, and each application responds to The user performs a Render operation by a touch slide operation on the display screen, and obtains a plurality of images drawn by each application after each application completes the Render operation.
- the CPU controls the display controller to forward the second Vsync signal Vsync2 to the synthesizing module, and the synthesizing module starts performing an image synthesizing operation, and synthesizes the plurality of images drawn by each application to generate a to-be-displayed image. Picture.
- the third Vsync signal Vsync3 reaches the CPU, the system starts to perform display refresh and finally displays the to-be-displayed screen on the display.
- drawing frame rate drawing frame rate
- composite frame rate refresh rate
- the drawing frame rate is a frame rate that is triggered by the application module after the image is drawn by the application, and can be understood as the number of times the image is drawn by the application unit time (for example, 1 second).
- the composite frame rate is a frame rate at which the drawn images of the respective applications are combined into one picture to be displayed.
- the refresh rate is the frame rate at which the display of the electronic device is displayed.
- the frame rate control method of the present application mainly relates to an image drawing operation in the above-described screen display process to be displayed.
- the execution mode of the drawing operation may be a software mode, a hardware mode, or other methods.
- the software method generally uses an algorithm to implement a drawing operation in the CPU of the electronic device.
- the hardware method is generally in the GPU of the electronic device (Graphic Processing Unit, Graphic Processing) or Electronic Device Display Processing (Mobile Display A dedicated chip is used in the Process, MDP) module to implement the drawing operation.
- the frame rate control method of the present application mainly relates to image drawing and synthesizing operations in the above-described screen display process to be displayed.
- the execution mode of the drawing and compositing operations may be software mode, hardware mode or other manners.
- the software mode is generally implemented using an algorithm in the CPU of the electronic device.
- the hardware method is generally in the GPU of the electronic device (Graphic The processing unit (graphics processor) or the electronic device display processing (MDP) module is implemented using a dedicated chip.
- the method provided in this embodiment can fully consider the drawing frame rate and the setting priority of each target object that is currently running when determining the composite frame rate of the electronic device, and can draw the frame rate of the respective target object and the corresponding right.
- the sum of the products of the values is determined as the composite frame rate of the electronic device, or the drawing frame rate of the target object having the highest priority is determined as the composite frame rate of the electronic device.
- the step 102 may include determining a sum of a product of a drawing frame rate of the respective target objects and a corresponding weight as a composite frame rate of the electronic device, wherein the sum value is smaller than a maximum of a display screen of the electronic device.
- the refresh rate; or, according to the drawing frame rate and the set priority of the respective target objects, the drawing frame rate of the target object with the highest priority is determined as the composite frame rate of the electronic device.
- the frame rate of the composite frame rate C is: Pmax ⁇ C ⁇ min (Psum, refresh rate), where Pmax is the largest frame rate for all applications.
- Draw the frame rate, and Psum plots the sum of the frame rates for all applications.
- the maximum refresh rate of the display is 60.
- the drawing frame rate of each application is 20, 30, 40, respectively, because in the same Vsync signal image drawing operation, there may be 1 or 2 or 3 applications performing drawing operations in the Vsync signal, different
- the application's rendering operation per unit time may be performed within the same Vsync signal or within different Vsync signals, so the composite frame rate C is [40, 60].
- the reason why the drawing frame rate of the target object with the highest priority is determined as the composite frame rate is that the general user pays attention to the target object with the highest priority, and if the drawing frame rate of the target object with the highest priority is set as the composite frame.
- the rate can not only ensure that the images drawn by the highest priority application can be synthesized, but also reduce the synthesis operation of the drawn images of other lower priority applications, and reduce the use of the synthesis operation in the electronic device. Power consumption of the CPU or GPU. As in the above example, if the drawing frame rate of the application with higher priority is 40, the value of the composite frame rate in the actual synthesis process is [40, 60], and the synthesis rate can be lowered by setting the composite frame rate to 40. The frequency of operation reduces power consumption.
- Step 103 Perform, according to the composite frame rate, a synthesis of a to-be-displayed picture of each target object that is currently running.
- the images drawn by the respective target objects are combined to synthesize the display to be displayed for display.
- the method may further include receiving a priority update instruction of the user, and updating a priority of the respective target objects according to the priority update instruction.
- the method may further include setting a refresh rate of a display screen of the electronic device to be the same as the composite frame rate.
- the refresh rate of the display screen is set to be the same as the composite frame rate, and the display screen is refreshed at a fixed 60 Hz, which can reduce the power consumption of the display screen of the electronic device.
- the method for controlling the frame rate of the electronic device by acquiring the drawing frame rate and the setting priority of each target object currently running by the electronic device, the target object includes an application program or a window, according to the respective target object And drawing a frame rate and setting a priority, determining a composite frame rate of the electronic device, to perform synthesis of the to-be-displayed image of each target object that is currently running according to the composite frame rate, and reasonably controlling the synthesis of the electronic device Frame rate.
- FIG. 4 is a flowchart of a method for controlling a frame rate of an electronic device according to an embodiment of the present application. As shown in FIG. 4, the method provided in this embodiment includes the following steps:
- Step 201 Acquire a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application or a window.
- Step 202 Determine respective weights according to the set priorities of the respective target objects.
- the weights with the higher priority levels may be correspondingly larger, and the sum of the weights corresponding to the respective target objects is 1.
- the priority of application 1 in the currently running three applications is up to level 1, the priority corresponding to application 2 is level 2, and the priority corresponding to application 3 is level 3, then applications 1-3 can be determined.
- the corresponding weights are 0.6, 0.4, and 0.2.
- Step 203 Determine a sum value of a product of a drawing frame rate of each target object and a corresponding weight value as a composite frame rate of the electronic device. Wherein, the sum value is smaller than a maximum refresh rate of a display screen of the electronic device.
- the sum value X of 0.6*P1+0.4*P2+0.2*P3 may be determined as a composite frame rate, where the X is smaller than the maximum refresh rate of the display screen, and if X is greater than the maximum refresh rate of the display screen, Set the composite frame rate to the maximum refresh rate of the display.
- P1 is the rendering frame rate of application 1
- P2 is the rendering frame rate of application 2
- P3 is the rendering frame rate of application 3.
- the advantage of this step is that the composite frame rate is determined according to the priority of each application currently running, and the composite frame rate is determined according to the drawing frame rate of each application separately, which can be more suitable for the current running scenario.
- a high-priority application or window to control the composite frame rate is possible.
- Step 204 Perform, according to the composite frame rate, a synthesis of a to-be-displayed picture of each target object that is currently running.
- the images drawn by the respective target objects are combined to synthesize the display to be displayed for display.
- the method provided by the embodiment obtains a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application program or a window, and is determined according to a set priority of each target object.
- Corresponding weights determining a combined frame rate of the product of the drawing frame rate of each target object and the corresponding weight to determine a composite frame rate of the electronic device, to perform each target of the current operation according to the combined frame rate
- the synthesis of the object to be displayed can reasonably control the composite frame rate of the electronic device.
- a device for controlling the frame rate of an electronic device comprising:
- a drawing frame rate obtaining module configured to acquire a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application or a window;
- a composite frame rate determining module configured to determine a composite frame rate of the electronic device according to a drawing frame rate and a set priority of the respective target objects
- the to-be-displayed picture synthesis module is configured to perform, according to the composite frame rate, a combination of the to-be-displayed pictures of the currently operated target objects.
- the rendering frame rate acquisition module is configured to:
- the drawing frame rate of each target object of the electronic device in the current running scenario is obtained from the set white list.
- the composite frame rate determination module is configured to:
- the drawing frame rate of the target object with the highest priority is determined as the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects.
- the rendering frame rate acquisition module is configured to:
- the composite frame rate determining module is configured to:
- the rendering frame rate acquisition module is configured to:
- the method further includes:
- the priority update module is configured to receive a priority update instruction of the user, and update the priority of each target object according to the priority update instruction.
- the method further includes:
- the refresh rate setting module is configured to set a refresh rate of the display screen of the electronic device to be the same as the composite frame rate.
- FIG. 5 is a schematic structural diagram of an apparatus for controlling a frame rate of an electronic device according to an embodiment of the present disclosure.
- the device may be implemented by software and/or hardware and integrated in an electronic device.
- the apparatus includes a rendering frame rate acquisition module 31, a composite frame rate determination module 32, and a to-be-displayed picture synthesis module 33.
- the drawing frame rate obtaining module 31 is configured to acquire a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application program or a window;
- a composite frame rate determining module 32 configured to determine a composite frame rate of the electronic device according to the drawing frame rate and the set priority of the respective target objects;
- the to-be-displayed picture synthesis module 33 is configured to perform, according to the composite frame rate, a combination of the to-be-displayed pictures of the currently operated target objects.
- drawing frame rate acquisition module is configured to:
- the drawing frame rate of each target object of the electronic device in the current running scenario is obtained from the set white list.
- composite frame rate determining module is configured to:
- the drawing frame rate of the target object with the highest priority is determined as the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects.
- drawing frame rate acquisition module is configured to:
- the composite frame rate determining module is configured to:
- the device further includes:
- the priority update module is configured to receive a priority update instruction of the user, and update the priority of each target object according to the priority update instruction.
- the device further includes:
- the refresh rate setting module is configured to set a refresh rate of the display screen of the electronic device to be the same as the composite frame rate.
- the apparatus provided in this embodiment obtains a drawing frame rate and a setting priority of each target object currently running by the electronic device, where the target object includes an application program or a window, and according to the drawing frame rate and setting of each target object.
- the composite frame rate of the electronic device is determined according to the composite frame rate, and the synthesized frame rate of the electronic device is controlled.
- An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the following steps:
- the drawing frame rate of each target object currently acquired by the acquiring electronic device includes:
- the drawing frame rate of each target object of the electronic device in the current running scenario is obtained from the set white list.
- determining the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects includes:
- the drawing frame rate of the target object with the highest priority is determined as the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects.
- the drawing frame rate and setting priorities of the respective target objects currently acquired by the acquiring electronic device include:
- Determining, according to the drawing frame rate and the setting priority of the respective target objects, determining a composite frame rate of the electronic device includes:
- the obtaining a drawing frame rate of each target object currently running by the mobile terminal includes:
- the method further includes:
- the method further includes setting a refresh rate of the display screen of the electronic device to be the same as the composite frame rate.
- FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
- the electronic device may include a device for controlling a frame rate of an electronic device according to any embodiment of the present application.
- the electronic device may include: Memory 401, central processing unit (Central Processing Unit (CPU) 402 (also referred to as a processor, hereinafter referred to as CPU), the memory 401 for storing executable program code; the processor 402 is operated by reading executable program code stored in the memory 401 a program corresponding to the executable program code, configured to: obtain a drawing frame rate and set a priority of each target object currently running by the electronic device, the target object including an application or a window; The frame rate of the object is drawn and the priority is set to determine the composite frame rate of the electronic device;
- CPU Central Processing Unit
- the electronic device further includes: a peripheral interface 403, RF (Radio) Frequency, RF circuit 405, audio circuit 406, speaker 411, power management chip 408, input/output (I/O) subsystem 409, touch screen (display) 412, other input/control devices 410, and external port 404,
- the components communicate via one or more communication buses or signal lines 407.
- the illustrated electronic device 400 is merely one example of an electronic device, and that the electronic device 400 may have more or fewer components than those illustrated in the figures, and that two or more components may be combined, Or it can have different component configurations.
- the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
- the following is a detailed description of an electronic device for controlling a frame rate provided by this embodiment.
- the electronic device takes a mobile phone as an example.
- the memory 401 can be accessed by the CPU 402, the peripheral interface 403, etc., and the memory 401 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- Peripheral interface 403 which can connect the input and output peripherals of the device to CPU 402 and memory 401.
- the I/O subsystem 409 which can connect input and output peripherals on the device, such as touch screen 412 and other input/control devices 410, to peripheral interface 403.
- the I/O subsystem 409 can include a display controller 4091 and one or more input controllers 4092 for controlling other input/control devices 410.
- one or more input controllers 4092 receive electrical signals from other input/control devices 410 or transmit electrical signals to other input/control devices 410, and other input/control devices 410 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
- the input controller 4092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
- the touch screen 412 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
- the visual output may include graphics, text, icons, videos, and the like.
- Display controller 4091 in I/O subsystem 409 receives electrical signals from touch screen 412 or transmits electrical signals to touch screen 412.
- the touch screen 412 detects the contact on the touch screen, and the display controller 4091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 412, ie, realizes human-computer interaction, and the user interface object displayed on the touch screen 412 may be running.
- the icon of the game, the icon of the network to the corresponding network, and the like.
- the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
- the RF circuit 405 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 405 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 405 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
- an RF signal which is also referred to as an electromagnetic signal
- RF circuitry 405 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) chipset, user identification module (Subscriber Identity Module, SIM) and more.
- CODEC COder-DECoder, codec
- the audio circuit 406 is mainly used to receive audio data from the peripheral interface 403, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 411.
- the speaker 411 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 405 to sound and play the sound to the user.
- the power management chip 408 is used for power supply and power management of the hardware connected to the CPU 402, the I/O subsystem, and the peripheral interface 403.
- the electronic device may perform the method provided by any embodiment of the present application, and have a function module corresponding to the execution method.
- the target object includes an application program by acquiring a drawing frame rate and a setting priority of each target object currently running by the electronic device. Or a window, determining a composite frame rate of the electronic device according to the drawing frame rate and the setting priority of each target object, to perform synthesis of the to-be-displayed image of each target object that is currently running according to the composite frame rate , can reasonably control the composite frame rate of the electronic device.
- FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
- the electronic device 500 includes a processor 501, a memory 502, a display unit 503, and a control circuit 504.
- the structure of the electronic device 500 illustrated in FIG. 5 does not constitute a limitation to the electronic device 500.
- Electronic device 500 may include more or fewer components than illustrated, or some components in combination, or different component arrangements.
- the electronic device 500 includes an electronic device with a screen display such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
- the processor 501 is a control center of the electronic device 500.
- the processor 501 connects various portions of the entire electronic device 500 using various interfaces and lines, performs various functions of the electronic device 500 by running or executing an application stored in the memory 502, and recalling data stored in the memory 502. The data is processed to provide overall monitoring of the electronic device 500.
- the processor 501 loads the executable file corresponding to one or more program processes into the memory 502 according to the following instructions, and the processor 501 runs the program stored in the memory 502, thereby implementing various functions: obtaining a drawing frame rate and a setting priority of each target object currently running by the electronic device, the target object including an application or a window; determining a composite frame of the electronic device according to the drawing frame rate and the setting priority of the respective target object Rate; according to the composite frame rate, synthesizing the to-be-displayed pictures of the currently operated target objects.
- the processor 501 is further configured to: obtain, from the set whitelist, a drawing frame rate of each target object of the electronic device in a current running scenario.
- the processor 501 is further configured to determine, according to a drawing frame rate and a set priority of the respective target objects, a drawing frame rate of the target object with the highest priority as a composite frame of the electronic device. rate.
- the processor 501 is further configured to: obtain a drawing frame rate and a set priority of each target object that the electronic device is currently running;
- Determining, according to the drawing frame rate and the setting priority of the respective target objects, determining a composite frame rate of the electronic device includes:
- the processor 501 is further configured to obtain a real-time rendering frame rate of each target object currently running by the mobile terminal in a current running scenario.
- the processor 501 is further configured to receive a priority update instruction of the user, and update a priority of the respective target object according to the priority update instruction.
- the processor 501 is further configured to set a refresh rate of a display screen of the electronic device to be the same as the composite frame rate.
- the display screen 503 can be used to display information input by the user to the electronic device 500 or information provided to the user and various graphical user interfaces of the electronic device 500. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof.
- the control circuit 504 is electrically connected to the display screen 503 for controlling the state of the display screen 503 under the scheduling of the processor 501.
- the electronic device 500 can also include a radio frequency circuit 505.
- the radio frequency circuit 505 is configured to send and receive radio frequency signals, such as establishing a communication link with a plurality of servers, and receiving data packets sent from the server.
- electronic device 500 also includes a power source 506.
- Power source 506 is used to power various components of electronic device 500.
- the power source 506 can be logically coupled to the processor 501 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
- the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
- An embodiment of the present application provides a medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
- the drawing frame rate of each target object currently acquired by the acquiring electronic device includes:
- the drawing frame rate of each target object of the electronic device in the current running scenario is obtained from the set white list.
- determining the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects includes:
- the drawing frame rate of the target object with the highest priority is determined as the composite frame rate of the electronic device according to the drawing frame rate and the setting priority of the respective target objects.
- the drawing frame rate and setting priorities of the respective target objects currently acquired by the acquiring electronic device include:
- Determining, according to the drawing frame rate and the setting priority of the respective target objects, determining a composite frame rate of the electronic device includes:
- the obtaining a drawing frame rate of each target object currently running by the mobile terminal includes:
- the method further includes:
- the method further includes:
- the refresh rate of the display of the electronic device is set to be the same as the composite frame rate.
- Each functional unit in the preferred embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium. For example, it is stored in a memory of the electronic device and loaded and executed by at least one processor in the electronic device.
- the medium can include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access) Memory), disk or CD.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- General Business, Economics & Management (AREA)
- Business, Economics & Management (AREA)
- Controls And Circuits For Display Device (AREA)
- Telephone Function (AREA)
Abstract
本申请公开了一种电子设备帧率的控制方法、装置及电子设备,所述方法包括:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,目标对象包括应用程序或者窗口;根据各个目标对象的绘制帧率和设定优先级,确定合成帧率;根据合成帧率,进行当前运行的各个目标对象的待显示画面的合成。可以合理的控制合成帧率。
Description
本申请要求于2017年03月10日提交中国专利局、申请号为201710142513.X,申请名称为“一种移动终端帧率的控制方法、装置及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及电子设备技术领域,尤其涉及一种电子设备帧率的控制方法、装置、存储介质及电子设备。
随着电子设备技术的发展,各式各样的电子设备已成为人们生活工作中不可或缺的工具。电子设备通过不断刷新显示画面来呈现不同时刻下的各种显示画面。传统电子设备的合成帧率控制不理想。
本申请实施例提供一种电子设备帧率的控制方法、装置及电子设备,可以合理的控制电子设备的合成帧率。
在第一方面,本申请实施例提供了一种电子设备帧率的控制方法,包括:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
在第二方面,本申请实施例提供了一种电子设备帧率的控制装置,包括:
绘制帧率获取模块,用于获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
合成帧率确定模块,用于根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
待显示画面合成模块,用于根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
第三方面,本申请实施例提供了一种存储介质,其存储有多条指令,所述指令适于由处理器加载并执行如上述全部或部分的电子设备帧率的控制方法。
在第四方面,本申请实施例提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
本申请实施例提供一种电子设备帧率的控制方法、装置及电子设备,可以合理的控制电子设备的合成帧率。
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。
图1是本申请一个实施例提供的一种电子设备帧率的控制方法的流程图;
图2是本申请一个实施例提供的一种显示过程的示意图;
图3是本申请一个实施例提供的Vsync显示刷新机制的示意图;
图4是本申请一个实施例提供的一种电子设备帧率的控制方法的流程图;
图5是本申请一个实施例提供的一种电子设备帧率的控制装置的结构示意图;
图6是本申请一个实施例提供的一种电子设备的结构示意图;
图7是本申请一个实施例提供的一种电子设备的另一结构示意图;
图8是本申请一个实施例提供的一种电子设备的又一结构示意图。
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本申请的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本申请的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。
以下将分别进行详细说明。
本申请实施例提供一种电子设备帧率的控制方案,具体的如下:
一种电子设备帧率的控制方法,其包括:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
在一些实施例中,所述获取电子设备当前运行的各个目标对象的绘制帧率包括:
从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
在一些实施例中,所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
在一些实施例中,所述获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级包括:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;
根据所述各个目标对象的设定优先级确定各自对应的权值;
所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
在一些实施例中,所述获取移动终端当前运行的各个目标对象的绘制帧率包括:
获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
在一些实施例中,还包括:
接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
在一些实施例中,还包括:
将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
图1给出了本申请一个实施例提供的一种电子设备帧率的控制方法的流程图,本实施例的方法可以由电子设备帧率的控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为电子设备一部分设置在所述电子设备的内部。
如图1所示,本实施例提供的电子设备帧率的控制方法包括以下步骤:
步骤101、获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口。
其中,获取所述各个目标对象的绘制帧率的方式可以包括:获取各个目标对象在当前运行场景下的实时绘制帧率,或者从设定白名单中获取各个目标对象在当前运行场景下的绘制帧率。
在电子设备的运行过程中可能存在各种各样的运行场景,示例1,当前运行了一个应用程序,例如视频全屏播放的场景;示例2,当前同时运行了多个应用程序,例如同时显示浏览器应用的内容和安全卫士应用以浮标形式展现的内容;示例3,当前运行了一个或者多个窗口,其中,每个窗口中可显示一个或多个应用程序。在设定白名单中,可以根据运行场景为目标对象设置与运行场景对应的绘制帧率。
其中,电子设备的运行场景可以根据运行的应用程序的进程标识进行区分,进一步的,还可以根据进程标识结合触摸数据进行运行场景的识别和区分,示例性的,触摸数据可包括触摸位置、触摸面积及触摸时长等数据。具体的,可对触摸数据进行统计分析,根据统计分析结果确定相应的触摸事件,再根据进程标识和触摸事件识别电子设备的运行场景。例如,触摸事件可包括无事件(如预设时段内未检测到触摸屏被触摸)、点击事件、离开事件(如由触摸变为释放触摸)、慢速滑动事件和快速滑动事件等。
该方法还包括设定各个目标对象的优先级的步骤,根据应用程序的应用属性或者窗口属性来设置应用程序或者窗口的优先级,例如,可将应用类型为视频的应用设置为最高优先级,社交软件类型的应用如微信、QQ设置为中级优先级,阅读器类型的应用设置为最低优先级。可以将活动类型的窗口设置为高优先级,非活动窗口设置为低优先级。可以理解的是,优先级的等级可以设置2个、3个或者其他个数。
步骤102、根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率。
为了便于理解,下面以Android系统为例,对Android系统中显示画面从生成到显示的过程进行简单的说明。图2为本申请一个实施例提供的一种显示过程的示意图。
首先,在应用(Application)层,每个应用程序(以下简称应用或APP)按照自己的应用设计情况(一般由对应的安装包APK决定)各自单独执行图像绘制(Render)操作,并在绘制操作处理完成后,各应用将所绘制的所有图像发送给执行图像合成操作的合成模块(Surface
flinger)。
然后,在应用框架(Framework)层,系统有三个帧缓冲器(Frame
Buffer,FB),三个FB可以循环使用。Surface
flinger从三个FB中找出一个空闲的FB,并在该空闲的FB上,根据应用配置信息,例如哪个图像应该置底、哪个图像应该置顶、哪个图像采用透底效果等,通过合成(Compose)操作,将各个应用分别绘制的多个图像叠加在一起,得到最终显示的显示帧(待显示画面)。
最后,在内核(Kernel)层,可以将待显示画面通过电子设备显示处理(Mobile Display
Process,MDP)模块传输给显示硬件(包括显示控制器和显示屏,使待显示画面最终显示在显示屏上。这里对显示屏的类型不做限定,例如可以是液晶显示器(Liquid
Crystal Display,LCD)。
另外,Android系统在显示刷新的过程中,引入了同步(Vsync)刷新机制。图3给出了本申请一个实施例提供的Vsync显示刷新机制的示意图。具体地,Vsync刷新机制其实就是在整个显示流程中,插入“心跳”即系统同步(Vsync)信号,由显示控制器发送给CPU,用于产生Vsync中断,以控制每次Render操作和Compose操作都需要按照心跳来完成,从而将整个显示过程中的关键步骤都纳入到Vsync的统一管理机制。Vsync信号频率目前常见为60Hz。
如图3所示,假设Vsync信号周期为T,不考虑信号的传输延迟,第一个Vsync信号Vsync1到达CPU后,CPU控制合成模块向各应用转发该第一个Vsync信号Vsync1,各应用响应于用户在显示屏上的触摸滑动等操作,开始执行Render操作;并在各应用完成Render操作后,得到各应用所绘制的多个图像。第二个Vsync信号Vsync2到达CPU后,CPU控制显示控制器向合成模块转发该第二个Vsync信号Vsync2,合成模块开始执行图像合成操作,将各应用所绘制的多个图像进行合成,生成待显示画面。第三个Vsync信号Vsync3到达CPU后,系统开始执行显示刷新,并将该待显示画面最终显示在显示屏上。
在电子设备图像绘制、合成和刷新显示的流程中,存在3种帧率:绘制帧率、合成帧率和刷新率。
其中,绘制帧率为应用程序在图像绘制完成后,触发合成模块合成的帧率,可以理解为应用程序单位时间(例如,1秒钟)绘制图像的次数。
合成帧率为把各个应用程序的绘制图像合成为一个待显示画面的帧率。
刷新率为电子设备的显示屏显示画面刷新的帧率。
本申请的帧率控制方法主要涉及上述待显示画面显示流程中的图像绘制操作。其中,绘制操作的执行方式,可以为软件方式、硬件方式或其他方式。软件方式一般是在电子设备的CPU中使用算法实现绘制操作。硬件方式一般是在电子设备的GPU(Graphic
Processing Unit,图形处理器)或电子设备显示处理(Mobile Display
Process,MDP)模块中使用专用芯片来实现绘制操作。
本申请的帧率控制方法主要涉及上述待显示画面显示流程中的图像绘制和合成操作。其中,绘制和合成操作的执行方式,可以为软件方式、硬件方式或其他方式。软件方式一般是在电子设备的CPU中使用算法实现。硬件方式一般是在电子设备的GPU(Graphic
Processing Unit,图形处理器)或电子设备显示处理(Mobile Display Process,MDP)模块中使用专用芯片来实现。
本实施例提供的方法在确定电子设备的合成帧率时,可以充分考虑当前运行的各个目标对象的绘制帧率和设定优先级,可以将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,或者将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
该步骤102可以包括:将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率;或者,根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
下面对绘制帧率与合成帧率的关系进行说明:合成帧率C的取值范围为:Pmax≤C≤min(Psum,刷新率),其中,Pmax为所有应用程序绘制帧率中最大的绘制帧率,Psum为所有应用程序绘制帧率的和值。示例性的,若有3个应用程序在运行,显示屏的最大刷新率为60。各个应用程序的绘制帧率分别是20,30,40,因为,在同一个Vsync信号图像绘制操作中,可能有1个或者2个或者3个应用程序在该Vsync信号内执行绘制操作,不同的应用程序在单位时间内的每次绘制操作可能在相同的Vsync信号内执行也可能在不同的Vsync信号内执行,那么合成帧率C的取值为[40,60]。
其中,将优先级最高的目标对象的绘制帧率确定为合成帧率的原因是,一般用户关注的是优先级最高的目标对象,若将优先级最高的目标对象的绘制帧率设置为合成帧率,不仅可以保证该优先级最高的应用程序所绘制的图像都能够被合成,还能够减少其他优先级较低的应用程序的绘制图像的合成操作,降低了电子设备中用于执行合成操作的CPU或者GPU的功耗。如上述示例,若优先级较高的应用程序的绘制帧率为40,那么合成帧率在实际合成过程中的取值为[40,60],通过将合成帧率设置为40,可以降低合成操作的频率,降低功耗。
步骤103、根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
根据所述合成帧率,将各个目标对象绘制的图像进行合成,以合成待显示画面进行显示。
该方法还可以包括:接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
该方法还可以包括:将电子设备的显示屏的刷新率设置为与所述合成帧率相同。将所述显示屏的刷新率设为与所述合成帧率相同,相比显示屏以固定的60HZ进行刷新,可以降低电子设备的显示屏的功耗。
本实施例提供的电子设备的帧率的控制方法,通过获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口,根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率,以根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成,可以合理的控制电子设备的合成帧率。
图4给出了本申请一个实施例提供的一种电子设备帧率的控制方法的流程图。如图4所示,本实施例提供的方法包括以下步骤:
步骤201、获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口。
步骤202、根据所述各个目标对象的设定优先级确定各自对应的权值。
其中,设定优先级高的权值相应可以大一些,所述各个目标对象各自对应的权值的和为1。示例性的,当前运行的3个应用程序中应用1对应的优先级最高为1级,应用2对应的优先级为2级,应用3对应的优先级为3级,那么可确定应用1-3各自对应的权值为0.6、0.4和0.2。
步骤203、将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率。其中,所述和值小于电子设备的显示屏的最大刷新率。
如上述示例,可将0.6*P1+0.4*P2+0.2*P3的和值X确定为合成帧率,所述X小于显示屏的最大刷新率,若X大于显示屏的最大刷新率,则可将合成帧率设置为显示屏的最大刷新率。其中,P1为应用1的绘制帧率,P2为应用2的绘制帧率,P3为应用3的绘制帧率。
该步骤这样设置的好处是:根据当前运行的各个应用程序的优先级来确定合成帧率,相比于单独根据各个应用程序的绘制帧率来确定合成帧率,能够更加贴合当前运行场景下优先级高的应用程序或者窗口来进行合成帧率的控制。
步骤204、根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
根据所述合成帧率,将各个目标对象绘制的图像进行合成,以合成待显示画面进行显示。
本实施例提供的方法,通过获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口,并根据所述各个目标对象的设定优先级确定各自对应的权值,将所述各个目标对象的绘制帧率与对应的权值的乘积的和值确定电子设备的合成帧率,以根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成,可以合理的控制电子设备的合成帧率。
一种电子设备帧率的控制装置,其包括:
绘制帧率获取模块,用于获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
合成帧率确定模块,用于根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
待显示画面合成模块,用于根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
在一些实施例中,所述绘制帧率获取模块用于:
从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
在一些实施例中,所述合成帧率确定模块用于:
根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
在一些实施例中,所述绘制帧率获取模块用于:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;
根据所述各个目标对象的设定优先级确定各自对应的权值;
所述合成帧率确定模块用于:
将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
在一些实施例中,所述绘制帧率获取模块用于:
获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
在一些实施例中,还包括:
优先级更新模块,用于接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
在一些实施例中,还包括:
刷新率设置模块,用于将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
图5为本申请一个实施例提供的一种电子设备帧率的控制装置的结构示意图,该装置可由软件和/或硬件实现,集成在电子设备中。如图5所示,该装置包括绘制帧率获取模块31、合成帧率确定模块32和待显示画面合成模块33。
绘制帧率获取模块31,用于获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
合成帧率确定模块32,用于根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
待显示画面合成模块33,用于根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
进一步的,所述绘制帧率获取模块用于:
从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
进一步的,所述合成帧率确定模块用于:
根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
进一步的,所述绘制帧率获取模块用于:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;
根据所述各个目标对象的设定优先级确定各自对应的权值;
所述合成帧率确定模块用于:
将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
进一步的,所述装置还包括:
优先级更新模块,用于接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
进一步的,所述装置还包括:
刷新率设置模块,用于将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
本实施例提供的装置,通过获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口,根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率,以根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成,可以合理的控制电子设备的合成帧率。
一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
在一些实施例中,所述获取电子设备当前运行的各个目标对象的绘制帧率包括:
从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
在一些实施例中,所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
在一些实施例中,所述获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级包括:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;
根据所述各个目标对象的设定优先级确定各自对应的权值;
所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
在一些实施例中,所述获取移动终端当前运行的各个目标对象的绘制帧率包括:
获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
在一些实施例中,还包括:
接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
在一些实施例中,还包括:将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
图6为本申请一个实施例提供的一种电子设备的结构示意图,该电子设备可以包括本申请任意实施例提供的电子设备帧率的控制装置,如图6所示,该电子设备可以包括:存储器401、中央处理器(Central
Processing
Unit,CPU)402(又称处理器,以下简称CPU)、所述存储器401,用于存储可执行程序代码;所述处理器402通过读取所述存储器401中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
所述电子设备还包括:外设接口403、RF(Radio
Frequency,射频)电路405、音频电路406、扬声器411、电源管理芯片408、输入/输出(I/O)子系统409、触摸屏(显示屏)412、其他输入/控制设备410以及外部端口404,这些部件通过一个或多个通信总线或信号线407来通信。
应该理解的是,图示电子设备400仅仅是电子设备的一个范例,并且电子设备400可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于控制帧率的电子设备进行详细的描述,该电子设备以手机为例。
存储器401,所述存储器401可以被CPU402、外设接口403等访问,所述存储器401可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口403,所述外设接口403可以将设备的输入和输出外设连接到CPU402和存储器401。
I/O子系统409,所述I/O子系统409可以将设备上的输入输出外设,例如触摸屏412和其他输入/控制设备410,连接到外设接口403。I/O子系统409可以包括显示控制器4091和用于控制其他输入/控制设备410的一个或多个输入控制器4092。其中,一个或多个输入控制器4092从其他输入/控制设备410接收电信号或者向其他输入/控制设备410发送电信号,其他输入/控制设备410可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器4092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触摸屏412,所述触摸屏412是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。
I/O子系统409中的显示控制器4091从触摸屏412接收电信号或者向触摸屏412发送电信号。触摸屏412检测触摸屏上的接触,显示控制器4091将检测到的接触转换为与显示在触摸屏412上的用户界面对象的交互,即实现人机交互,显示在触摸屏412上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路405,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路405接收并发送RF信号,RF信号也称为电磁信号,RF电路405将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路405可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber
Identity Module,SIM)等等。
音频电路406,主要用于从外设接口403接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器411。
扬声器411,用于将手机通过RF电路405从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片408,用于为CPU402、I/O子系统及外设接口403所连接的硬件进行供电及电源管理。
上述电子设备可执行本申请任意实施例所提供的方法,具备执行方法相应的功能模块,通过获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口,根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率,以根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成,可以合理的控制电子设备的合成帧率。
图7给出了为本申请一个实施例提供的电子设备的另一结构示意图,图8给出了为本申请一个实施例提供的电子设备的又一结构示意图。如图7和图8所示,电子设备500包括处理器501、存储器502、显示单元503以及控制电路504。本领域技术人员可以理解,图5中示出的电子设备500的结构并不构成对电子设备500的限定。电子设备500可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。需要说明的是,电子设备500包括有智能手机、平板电脑、笔记本电脑、台式电脑等有屏幕显示的电子设备。
其中,处理器501是电子设备500的控制中心。处理器501利用各种接口和线路连接整个电子设备500的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能和处理数据,从而对电子设备500进行整体监控。
处理器501会按照如下的指令,将一个或一个以上的程序进程对应的可执行文件加载到存储器502中,并由处理器501来运行存储在存储器502中的程序,从而实现各种功能:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
在一些实施例中,所述处理器501还可以用于,从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
在一些实施例中,所述处理器501还可以用于,根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
在一些实施例中,所述处理器501还可以用于,获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;
根据所述各个目标对象的设定优先级确定各自对应的权值;
所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
在一些实施例中,所述处理器501还可以用于,获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
在一些实施例中,所述处理器501还可以用于,接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
在一些实施例中,所述处理器501还可以用于,将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
显示屏503可用于显示由用户输入到电子设备500的信息或提供给用户的信息以及电子设备500的各种图形用户接口。这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。
控制电路504与显示屏503电性连接,在处理器501的调度下,用于控制显示屏503的状态。
电子设备500还可包括还包括射频电路505。射频电路505用于收发射频信号,比如与多个服务器建立通信链路,接收从服务器发送的数据包。
在一些实施例中,电子设备500还包括电源506。电源506用于给电子设备500的各个部件供电。电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图7和图8中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。
本申请实施例提供一种介质,其存储有多条指令,所述指令适于由处理器加载,以执行以下步骤:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;
根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;
根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
在一些实施例中,所述获取电子设备当前运行的各个目标对象的绘制帧率包括:
从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
在一些实施例中,所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
在一些实施例中,所述获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级包括:
获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;
根据所述各个目标对象的设定优先级确定各自对应的权值;
所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:
将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
在一些实施例中,所述获取移动终端当前运行的各个目标对象的绘制帧率包括:
获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
在一些实施例中,还包括:
接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
在一些实施例中,还包括:
将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
本申请优选实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。如存储在电子设备的存储器中,并由电子设备内的至少一个处理器进行加载和执行。其中,介质可以包括:只读存储器(ROM,Read
Only Memory)、随机存取记忆体(RAM,Random Access
Memory)、磁盘或光盘等。上述的各装置或电子设备,可以执行相应方法实施例中的方法。
以上对本申请实施例所提供的一种电子设备帧率的控制方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (20)
- 一种电子设备帧率的控制方法,其包括:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
- 根据权利要求1所述的方法,其中,所述获取电子设备当前运行的各个目标对象的绘制帧率包括:从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
- 根据权利要求1所述的方法,其中,所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
- 根据权利要求1所述的方法,其中,所述获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级包括:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;根据所述各个目标对象的设定优先级确定各自对应的权值;所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
- 根据权利要求1所述的方法,其中,所述获取移动终端当前运行的各个目标对象的绘制帧率包括:获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
- 根据权利要求1所述的方法,其中,还包括:接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
- 根据权利要求1所述的方法,其中,还包括:将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
- 一种电子设备帧率的控制装置,其包括:绘制帧率获取模块,用于获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;合成帧率确定模块,用于根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;待显示画面合成模块,用于根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
- 根据权利要求8所述的装置,其中,所述绘制帧率获取模块用于:从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
- 根据权利要求8所述的装置,其中,所述合成帧率确定模块用于:根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
- 根据权利要求8所述的装置,其中,所述绘制帧率获取模块用于:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;根据所述各个目标对象的设定优先级确定各自对应的权值;所述合成帧率确定模块用于:将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
- 根据权利要求8所述的装置,其中,所述绘制帧率获取模块用于:获取移动终端当前运行的各个目标对象在当前运行场景下的实时绘制帧率。
- 根据权利要求8所述的装置,其中,还包括:优先级更新模块,用于接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
- 根据权利要求8所述的装置,其中,还包括:刷新率设置模块,用于将电子设备的显示屏的刷新率设置为与所述合成帧率相同。
- 一种存储介质,其存储有多条指令,所述指令适于由处理器加载,以执行如权利要求1至7任一项所述的电子设备帧率的控制方法。
- 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级,所述目标对象包括应用程序或者窗口;根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率;根据所述合成帧率,进行所述当前运行的各个目标对象的待显示画面的合成。
- 根据权利要求16所述的电子设备,其中,所述获取电子设备当前运行的各个目标对象的绘制帧率包括:从设定白名单中获取电子设备的各个目标对象在当前运行场景下的绘制帧率。
- 根据权利要求16所述的电子设备,其中,所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:根据所述各个目标对象的绘制帧率和设定优先级,将优先级最高的目标对象的绘制帧率确定为电子设备的合成帧率。
- 根据权利要求16所述的电子设备,其中,所述获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级包括:获取电子设备当前运行的各个目标对象的绘制帧率和设定优先级;根据所述各个目标对象的设定优先级确定各自对应的权值;所述根据所述各个目标对象的绘制帧率和设定优先级,确定电子设备的合成帧率包括:将所述各个目标对象的绘制帧率与对应的权值的乘积的和值,确定为电子设备的合成帧率,其中,所述和值小于电子设备的显示屏的最大刷新率。
- 根据权利要求16所述的电子设备,其中,还包括:接收用户的优先级更新指令,根据所述优先级更新指令更新所述各个目标对象的优先级。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP17900057.5A EP3584765B1 (en) | 2017-03-10 | 2017-10-19 | Method and apparatus for controlling frame rate of electronic device, storage medium, and electronic device |
US16/565,348 US10863213B2 (en) | 2017-03-10 | 2019-09-09 | Method and device for controlling frame rate of electronic device, storage medium, and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710142513.XA CN106936995B (zh) | 2017-03-10 | 2017-03-10 | 一种移动终端帧率的控制方法、装置及移动终端 |
CN201710142513.X | 2017-03-10 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/565,348 Continuation US10863213B2 (en) | 2017-03-10 | 2019-09-09 | Method and device for controlling frame rate of electronic device, storage medium, and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018161585A1 true WO2018161585A1 (zh) | 2018-09-13 |
Family
ID=59432566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/106941 WO2018161585A1 (zh) | 2017-03-10 | 2017-10-19 | 电子设备帧率的控制方法、装置、存储介质及电子设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US10863213B2 (zh) |
EP (1) | EP3584765B1 (zh) |
CN (1) | CN106936995B (zh) |
WO (1) | WO2018161585A1 (zh) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106936995B (zh) * | 2017-03-10 | 2019-04-16 | Oppo广东移动通信有限公司 | 一种移动终端帧率的控制方法、装置及移动终端 |
CN109413480B (zh) * | 2018-09-30 | 2021-10-08 | Oppo广东移动通信有限公司 | 画面处理方法、装置、终端及存储介质 |
CN109640168B (zh) | 2018-11-27 | 2020-07-24 | Oppo广东移动通信有限公司 | 视频处理方法、装置、电子设备和计算机可读介质 |
CN112863457A (zh) * | 2019-11-27 | 2021-05-28 | 深圳市万普拉斯科技有限公司 | 显示亮度的调节方法、装置、电子设备和存储介质 |
WO2021248370A1 (en) * | 2020-06-10 | 2021-12-16 | Qualcomm Incorporated | Methods and apparatus for reducing frame drop via adaptive scheduling |
CN111933071B (zh) * | 2020-08-10 | 2022-04-01 | 昆山国显光电有限公司 | 显示面板的驱动方法和驱动装置 |
CN111951206A (zh) * | 2020-08-19 | 2020-11-17 | Oppo(重庆)智能科技有限公司 | 图像合成方法、图像合成装置及终端设备 |
CN113157228B (zh) * | 2021-02-01 | 2022-07-05 | 中国船舶重工集团公司第七0九研究所 | 一种多源帧率互异型高帧率显示控制装置及方法 |
CN113655880A (zh) * | 2021-08-03 | 2021-11-16 | Oppo广东移动通信有限公司 | 界面渲染方法、装置、终端设备及计算机可读存储介质 |
TWI785785B (zh) * | 2021-09-09 | 2022-12-01 | 華碩電腦股份有限公司 | 電子裝置及其電源管理方法 |
US12126847B2 (en) * | 2021-09-13 | 2024-10-22 | Apple Inc. | Rendering for electronic devices |
CN113946304A (zh) * | 2021-09-29 | 2022-01-18 | 湖北亿咖通科技有限公司 | 可见窗口的合成方法、合成装置和多屏系统 |
CN114510406B (zh) * | 2022-02-08 | 2024-07-02 | 北京字节跳动网络技术有限公司 | 检测帧率的方法及相关设备 |
CN115273763B (zh) * | 2022-06-16 | 2024-02-06 | 北京小米移动软件有限公司 | 画面合成帧率调整方法及装置、显示设备及存储介质 |
CN115665482B (zh) * | 2022-11-09 | 2023-06-30 | 腾讯科技(深圳)有限公司 | 视频渲染方法、装置、计算机设备和存储介质 |
US20240388746A1 (en) * | 2023-05-17 | 2024-11-21 | Google Llc | Energy-aware rendering and display pipeline for a multi-stream user interface |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765594A (zh) * | 2014-01-08 | 2015-07-08 | 联发科技(新加坡)私人有限公司 | 一种显示图形用户界面的方法及装置 |
CN105739670A (zh) * | 2016-02-01 | 2016-07-06 | 广东欧珀移动通信有限公司 | 用于移动终端的显示方法、装置和移动终端 |
US20160232872A1 (en) * | 2015-02-06 | 2016-08-11 | Samsung Electronics Co., Ltd. | METHOD AND APPARATUS FOR DISPLAYING COMPOSITION SCREEN IMAGE BY COMPOSING SCREEN IMAGES OF OPERATING SYSTEMS (OSs) |
CN106354455A (zh) * | 2016-08-17 | 2017-01-25 | 青岛海信电器股份有限公司 | 人机界面显示处理装置及其方法 |
CN106412276A (zh) * | 2016-09-26 | 2017-02-15 | 宇龙计算机通信科技(深圳)有限公司 | 调节终端参数的方法及移动终端 |
CN106936995A (zh) * | 2017-03-10 | 2017-07-07 | 广东欧珀移动通信有限公司 | 一种移动终端帧率的控制方法、装置及移动终端 |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6473088B1 (en) * | 1998-06-16 | 2002-10-29 | Canon Kabushiki Kaisha | System for displaying multiple images and display method therefor |
US8542221B1 (en) * | 2009-06-25 | 2013-09-24 | Nvidia Corporation | Method and system for optimizing display power reduction through a continuously variable refresh rate adjustment |
US20130039408A1 (en) * | 2011-02-07 | 2013-02-14 | Screenovate Technologies Ltd | Method for enhancing compression and transmission process of a screen image |
US9589540B2 (en) * | 2011-12-05 | 2017-03-07 | Microsoft Technology Licensing, Llc | Adaptive control of display refresh rate based on video frame rate and power efficiency |
US9141264B2 (en) * | 2011-12-14 | 2015-09-22 | International Business Machines Corporation | Variable refresh rates for portions of shared screens |
CN103593155B (zh) | 2013-11-06 | 2016-09-07 | 华为终端有限公司 | 显示帧生成方法和终端设备 |
US10127002B2 (en) * | 2014-04-10 | 2018-11-13 | Screenovate Technologies Ltd. | Method for real-time multimedia interface management |
KR101599888B1 (ko) * | 2014-05-02 | 2016-03-04 | 삼성전자주식회사 | 적응적 영상 데이터 압축 방법 및 장치 |
CN104091579B (zh) * | 2014-05-30 | 2017-01-04 | 西安中兴新软件有限责任公司 | 一种调整屏幕刷新率的方法及终端 |
US20150348496A1 (en) * | 2014-05-30 | 2015-12-03 | Pixtronix, Inc. | Systems and methods for selecting display operation modes |
CN104282286B (zh) * | 2014-10-30 | 2017-03-08 | 广东欧珀移动通信有限公司 | 根据应用场景调整智能移动终端显示刷新率的方法及系统 |
CN105611316B (zh) * | 2014-11-21 | 2019-05-03 | 华为终端(东莞)有限公司 | 一种调整帧率的方法、装置及系统 |
CN104714874A (zh) | 2015-02-28 | 2015-06-17 | 深圳市中兴移动通信有限公司 | 一种移动终端内存智能优化的方法及移动终端 |
CN104731543B (zh) * | 2015-03-23 | 2018-03-16 | 广东欧珀移动通信有限公司 | 一种屏幕刷新率的显示方法和装置 |
CN105869560B (zh) | 2016-04-01 | 2019-04-26 | Oppo广东移动通信有限公司 | 一种显示屏刷新帧率调整方法及装置 |
CN106095417B (zh) * | 2016-05-31 | 2019-04-05 | Oppo广东移动通信有限公司 | 一种前景应用程序界面刷新同步方法及系统 |
CN106201551A (zh) * | 2016-07-22 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | 一种应用程序退出方法及装置 |
-
2017
- 2017-03-10 CN CN201710142513.XA patent/CN106936995B/zh not_active Expired - Fee Related
- 2017-10-19 WO PCT/CN2017/106941 patent/WO2018161585A1/zh unknown
- 2017-10-19 EP EP17900057.5A patent/EP3584765B1/en active Active
-
2019
- 2019-09-09 US US16/565,348 patent/US10863213B2/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765594A (zh) * | 2014-01-08 | 2015-07-08 | 联发科技(新加坡)私人有限公司 | 一种显示图形用户界面的方法及装置 |
US20160232872A1 (en) * | 2015-02-06 | 2016-08-11 | Samsung Electronics Co., Ltd. | METHOD AND APPARATUS FOR DISPLAYING COMPOSITION SCREEN IMAGE BY COMPOSING SCREEN IMAGES OF OPERATING SYSTEMS (OSs) |
CN105739670A (zh) * | 2016-02-01 | 2016-07-06 | 广东欧珀移动通信有限公司 | 用于移动终端的显示方法、装置和移动终端 |
CN106354455A (zh) * | 2016-08-17 | 2017-01-25 | 青岛海信电器股份有限公司 | 人机界面显示处理装置及其方法 |
CN106412276A (zh) * | 2016-09-26 | 2017-02-15 | 宇龙计算机通信科技(深圳)有限公司 | 调节终端参数的方法及移动终端 |
CN106936995A (zh) * | 2017-03-10 | 2017-07-07 | 广东欧珀移动通信有限公司 | 一种移动终端帧率的控制方法、装置及移动终端 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3584765A4 * |
Also Published As
Publication number | Publication date |
---|---|
CN106936995A (zh) | 2017-07-07 |
EP3584765B1 (en) | 2021-11-10 |
EP3584765A4 (en) | 2020-03-11 |
EP3584765A1 (en) | 2019-12-25 |
US20200007914A1 (en) | 2020-01-02 |
US10863213B2 (en) | 2020-12-08 |
CN106936995B (zh) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018161585A1 (zh) | 电子设备帧率的控制方法、装置、存储介质及电子设备 | |
WO2018161602A1 (zh) | 电子设备帧率的控制方法、装置、存储介质及电子设备 | |
WO2018161578A1 (zh) | 动态调节屏幕刷新率的方法、装置、存储介质及电子设备 | |
WO2018182287A1 (ko) | 디스플레이의 저전력 구동 방법 및 이를 수행하는 전자 장치 | |
WO2018161586A1 (zh) | 移动终端的显示场景识别方法、装置、存储介质及电子设备 | |
WO2022030996A1 (ko) | 디스플레이를 포함하는 전자 장치 및 그의 동작 방법 | |
WO2014104568A1 (en) | Host device, display device, method of controlling host device, and method of controlling display device | |
WO2018161603A1 (zh) | 移动终端图像绘制的控制方法、装置、介质及电子设备 | |
WO2018161584A1 (zh) | 应用程序的控制方法、装置、介质及电子设备 | |
WO2018161572A1 (zh) | 移动终端帧率的控制方法、装置、存储介质及电子设备 | |
WO2018076818A1 (zh) | 数据的备份方法、装置、电子设备、存储介质及系统 | |
WO2018076819A1 (zh) | 数据的上传方法、装置、存储介质、电子设备及系统 | |
WO2021066293A1 (en) | Electronic device for synchronizing modification among screens and operation method thereof | |
WO2018076812A1 (zh) | 数据请求的响应方法、装置、存储介质、服务器及系统 | |
WO2018161580A1 (zh) | 广播的控制方法、装置、存储介质及电子设备 | |
WO2018161593A1 (zh) | 广播处理方法、装置、存储介质和终端设备 | |
WO2018161601A1 (zh) | 屏幕背光调节方法、装置、存储介质及电子设备 | |
WO2020032636A1 (en) | Electronic device for providing notification message and method thereof | |
WO2018161581A1 (zh) | 控制广播发送的方法、装置、存储介质及电子设备 | |
WO2017206870A1 (zh) | 一种传感器关闭方法、装置、存储介质及电子设备 | |
WO2020226332A1 (en) | Electronic device and control method thereof | |
WO2018026164A1 (en) | Method of processing touch events and electronic device adapted thereto | |
WO2020027529A1 (en) | Electronic device for processing input event and method of operating same | |
WO2018161592A1 (zh) | 切换背景灰阶进行省电的方法、装置、存储介质及电子设备 | |
WO2018076830A1 (zh) | 数据同步周期的调整方法、装置、电子设备、存储介质及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17900057 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2017900057 Country of ref document: EP Effective date: 20190917 |