WO2021175213A1 - 刷新率切换方法和电子设备 - Google Patents

刷新率切换方法和电子设备 Download PDF

Info

Publication number
WO2021175213A1
WO2021175213A1 PCT/CN2021/078682 CN2021078682W WO2021175213A1 WO 2021175213 A1 WO2021175213 A1 WO 2021175213A1 CN 2021078682 W CN2021078682 W CN 2021078682W WO 2021175213 A1 WO2021175213 A1 WO 2021175213A1
Authority
WO
WIPO (PCT)
Prior art keywords
refresh rate
screen
electronic device
rate
refresh
Prior art date
Application number
PCT/CN2021/078682
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 US17/908,626 priority Critical patent/US20230134189A1/en
Priority to EP21764080.4A priority patent/EP4105773A4/en
Priority to JP2022553180A priority patent/JP7506165B2/ja
Publication of WO2021175213A1 publication Critical patent/WO2021175213A1/zh

Links

Images

Classifications

    • 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
    • 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/393Arrangements for updating the contents of the bit-mapped memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • A63F13/525Changing parameters of virtual cameras
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • A63F13/92Video game devices specially adapted to be hand-held while playing
    • 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
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/03Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays
    • G09G3/035Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays for flexible display surfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0613The adjustment depending on the type of the information to be displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of terminal and display technologies, and in particular to a refresh rate switching method and electronic equipment.
  • a higher screen refresh rate can support a higher display frame rate, and a higher display frame rate can make the dynamic picture display smoother.
  • the display frame rate is increased from 60 frames per second (FPS) to 90FPS, which can significantly reduce the dynamic blur of the human eye and bring a smoother experience.
  • the present application provides a refresh rate switching method and an electronic device, which are used to dynamically switch the screen refresh rate according to the scene to which the display screen belongs, so as to obtain the experience of high display frame rate and reduce power consumption.
  • the present application provides a refresh rate switching method, the method includes: the electronic device uses a first refresh rate to refresh the display screen, the first refresh rate is not the highest among the multiple selectable screen refresh rates in the electronic device Screen refresh rate; when the electronic device determines that the display screen is a game scene, the electronic device determines a screen refresh rate from the multiple selectable screen refresh rates as the second refresh rate according to the following steps, and uses the second refresh rate to refresh Display screen: the electronic device sets the second refresh rate to the highest screen refresh rate; when it is determined that the second refresh rate is not the first refresh rate, the electronic device determines whether the current display frame rate matches the second refresh rate , The current display frame rate is the display frame rate of the display screen detected after the display screen is refreshed using the second refresh rate; when it is determined that there is no match, the electronic device updates the second refresh rate in the order of the screen refresh rate.
  • the second refresh rate is the next screen refresh rate among the multiple selectable screen refresh rates; when it is determined to match, or the second refresh rate is determined to be the
  • the electronic device sets the second refresh rate to a certain refresh rate, or updates the second refresh rate, it will use the second refresh rate to refresh the display screen, and the current display frame rate means that the second refresh rate is being set or updated.
  • the display frame rate of the display screen detected after the refresh rate.
  • the electronic device uses the first refresh rate that is not the highest screen refresh rate to refresh the display screen. Since the adopted screen refresh rate is lower than the highest screen refresh rate, it is relatively Always use the highest screen refresh rate to refresh the display, saving power consumption.
  • the electronic device After detecting the game scene, the electronic device first sets the current screen refresh rate to the highest screen refresh rate, and at the same time detects whether the current display frame rate matches the current screen refresh rate. If it matches, the current screen refresh rate is maintained. If it does not match, follow the order of the screen refresh rate from high to low, update to the next screen refresh rate and check again. Until the detected current display frame rate matches the second refresh rate, or the screen refresh rate is reduced to the first refresh rate commonly used by the user.
  • Possibility 1 If the finally determined matching screen refresh rate is the highest screen refresh rate, it can provide the best high display frame rate experience.
  • Possibility 2 If the finally determined matching screen refresh rate is not the highest screen refresh rate or the first refresh rate, it means that the output frame rate of the game scene has not yet reached the level of matching the highest screen refresh rate.
  • Using the finally determined second refresh rate can achieve the best display frame rate supported by the game scene, thereby providing the best high display frame rate experience.
  • the second refresh rate used is lower than the highest screen refresh rate, compared to always using the highest screen refresh rate to refresh the display screen, power consumption is also saved.
  • Possibility 3 If the final screen refresh rate is the first refresh rate, it means that the output frame rate of the game scene can match the first refresh rate at most. Using the first refresh rate can reach the highest display frame rate that the game scene can support, thereby providing a better display frame rate experience. At the same time, since the first refresh rate used is lower than the highest screen refresh rate, compared to always using the highest screen refresh rate to refresh the display, power consumption is also saved.
  • the electronic device determines whether the current display frame rate matches the second refresh rate:
  • each screen refresh rate of the plurality of selectable screen refresh rates corresponds to a frame rate range; the electronic device determines whether the current display frame rate matches the second refresh rate, specifically Including: the electronic device determines whether the current display frame rate belongs to the frame rate range corresponding to the second refresh rate; when it is determined to belong to the frame rate range corresponding to the second refresh rate, the electronic device determines whether the current display frame rate corresponds to the frame rate range.
  • the second refresh rate matches; when it is determined that it does not belong to the frame rate range corresponding to the second refresh rate, the electronic device determines that the current display frame rate does not match the second refresh rate.
  • a frame rate range includes all frame rates from the minimum frame rate value to the maximum frame rate value of the frame rate range. If a display frame rate value is greater than or equal to the minimum frame rate value and less than or equal to the maximum frame rate value, it can be determined that the display frame rate belongs to the frame rate range. If a display frame rate value is less than the minimum frame rate value or greater than the maximum frame rate value, it can be determined that the display frame rate does not belong to the frame rate range.
  • the frame rate range corresponding to a screen refresh rate of 90Hz is 80FPS-90FPS
  • the current display frame rate is 80FPS
  • the current display frame rate is 85FPS
  • the current display frame rate belongs to the frame rate range.
  • the current display frame rate is 90 FPS
  • the current display frame rate is 75 FPS, it can be determined that the current display frame rate does not belong to the frame rate range. It can be understood that, since the current display frame rate can only reach the current screen refresh rate at the highest level, there is no case that the current display frame rate does not fall within the frame rate range because the current display frame rate exceeds 90 FPS.
  • each screen refresh rate corresponds to a frame rate range
  • the electronic device only needs to determine whether the current display frame rate falls within the frame rate range to determine whether the current display frame rate matches the second refresh rate. No extra steps are required, and the operability is strong.
  • the electronic device determining whether the current display frame rate matches the second refresh rate specifically includes: the electronic device determining the difference between the value of the second refresh rate and the value of the current display frame rate Whether the value is less than the preset difference; when it is determined to be less than the preset difference, the electronic device determines that the current display frame rate matches the second refresh rate; when it is determined not to be less than the preset difference, the electronic device determines The current display frame rate does not match the second refresh rate.
  • the method further includes: the electronic device determines whether the type of the application currently running in the foreground is a game; the electronic device determines whether the increase in the output frame rate of the application exceeds a predetermined Set a threshold; when it is determined that the type of the application currently running in the foreground is a game type and the increase in the output frame rate of the application exceeds a preset threshold, the electronic device determines that the display screen is a game scene.
  • the electronic device when it is determined that the type of the application program is a game type, the electronic device does not directly determine that the display screen is a game scene. Rather, on the basis of determining that the application is a game, and the output frame rate of the application has increased beyond a preset threshold, the display screen is determined to be a game scene. It makes the recognition of high frame rate scenes more accurate, and the effect of saving power consumption is better.
  • the multiple optional screen refresh rates may include different numbers of screen resolutions:
  • the multiple selectable screen refresh rates include two screen refresh rates, which are the lowest screen refresh rate and the highest screen refresh rate; the first refresh rate is the lowest screen refresh rate .
  • the multiple selectable screen refresh rates include more than two screen refresh rates; the first refresh rate is the lowest screen refresh rate among the multiple selectable screen refresh rates; or , The first refresh rate is a screen refresh rate excluding the highest screen refresh rate and the lowest screen refresh rate among the plurality of selectable screen refresh rates.
  • the present application provides a refresh rate switching method, the method includes: the electronic device uses a third refresh rate to refresh the display screen, and the third refresh rate is not the highest among the multiple selectable screen refresh rates in the electronic device Screen refresh rate; when a touch operation input by the user is detected, the electronic device uses the highest screen refresh rate to refresh the display; after detecting that the touch operation leaves, when the screen is detected to be refreshed or the preset time is exceeded When a touch operation is detected, the electronic device uses the third refresh rate to refresh the display screen.
  • the electronic device refreshes the display screen at a third refresh rate that is not the highest screen refresh rate when the screen is frozen to refresh or no touch operation is detected. Since the adopted screen refresh rate is lower than the highest screen refresh rate, compared to always using the highest screen refresh rate to refresh the display, power consumption is saved.
  • the electronic device adjusts the screen refresh rate to the highest screen refresh rate, and provides users with a good high frame rate experience in such a high frame rate scene. Until the touch operation leaves and the screen freezes refreshing is detected, or the touch operation leaves and no touch operation is detected within the preset time period, the screen refresh rate is adjusted to the third refresh rate.
  • the method further includes: when the electronic device determines that the foreground application program has not sent the layer data that needs to be displayed within the stagnation detection period, the electronic device determines that the screen is stagnated and refreshed.
  • the multiple optional screen refresh rates may include different numbers of screen resolutions:
  • the multiple selectable screen refresh rates include two screen refresh rates, which are the lowest screen refresh rate and the highest screen refresh rate; the third refresh rate is the lowest screen refresh rate .
  • the multiple selectable screen refresh rates include more than two screen refresh rates; the third refresh rate is the lowest screen refresh rate among the multiple selectable screen refresh rates; or , The third refresh rate is a screen refresh rate excluding the highest screen refresh rate and the lowest screen refresh rate among the plurality of selectable screen refresh rates.
  • the present application provides an electronic device that includes: a display screen, one or more processors, a memory, multiple application programs, and one or more computer programs; wherein, the one or more A computer program is stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the electronic device, the electronic device is caused to perform the following steps: refresh the display screen using a first refresh rate, and the first The refresh rate is not the highest screen refresh rate among the multiple optional screen refresh rates in the electronic device; when the display screen is determined to be a game scene, follow the steps below to determine a screen refresh rate from the multiple optional screen refresh rates as the first Second refresh rate, use the second refresh rate to refresh the display: set the second refresh rate to the highest screen refresh rate; when it is determined that the second refresh rate is not the first refresh rate, determine the current display frame rate and the Whether the second refresh rate matches, the current display frame rate is the display frame rate of the display screen detected after the display screen is refreshed with the second refresh rate; when it is determined that there is no match, follow
  • the electronic device determines whether the current display frame rate matches the second refresh rate:
  • each of the multiple selectable screen refresh rates corresponds to a frame rate range; when the instruction is executed by the electronic device, the electronic device is caused to specifically perform the following steps : Determine whether the current display frame rate belongs to the frame rate range corresponding to the second refresh rate; when it is determined to belong to the frame rate range corresponding to the second refresh rate, determine whether the current display frame rate matches the second refresh rate; when When it is determined that it does not belong to the frame rate range corresponding to the second refresh rate, it is determined that the current display frame rate does not match the second refresh rate.
  • the electronic device when the instruction is executed by the electronic device, the electronic device specifically executes the following steps: determining whether the difference between the value of the second refresh rate and the value of the current display frame rate is less than the preset value. Set the difference; when it is determined to be less than the preset difference, determine that the current display frame rate matches the second refresh rate; when it is determined not to be less than the preset difference, determine the current display frame rate and the second refresh The rates do not match.
  • the electronic device when the instruction is executed by the electronic device, the electronic device is caused to perform the following steps: determine whether the type of the application currently running in the foreground is a game; determine the status of the application Whether the increase of the output frame rate exceeds the preset threshold; when it is determined that the type of the application currently running in the foreground is a game type and the increase of the output frame rate of the application exceeds the preset threshold, it is determined that the display screen is a game scene.
  • the multiple optional screen refresh rates may include different numbers of screen resolutions:
  • the multiple selectable screen refresh rates include two screen refresh rates, which are the lowest screen refresh rate and the highest screen refresh rate; the first refresh rate is the lowest screen refresh rate .
  • the multiple selectable screen refresh rates include more than two screen refresh rates; the first refresh rate is the lowest screen refresh rate among the multiple selectable screen refresh rates; or , The first refresh rate is a screen refresh rate excluding the highest screen refresh rate and the lowest screen refresh rate among the plurality of selectable screen refresh rates.
  • the present application provides an electronic device, which includes: a display screen, one or more processors, a memory, a plurality of application programs, and one or more computer programs; wherein, the one or more A computer program is stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the electronic device, the electronic device is caused to perform the following steps: refresh the display screen with a third refresh rate, and the third The refresh rate is not the highest screen refresh rate among the multiple selectable screen refresh rates in the electronic device; when a touch operation input by the user is detected, the highest screen refresh rate is used to refresh the display; when the touch operation is detected After leaving, when it is detected that the screen is stagnant to refresh or a touch operation is not detected beyond the preset time period, the third refresh rate is used to refresh the display screen.
  • the electronic device when the instruction is executed by the electronic device, the electronic device further executes the following steps: when it is determined that the foreground application program has not sent the layer data to be displayed within the stagnation detection period , Make sure that the screen is frozen and refreshed.
  • the multiple selectable screen refresh rates include two screen refresh rates, which are the lowest screen refresh rate and the highest screen refresh rate; the third refresh rate is the lowest screen refresh rate .
  • the multiple selectable screen refresh rates include more than two screen refresh rates; the third refresh rate is the lowest screen refresh rate among the multiple selectable screen refresh rates; or , The third refresh rate is a screen refresh rate excluding the highest screen refresh rate and the lowest screen refresh rate among the plurality of selectable screen refresh rates.
  • the embodiments of the present application provide a chip, which is applied to an electronic device, the chip includes one or more processors, and the processor is used to invoke computer instructions to make the electronic device execute the first aspect and the first aspect.
  • the embodiments of the present application provide a chip that is applied to an electronic device.
  • the chip includes one or more processors for invoking computer instructions to make the electronic device execute the second aspect and the first aspect.
  • the embodiments of the present application provide a computer program product containing instructions.
  • the computer program product is run on an electronic device, the electronic device is caused to execute the first aspect and any possible implementation manner in the first aspect. Described method.
  • the embodiments of the present application provide a computer program product containing instructions.
  • the computer program product is run on an electronic device, the electronic device is caused to execute the second aspect and any one of the possible implementation manners of the second aspect Described method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the above instructions run on an electronic device, cause the electronic device to execute the first aspect and any possible implementation manner in the first aspect Described method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the foregoing instructions run on an electronic device, cause the electronic device to execute the second aspect and any possible implementation manner of the second aspect Described method.
  • FIG. 1 is a schematic diagram of a state change of a refresh rate in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a set of interfaces of a refresh rate switching method in an embodiment of the present application
  • FIG. 3 is a schematic diagram of another set of interfaces of the refresh rate switching method in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another set of interfaces of a refresh rate switching method in an embodiment of the present application.
  • FIG. 5 is another schematic diagram of state changes of the refresh rate in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another set of interfaces of a refresh rate switching method in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a software structure framework of an electronic device provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
  • the screen refresh rate refers to the number of times the screen is refreshed per second, and its unit is Hz.
  • a display screen has a refresh rate of 120 Hz, it can support a display frame rate of 60 FPS and a display frame rate of 90 FPS, and it can support a maximum display frame rate of 120 FPS.
  • the final display frame rate can only reach the value of the screen refresh rate at most. For example, if the refresh rate of a display is 60Hz, even if the output frame rate of the application is 100FPS, the final display frame rate can only reach 60FPS at most.
  • the output frame rate refers to the frame rate that the interface or application program outputs to the display screen through the graphics card. Its unit is FPS, which refers to the number of frames displayed per second.
  • FPS which refers to the number of frames displayed per second.
  • a frame is a single image frame with the smallest unit in an image animation.
  • a frame is a forbidden frame, and consecutive frames form an animation.
  • the output frame rate of most interfaces or applications changes correspondingly with the change of the screen refresh rate in the system. For example, when the screen refresh rate is set to 60Hz, the output frame rate of this part of the interface or application will be adjusted to 60FPS; when the screen refresh rate is set to 90Hz, the output frame rate of this part of the interface or application will also be adjusted It is 90FPS.
  • the output frame rate of one of the applications is set to 120FPS. If the screen resolution is set to 60Hz, the output frame rate of this application will not be adjusted to 60FPS as the screen resolution changes in the system, but will continue to maintain the output frame rate of 120FPS. If the screen resolution is set to 144Hz, the output frame rate of this application will also continue to maintain 120FPS.
  • the display frame rate refers to the frame rate actually displayed on the screen of the interface or application, and its unit is also FPS.
  • the display frame rate is approximately equal to the output frame rate.
  • the output frame rate is 30FPS
  • the screen refresh rate is 60Hz.
  • the 60 pictures displayed on the screen for 1 second will be filled with repeated frames. Such repeated frames are not counted in the statistical display frame rate, so the effective picture actually displayed is still 30 frames, that is, the display frame rate is 30FPS.
  • the display frame rate is approximately equal to the output frame rate.
  • the output frame rate is 90FPS
  • the screen refresh rate is 90Hz. It happens that the application outputs 90 frames per second, and the display refreshes and displays 90 frames per second, and the display frame rate is 90FPS.
  • the display frame rate is approximately equal to the screen refresh rate.
  • the output frame rate is 120FPS
  • the screen refresh rate is 90Hz.
  • the application program outputs 120 pictures per second, and the display screen can only refresh 90 pictures per second. It is impossible to display all the 120 pictures per second output by the application program, and can only display 90 pictures at most.
  • the electronic device discards or merges part of the 120 images output by the application every second, and finally displays 90 images per second, that is, the display frame rate is 90 FPS.
  • the reason why the display frame rate is approximately equal to the output frame rate or screen refresh rate, but not equal, is because in practical applications, sometimes the timing of the display screen and the screen refresh cannot be guaranteed to be exactly the same. Therefore, it is impossible for every output frame to be displayed just when the screen is refreshed, and it may also be lost, resulting in a small amount of fluctuation in the display frame rate. For example, even if the output frame rate is 90FPS and the screen refresh rate is 90Hz, the final actual display frame rate may continue to fluctuate between 80FPS and 90FPS.
  • a high frame rate scene refers to a scene where the screen display effect and user experience will also improve as the display frame rate increases. For example, if the frame rate is not enough for some pictures with fast moving speed, smear or delay may occur, which affects the visual experience of the user. In the case of a higher display frame rate, the screen display effect will be smoother and more realistic.
  • a standard frame rate scene refers to a scene where an increase in the display frame rate does not significantly affect the screen display effect and user experience. For example, in a still picture scene or some pictures with slow motion speed, the high and low display frame rate will not affect the presentation effect of the final display picture.
  • the electronic device may support multiple optional screen refresh rates, and the multiple optional screen refresh rates may include at least a minimum screen refresh rate and a maximum screen refresh rate.
  • the multiple selectable screen refresh rates may have only two selectable screen refresh rates, one is the highest screen refresh rate, and the other is the lowest screen refresh rate.
  • Two optional screen refresh rates 60Hz, 90Hz.
  • 60 Hz is the lowest screen refresh rate among the multiple selectable screen refresh rates
  • 90 Hz is the highest screen refresh rate among the multiple selectable screen refresh rates.
  • the multiple optional screen refresh rates may also include more optional screen refresh rates:
  • it includes 3 selectable screen refresh rates: 60 Hz, 90 Hz, and 120 Hz.
  • 60Hz is the lowest screen refresh rate among multiple optional screen refresh rates
  • 120Hz is the highest screen refresh rate among multiple optional screen refresh rates.
  • it includes 4 selectable screen refresh rates: 60 Hz, 90 Hz, 120 Hz, and 144 Hz.
  • 60 Hz is the lowest screen refresh rate among the multiple selectable screen refresh rates
  • 120 Hz is the highest screen refresh rate among the multiple selectable screen refresh rates.
  • it includes 5 selectable screen refresh rates: 45Hz, 60Hz, 90Hz, 120Hz, 240Hz.
  • 45 Hz is the lowest screen refresh rate among the multiple optional screen refresh rates
  • 240 Hz is the highest screen refresh rate among the multiple optional screen refresh rates.
  • multiple selectable screen refresh rates may also include more screen refresh rates.
  • the electronic device can determine whether the type of the running foreground application is a game based on the information stored in the tripartite feature library. At the same time, the electronic device can also monitor the output frame rate of the foreground application in real time. When the increase in the output frame rate of the foreground application exceeds the preset threshold, the electronic device determines that it has entered the game scene.
  • the user starts an application game 1, and the electronic device determines that the type of the application currently running in the foreground is a game based on the application type information pre-stored in the tripartite feature library.
  • the output frame rate of the game application is 45 FPS, and the electronic device has not yet determined to enter the game scene.
  • the output frame rate of the application game one is increased to 60FPS.
  • the electronic device detects that the increase in the output frame rate exceeds the preset threshold of 10 FPS, and determines that the current is a game scene.
  • a down event is generated. Through the down event, the electronic device can determine that a touch operation has been detected.
  • the sensor module detects the movement of the user's touch point, for example, using a finger or stylus to slide on the screen, and the finger or stylus does not leave the screen, a move event will be generated. Through the move event, the electronic device can determine that the movement of the user's touch point has been detected.
  • an up event is generated. Through the up event, the electronic device can determine that the touch operation leaving is detected.
  • the application will send the layer data to be displayed to the layer fusion system in the electronic device for fusion.
  • the layer fusion system sends the time information of the layer data to be displayed by the application to the graphic service in the electronic device. If the graphics service does not receive the time information sent by the layer fusion system for a period of time (which can be called the stagnation detection time, for example, 1 second), it means that the application has no graphics to draw frames. Therefore, the graphics service can determine that the current screen is stagnant to refresh.
  • the display frame rate of the display screen can be Reach the highest display frame rate of the interface or application.
  • the screen refresh rate is fixed at 90Hz, and the maximum output frame rate of the interface or application is 30FPS, then the display frame rate can reach 30FPS.
  • the screen refresh rate is fixed at 90Hz, and the maximum output frame rate of the interface or application is 90FPS, then the display frame rate can reach 90FPS.
  • such a fixed screen refresh rate requires the electronic device to continuously maintain a large power consumption.
  • the scene to which the display screen belongs is judged, for example, whether it is a high frame rate scene or a standard frame rate scene.
  • a higher screen refresh rate will be used to support a higher display frame rate to provide a smooth experience.
  • a lower screen refresh rate will be used to save power consumption.
  • the screen refresh rate is increased to provide a high display frame rate experience.
  • a lower screen refresh rate is used, which reduces the overall power consumption of the electronic device.
  • the electronic device has multiple switchable screen refresh rates.
  • the electronic device uses the first refresh rate when determining that the display screen is a scene with a high frame rate; when determining that the display screen is a scene with a standard frame rate, the second refresh rate is used.
  • the second refresh rate is lower than the first refresh rate.
  • the high frame rate scene may include at least a game scene or a touch scene:
  • Fig. 1 is a schematic diagram of a state change of a refresh rate in an embodiment of the application:
  • the electronic device uses a first refresh rate to refresh the display screen, where the first refresh rate is not the highest screen refresh rate among multiple selectable screen refresh rates in the electronic device;
  • the electronic device has multiple selectable screen refresh rates, and the electronic device currently uses the first refresh rate that is not the highest screen refresh rate to refresh the display screen.
  • the first refresh rate may be the lowest screen refresh rate among a plurality of selectable screen refresh rates.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, and the first refresh rate may be 60 Hz.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, 120 Hz, and the first refresh rate may be 60 Hz.
  • the first refresh rate may not be the lowest screen refresh rate among multiple selectable screen refresh rates.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, 120 Hz, and the first refresh rate may be 90 Hz.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, 120 Hz, 240 Hz, and the first refresh rate may be 90 Hz or 120 Hz.
  • the first refresh rate may be the factory default screen refresh rate of the electronic device, or may be the daily use screen refresh rate selected by the user from a plurality of optional screen refresh rates, which is not limited here.
  • the electronic device determines that the display screen is a game scene, the electronic device executes steps S103 to S107, determines a screen refresh rate from the multiple selectable screen refresh rates as a second refresh rate, and uses the second refresh rate to refresh Display screen
  • the electronic device determines that the display screen is a game scene, the electronic device starts to try to use a higher screen refresh rate to support a higher output frame rate, so as to achieve a higher display frame rate.
  • the electronic device determines a refresh rate from a plurality of selectable screen refresh rates as the second refresh rate, and after refreshing the display using the second refresh rate, determines whether the current display frame rate matches the second refresh rate. Determine the best screen refresh rate that matches the output frame rate of the game application by means of hierarchical attempt detection. This method is more adaptable and will not be restricted by game applications.
  • the specific process of determining the second refresh rate is steps S103 to 107.
  • the electronic device sets the second refresh rate to the highest screen refresh rate.
  • the electronic device first sets the second refresh rate to the highest screen refresh rate, and uses the highest screen refresh rate to refresh the display screen.
  • the electronic device determines whether the current display frame rate matches the second refresh rate
  • the current display frame rate is the display frame rate of the display screen detected by the electronic device after the display screen is refreshed using the second refresh rate.
  • the second refresh rate is the highest screen refresh rate, or in S106, it is determined that the second refresh rate is updated to the next screen refresh rate among multiple alternative screen refresh rates, and it is determined that the second refresh rate is not When the first refresh rate is used, it means that the electronic device has increased the screen refresh rate to the second refresh rate.
  • the second refresh rate may be the highest screen refresh rate among the multiple selectable screen refresh rates, or may be any one of the multiple selectable screen refresh rates that is higher than the first refresh rate.
  • the electronic device After refreshing the display screen using the second refresh rate, the electronic device first detects the display frame rate of the display screen to obtain the current display frame rate, and then determines whether the current display frame rate matches the second refresh rate. If it does not match, go to S105; if it matches, go to S107.
  • each of the multiple selectable screen refresh rates corresponds to a matching frame rate range. It can be determined whether the current display frame rate falls within the frame rate range corresponding to the second refresh rate. If it belongs to the frame rate range corresponding to the second refresh rate, then the match is confirmed; if it does not belong to the frame rate range corresponding to the second refresh rate, it is confirmed that it does not match. It is understandable that a frame rate range includes all the frame rates from the minimum frame rate value to the maximum frame rate value in this frame rate range. To determine whether a display frame rate belongs to a frame rate range, you can see the display frame rate Whether the value is greater than or equal to the minimum frame rate value in this frame rate range and less than or equal to the maximum frame rate value in this frame rate range.
  • the display frame rate is greater than or equal to the minimum frame rate value in this frame rate range and less than or equal to the maximum frame rate value in this frame rate range, it can be determined that the display frame rate belongs to the frame rate range. If the value of the display frame rate is less than the minimum frame rate value in this frame rate range or greater than the maximum frame rate value in this frame rate range, it can be determined that the display frame rate does not belong to the frame rate range.
  • the frame rate range corresponding to 60Hz is 40FPS-60FPS
  • the frame rate range corresponding to 120Hz is 100FPS-120FPS
  • the frame rate range corresponding to 240Hz is 200FPS-240FPS.
  • the current second refresh rate is 240 Hz
  • the current display frame rate is 210 FPS.
  • 210FPS belongs to the frame rate range 200FPS-240FPS corresponding to the second refresh rate 240Hz, and it is considered that the display frame rate 210FPS matches the second refresh rate 240Hz.
  • the display frame rate is considered 110FPS and the second refresh rate 240Hz does not match.
  • the predicted difference is 30. If the current second refresh rate is 240 Hz, and the detected current display frame rate is 220 FPS. The difference 20 between the value 240 of the second refresh rate and the value 220 of the current display frame rate is less than the preset difference value 30, so it is considered that the current display frame rate 220 FPS matches the second refresh rate 240 Hz. If the current second refresh rate is 240 Hz, and the detected current display frame rate is 110 FPS, the difference 130 between the second refresh rate value 240 and the current display frame rate value 110 is not less than the preset difference value of 30, so it is considered that The current display frame rate of 110FPS does not match the second refresh rate of 240Hz.
  • the electronic device updates the second refresh rate according to the order of the screen refresh rate from high to low, and updates the second refresh rate to the next screen refresh rate among the plurality of selectable screen refresh rates;
  • the electronic device may update the second refresh rate to the next screen refresh rate among the multiple selectable screen refresh rates in the order of the screen refresh rate from high to low.
  • the electronic device may update the second refresh rate of 120 Hz.
  • S106 The electronic device determines whether the second refresh rate is the first refresh rate
  • the electronic device After the electronic device updates the second refresh rate, it determines whether the second refresh rate is the first refresh rate:
  • the second refresh rate is the first refresh rate, it means that the minimum screen refresh rate has been reduced to the minimum screen refresh rate or the screen refresh rate selected by the manufacturer or the user by default. Even if the current display frame rate does not match the second refresh rate, the screen refresh rate cannot be lowered or there is no need to lower the screen refresh rate. Therefore, there is no need to check whether the current display frame rate matches the current display frame rate at the second refresh rate. S107 can be executed directly to maintain the screen refresh rate at the second refresh rate.
  • the second refresh rate is not the first refresh rate, it means that the minimum screen refresh rate has not been reduced or the screen refresh rate selected by the manufacturer or the user by default has not been reduced. If the current display frame rate does not match the second refresh rate, the screen refresh rate can be further reduced to further save space for power consumption. Therefore, S104 may be executed again to detect whether the updated second refresh rate matches the current display frame rate.
  • the first refresh rate is 120Hz.
  • the detected current display frame rate is 110 FPS, and it is determined that the current display frame rate 110 FPS does not match the second refresh rate 240 Hz.
  • the electronic device updates the second refresh rate to 120 Hz. After the update, it is determined that the second refresh rate of 120 Hz is the first refresh rate of 120 Hz. Therefore, directly execute S107 to maintain the screen refresh rate at the default screen refresh rate of 120 Hz set by the manufacturer or the user.
  • the first refresh rate is 60 Hz.
  • the detected current display frame rate is 110 FPS, and it is determined that the current display frame rate 110 FPS does not match the second refresh rate 240 Hz.
  • the electronic device updates the second refresh rate to 120 Hz, and after the update, it is determined that the second refresh rate of 120 Hz is not the first refresh rate of 60 Hz. Therefore, S104 is executed again, and it is detected that the current display frame rate is 110 FPS, which matches the updated second refresh rate of 120 Hz. Perform S107 to maintain the screen refresh rate at the updated second refresh rate of 120 Hz.
  • the electronic device may have different ways of determining whether the second refresh rate is the first refresh rate: there may be an explicit way of determining. For example, directly compare the second refresh rate with the first refresh rate. There can also be an invisible way of determining. For example, when the second refresh rate is updated to the next screen refresh rate among the multiple selectable screen refresh rates, it can be determined whether the next screen refresh rate updated here is the first refresh rate according to the default refresh rate indicator or other methods. There is no need to have a separate action of determining whether the updated second refresh rate is the first refresh rate. Therefore, in some embodiments, step S106 may not be performed as an action, but only a state determination, which is not limited here.
  • the second refresh rate is the screen refresh rate that best matches the output frame rate of the game application in the game scene among the multiple selectable screen refresh rates of the terminal.
  • Using the second refresh rate can not only meet the display frame rate requirement of the game scene, but also does not waste power consumption.
  • the second refresh rate is the first refresh rate
  • the refresh rate can no longer be reduced, so the screen refresh rate can be directly maintained at the second refresh rate Rate.
  • the updated second refresh rate has been reduced to the default refresh rate set by the manufacturer or user, which is also the screen refresh rate commonly used by users. Regardless of whether the current display frame rate can match the second refresh rate, it is not suitable to reduce the screen refresh rate to violate user habits. Therefore, the screen refresh rate can also be directly maintained at the second refresh rate.
  • the electronic device can resume using the first refresh rate to refresh the display screen.
  • the electronic device in order to support a high frame rate display effect, is generally set to refresh the display screen at the highest screen refresh rate.
  • the electronic device uses the first refresh rate that is not the highest screen refresh rate to refresh the display screen. Since the adopted screen refresh rate is lower than the highest screen refresh rate, it is The highest screen refresh rate is used to refresh the display screen, which saves power consumption.
  • the electronic device first sets the current screen refresh rate to the highest screen refresh rate, and at the same time detects whether the current display frame rate matches the current screen refresh rate. If it matches, the current screen refresh rate is maintained. If it does not match, follow the order of the screen refresh rate from high to low, update to the next screen refresh rate and check again. Until the detected current display frame rate matches the second refresh rate or the screen refresh rate is reduced to the first refresh rate commonly used by the user. In the end, there are three possibilities:
  • Possibility 2 If the finally determined matching screen refresh rate is not the highest screen refresh rate or the first refresh rate, it means that the output frame rate of the game scene has not yet reached the level of matching the highest screen refresh rate. Using the finally determined second refresh rate can achieve the best display frame rate supported by the game scene, thereby providing the best high display frame rate experience. At the same time, since the second refresh rate used is lower than the highest screen refresh rate, compared to always using the highest screen refresh rate to refresh the display screen, power consumption is also saved.
  • Possibility 3 If the final screen refresh rate is the first refresh rate, it means that the output frame rate of the game scene can match the first refresh rate at most. Using the first refresh rate can reach the highest display frame rate that the game scene can support, thereby providing a better display frame rate experience. At the same time, since the first refresh rate used is lower than the highest screen refresh rate, compared to always using the highest screen refresh rate to refresh the display, power consumption is also saved.
  • Case 1 There are two multiple selectable screen refresh rates, and the first refresh rate is the lowest screen refresh rate.
  • FIG. 2 a group of interface schematic diagrams of the refresh rate switching method in the embodiment of this application.
  • FIG. 2 is a schematic diagram of the main interface of the electronic device, in which multiple applications are displayed, such as mailbox application, cloud sharing application, memo application, setting application, gallery application, game application 201, camera application, etc.
  • applications such as mailbox application, cloud sharing application, memo application, setting application, gallery application, game application 201, camera application, etc.
  • Electronic devices have two optional screen refresh rates: 60Hz and 120Hz.
  • the frame rate range corresponding to 60Hz is 40-60FPS, and the frame rate range corresponding to 120Hz is 100-120FPS.
  • the electronic device detects the user's operation and turns on the screen refresh rate display function and the display frame rate display function, which are displayed in the upper right corner of the screen.
  • the screen refresh rate display area 202 in (a) of FIG. 2 when the main interface is displayed, the screen refresh rate of the electronic device is 60 Hz, that is, the electronic device uses the first refresh rate of 60 Hz to refresh the display screen.
  • the display frame rate display area 203 in (a) of FIG. 2 when the main interface is displayed, since the display frame rate of the main interface generally follows the screen refresh rate, the display frame rate of the electronic device at this time is 60 FPS.
  • the electronic device does not determine whether the screen refresh rate matches the current display frame rate because the screen refresh display function and the display frame rate function are turned on by a user operation. Even if the user does not turn on the screen refresh display function and the display frame rate display function, the electronic device can also execute the refresh rate switching method shown in FIG. 1. It can detect the current display frame rate and determine the screen refresh rate internally, but they do not necessarily need to be displayed. This is just an exemplary display for ease of understanding. In the subsequent examples, the screen refresh rate display function and the display frame rate display function will also be turned on, which is also only an exemplary display, so it will not be repeated one by one.
  • FIG. 2 is the game interface after the user opens the game application 201.
  • the user opens the game application 201
  • the electronic device determines that it is currently a game scene, and sets the current screen refresh rate to the highest screen refresh rate of 120 Hz, that is, sets the second refresh rate to the highest screen refresh rate.
  • the screen refresh rate display area 204 in Figure 2(b) the screen refresh rate at this time is increased to 120Hz, as shown in the display frame rate display area 205 in Figure 2(b), the electronic device detects The current display frame rate is 110FPS.
  • the electronic device determines that the current display frame rate of 110 FPS belongs to the frame rate range of 100-120 FPS corresponding to the second refresh rate of 120 Hz, that is, the current display frame rate matches the second refresh rate at this time. Therefore, the electronic device maintains the screen refresh rate at the second refresh rate of 120 Hz.
  • the electronic device When the electronic device leaves the game application and returns to the main interface shown in Figure 2(a), the electronic device continues to use the first refresh rate 60Hz to refresh the display screen, and the detected current display frame rate also follows back to 60FPS .
  • FIG. 3 another set of interface schematic diagrams of the refresh rate switching method in the embodiment of this application.
  • Electronic devices have two optional screen refresh rates: 60Hz and 120Hz.
  • the frame rate range corresponding to 60Hz is 40-60FPS, and the frame rate range corresponding to 120Hz is 100-120FPS.
  • the electronic device detects the user's operation and turns on the screen refresh rate display function and the display frame rate display function, which are displayed in the upper right corner of the screen.
  • the screen refresh rate display area 302 in (a) of FIG. 3 when the main interface is displayed, the screen refresh rate of the electronic device is 60 Hz, that is, the electronic device uses the first refresh rate of 60 Hz to refresh the display screen.
  • the display frame rate display area 303 in (a) of FIG. 3 when the main interface is displayed, since the display frame rate of the main interface generally follows the screen refresh rate, the display frame rate of the electronic device at this time is 60 FPS.
  • Figure 2 (b) is the game interface after the user opens the game application 301.
  • the electronic device determines that it is currently a game scene and sets the current screen refresh rate
  • the maximum screen refresh rate is 120Hz, that is, the second refresh rate is set to the highest screen refresh rate.
  • the screen refresh rate display area 304 in Fig. 3(b) the screen refresh rate at this time is increased to 120Hz, as shown in the display frame rate display area 305 in Fig. 3(b), the electronic device detects
  • the current display frame rate is 50FPS.
  • the electronic device determines that the current display frame rate of 50FPS does not belong to the frame rate range of 100-120FPS corresponding to the second refresh rate of 120Hz.
  • the second refresh rate is updated among the multiple selectable screen refresh rates.
  • the next screen refresh rate is 60Hz. Since 60 Hz is the first refresh rate, according to step S107 in the method shown in FIG. 1, the electronic device directly maintains the screen refresh rate at the second refresh rate of 60 Hz. As shown in the screen refresh rate display area 306 in (c) of FIG. 3, the screen refresh rate at this time is 60 Hz, as shown in the display frame rate display area 307 in (c) of FIG. 3, the current display of the electronic device The frame rate is still 50FPS.
  • the electronic device When the electronic device leaves the game application and returns to the main interface shown in Figure 3(a), the electronic device continues to use the first refresh rate 60Hz to refresh the display screen, and the detected current display frame rate also follows back to 60FPS .
  • Case 2 Multiple selectable screen refresh rates are greater than two, and the first refresh rate is the lowest screen refresh rate.
  • FIG. 4 Another set of interface schematic diagrams of the refresh rate switching method in the embodiment of this application.
  • the Electronic equipment has 4 optional screen refresh rates: 60Hz, 90Hz, 120Hz, 240Hz.
  • the frame rate range corresponding to 60Hz is 40-60FPS
  • the frame rate range corresponding to 90Hz is 75-90FPS
  • the frame rate range corresponding to 120Hz is 100-120FPS
  • the frame rate range corresponding to 240Hz is 200-240FPS.
  • the electronic device detects the user's operation and turns on the screen refresh rate display function and the display frame rate display function, which are displayed in the upper right corner of the screen.
  • the screen refresh rate display area 402 in (a) of FIG. 4 when the main interface is displayed, the screen refresh rate of the electronic device is 60 Hz, that is, the electronic device uses the first refresh rate of 60 Hz to refresh the display screen.
  • the display frame rate display area 403 in (a) of FIG. 4 when the main interface is displayed, since the display frame rate of the main interface generally follows the screen refresh rate, the display frame rate of the electronic device at this time is 60 FPS.
  • Figure 4(b) is the game interface after the user opens the game application 401.
  • the electronic device determines that it is currently a game scene and sets the current screen refresh rate
  • the highest screen refresh rate is 240 Hz, that is, the second refresh rate is determined to be the highest screen refresh rate.
  • the screen refresh rate display area 404 in (b) of FIG. 4 the screen refresh rate at this time is increased to 240Hz, as shown in the display frame rate display area 405 in (b) of FIG. 4, the electronic device detects
  • the current display frame rate is 70FPS.
  • the electronic device determines that the display frame rate of 70 FPS does not belong to the frame rate range of 200-240 FPS corresponding to the second refresh rate of 240 Hz, and determines that it does not match.
  • the second refresh rate is updated to 120 Hz, the next screen refresh rate among a plurality of selectable screen refresh rates.
  • the second refresh rate of 120 Hz is not the first refresh rate of 60 Hz, and again according to step S104 in the refresh rate switching method of the embodiment shown in FIG. 1, it is determined whether the current display frame rate matches the second refresh rate.
  • the screen refresh rate at this time is updated to 120 Hz.
  • the current display frame rate detected by the electronic device is 75FPS, and the electronic device determines that the display frame rate of 75FPS does not belong to the frame rate range 100 corresponding to the second refresh rate of 120Hz. -120FPS, it is determined that there is no match.
  • the second refresh rate is updated to 90 Hz, the next screen refresh rate among the multiple selectable screen refresh rates.
  • the second refresh rate of 90 Hz is not the first refresh rate of 60 Hz, and again according to step S104 in the refresh rate switching method of the embodiment shown in FIG. 1, it is determined whether the current display frame rate matches the second refresh rate.
  • the screen refresh rate at this time is updated to 90Hz, as shown in the display frame rate display area 409 in (d) of FIG. 4, the electronic device detects The current display frame rate is 80FPS.
  • the electronic device determines that the current display frame rate of 80 FPS belongs to the frame rate range of 75-90 FPS corresponding to the second refresh rate of 90 Hz, and determines a match.
  • the electronic device maintains the screen refresh rate at the second refresh rate of 90 Hz.
  • the electronic device When the electronic device leaves the game application and returns to display the main interface shown in Figure 4(a), the electronic device continues to refresh the display screen with the first refresh rate of 60Hz, and the display frame rate also returns to 60FPS.
  • Case 3 The multiple selectable screen refresh rates are greater than two, and the first refresh rate is not the lowest screen refresh rate.
  • the electronic device has 4 selectable screen refresh rates: 60 Hz, 90 Hz, 120 Hz, 240 Hz.
  • the frame rate range corresponding to 60Hz is 40-60FPS
  • the frame rate range corresponding to 90Hz is 75-90FPS
  • the frame rate range corresponding to 120Hz is 100-120FPS
  • the frame rate range corresponding to 240Hz is 200-240FPS.
  • the interface or application of the electronic device generally uses a default screen refresh rate of 90 Hz selected by the user, and the electronic device uses this 90 Hz as the first refresh rate to refresh the display screen.
  • the electronic device When the user opens the game application and detects that the display screen is a game scene, the electronic device increases the screen refresh rate of 240 Hz as the second refresh rate to refresh the display screen. And according to step S103 in the refresh rate switching method of the embodiment shown in FIG. 1, it is detected that the current display frame rate is 80FPS, and it is determined that the detected current display frame rate does not belong to the frame rate range 200-240FPS corresponding to the second refresh rate 240Hz. . The current display frame rate does not match the second refresh rate. According to step S105 in the refresh rate switching method of the embodiment shown in FIG. 1, the second refresh rate is updated to the next screen refresh rate of 120 Hz among the multiple selectable screen refresh rates. .
  • the second refresh rate of 120 Hz is not the first refresh rate of 90 Hz.
  • step S104 in the refresh rate switching method of the embodiment shown in FIG. 1 it is determined that the current display frame rate is 82 Hz, which does not belong to the frame rate corresponding to the second refresh rate of 120 Hz.
  • the range is 100-120FPS, the current display frame rate does not match the second refresh rate.
  • step S105 in the refresh rate switching method of the embodiment shown in FIG. 1 the second refresh rate is updated to 90 Hz, the next screen refresh rate among the multiple selectable screen refresh rates.
  • the electronic device can determine that although the second refresh rate of 90 Hz is not the minimum screen refresh rate, it is the first refresh rate used by the user by default.
  • step S107 in the refresh rate switching method of the embodiment shown in FIG. 1 the electronic device maintains the screen refresh rate at the second refresh rate of 90 Hz.
  • the electronic device When the electronic device leaves the game application and returns to the main interface or other applications, the electronic device continues to use the first refresh rate of 90Hz to refresh the display screen, and the display frame rate also returns to 90FPS.
  • FIG. 5 is another schematic diagram of the state change of the refresh rate in the embodiment of the application:
  • the electronic device uses a third refresh rate to refresh the display screen, where the third refresh rate is not the highest screen refresh rate among the multiple selectable screen refresh rates in the electronic device;
  • the electronic device uses the third refresh rate to refresh the display screen.
  • the electronic device has multiple selectable screen refresh rates, and the electronic device currently uses the third refresh rate that is not the highest screen refresh rate to refresh the display screen.
  • the third refresh rate may be the lowest screen refresh rate among a plurality of selectable screen refresh rates.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz
  • the first refresh rate may be 60 Hz.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, 120 Hz
  • the third refresh rate may be 60 Hz.
  • the third refresh rate may not be the lowest screen refresh rate among multiple selectable screen refresh rates.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, 120 Hz
  • the third refresh rate may be 90 Hz.
  • multiple selectable screen refresh rates 60 Hz, 90 Hz, 120 Hz, 240 Hz
  • the third refresh rate may be 90 Hz or 120 Hz.
  • the third refresh rate may be the factory default screen refresh rate of the electronic device, or may be the daily use screen refresh rate selected by the user from a plurality of optional screen refresh rates, which is not limited here.
  • the electronic device may use the highest screen refresh rate among multiple selectable screen refresh rates to refresh the display screen. Since the output frame rate of a general interface or application will be adjusted according to the screen refresh rate used by the system, the display frame rate of the screen will also be increased to a corresponding higher display frame as the highest screen refresh rate is used. Rate, so as to be more smooth in the process of dynamic changes in the picture.
  • the electronic device After the electronic device detects that the touch operation leaves, it does not immediately return to the low refresh rate, but continues to use the highest screen refresh rate to refresh the display. Because although the touch operation has left, the impact of the touch operation may not be over, and the screen may still be dynamically changing. For example, after a sliding operation, although the finger leaves, the screen will continue to slide for a while; after a tap operation, although the finger leaves, the newly opened interface may continue to load, and so on.
  • the electronic device When it is detected that the screen refreshes stagnantly, it indicates that the screen does not need to be refreshed any more, and the impact of the touch operation has ended, and the electronic device will refresh the display screen with a lower third refresh rate to save power consumption.
  • the electronic device may detect that the screen has not stalled and refreshed. In this case, it is very likely that the electronic device is playing a video, but playing the video does not need to use the highest screen refresh rate and the highest display frame rate. Use the common screen refresh rate and display frame rate to achieve better results. Therefore, the electronic device is also set with a preset time period. When a new touch operation is not detected after the preset time period is exceeded after the touch is left, the electronic device will also be adjusted to use the third refresh rate to refresh the display screen to save power. Consumption.
  • the preset duration can be directly set by the user, or an empirical data can be set by the manufacturer through experiments, which is not limited here.
  • the staff can simulate a large number of touch scenes in the laboratory. For example, 10,000 sliding operations, 10,000 click operations, and then obtaining the duration of the dynamic refresh of the screen caused by the operation. Draw the acquired data into a touch curve, and then obtain the maximum possible duration of dynamic refresh of the screen caused by a touch operation through human factor analysis as the experimental value, and finally set the preset duration according to the experimental value. For example, if the experimental value obtained according to this method is 4.75 seconds, that is, through the analysis of the touch curve drawn by the acquired data, most of the dynamic refresh of the screen caused by the touch operation will end within 4.75 seconds. Then, when the electronic device is factory-set, the preset duration can be set to 5 seconds.
  • the electronic device refreshes the display screen at a third refresh rate that is not the highest screen refresh rate when the screen is frozen to refresh or no touch operation is detected. Since the adopted screen refresh rate is lower than the highest screen refresh rate, compared to always using the highest screen refresh rate to refresh the display, power consumption is saved.
  • the electronic device adjusts the screen refresh rate to the highest screen refresh rate, and provides users with a good high frame rate experience in such a high frame rate scene. Until the touch operation leaves and the screen freezes refreshing is detected, or the touch operation leaves and no touch operation is detected within the preset time period, the screen refresh rate is adjusted to the third refresh rate.
  • FIG. 6 another set of interface schematic diagrams of the refresh rate switching method in this embodiment of the present application.
  • FIG. 6 is a schematic diagram of the interface of an electronic device displaying an article named Three Hundred Tang Poems.
  • the electronic device has turned on the screen refresh rate display function, which is displayed in the upper right corner of the screen.
  • the electronic device has 3 optional screen refresh rates: 60Hz, 120Hz, 240Hz.
  • the user sets 60 Hz as the common screen refresh rate, that is, sets 60 Hz as the third refresh rate in step S501 of the method for switching the refresh rate in the embodiment shown in FIG. 5.
  • the preset duration in step S503 of the method for switching the refresh rate in the embodiment shown in FIG. 5 is factory set to 5 seconds.
  • the screen refresh rate of the electronic device at this time is 60 Hz.
  • the electronic device uses 60 Hz as the third refresh rate to refresh the display screen.
  • step S501 of the refresh rate switching method in the embodiment shown in FIG. 5 after detecting the touch operation, the electronic device adjusts to the highest screen refresh rate of 240 Hz to refresh the display screen.
  • the screen refresh rate display area 602 in (b) of FIG. 6 the screen refresh rate of the electronic device is adjusted to the highest screen refresh rate 240 Hz at this time.
  • step S503 in the refresh rate switching method in the embodiment shown in FIG. 5 the electronic device detects that the screen is frozen and refreshes, and uses the third refresh rate of 60 Hz to refresh the display screen. As shown in (d) of FIG. 6, at this time, the screen refresh rate of the electronic device is adjusted to a third refresh rate of 60 Hz.
  • the electronic device has 4 selectable screen refresh rates: 60 Hz, 90 Hz, 120 Hz, 240 Hz.
  • the factory setting 90 Hz is the common screen refresh rate, that is, 90 Hz is set as the third refresh rate in step S501 of the method for switching the refresh rate in the embodiment shown in FIG. 5.
  • the preset duration in step S503 of the method for switching the refresh rate in the embodiment shown in FIG. 5 is factory set to 5 seconds.
  • the electronic device uses the third refresh rate of 90 Hz to refresh the display screen.
  • step S501 of the refresh rate switching method in the embodiment shown in FIG. 5 the electronic device detects the touch operation and adjusts to the highest screen refresh rate 240 Hz to refresh the display screen.
  • the user's finger has left the screen, and the electronic device plays a video. Since the video is a dynamic picture display, the electronic device has not detected that the picture is stagnant and refreshed.
  • the electronic device adjusts to use the third refresh rate of 90Hz to refresh the display.
  • the following describes an exemplary electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figure may 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 electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194 and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the SIM interface can be used to communicate with the SIM card interface 195 to realize the function of transmitting data to the SIM card or reading data in the SIM card.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic illustration, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • emitting diode AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 supports multiple selectable screen refresh rates in the above embodiments.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application required for a function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.) and so on.
  • the storage data area can store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • FIG. 8 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the system is divided into four layers, from top to bottom, the application layer, the application framework layer, the system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications (also called applications) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, game, settings, etc.
  • applications also called applications
  • the user can also set the screen resolution for daily use through the setting application, and can also set whether to enable the high refresh rate switching function through the setting application. Only when the high refresh rate switching function is enabled, the electronic device The refresh rate switching method in the above embodiment will be executed. When the high refresh rate switching function is not activated, the electronic device may not execute the refresh rate switching method in the above embodiment, but use the factory default or the fixed screen set by the user. Refresh rate to refresh the screen.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a scene recognition module, HwAGP, etc.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialogue interface. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the scene recognition module may include a database, a tripartite feature library, and a scene recognition unit.
  • the database can store all the setting items in the setting application and factory preset setting information, for example, it can store multiple optional screen refresh rates supported by the electronic device, the default screen refresh rate preset by the manufacturer, or The user sets the daily screen refresh rate set by the application, and whether the user enables the high refresh rate switching function, etc., so that after the electronic device is restarted, according to the data recorded in the database, the electronic device can be restored in time to the value before the restart set up.
  • the tripartite signature database records the types of common applications and the information about the entry or exit of the currently launched application.
  • the scene recognition unit can determine the type of the application currently running in the foreground according to the information in the database and the tripartite feature library. For example, the application currently running in the foreground is a game or the application currently running in the foreground is a news.
  • the display service interface is used to deliver the scene information determined by the scene recognition module to the display service of the system library.
  • the display service interface may be an accelerated graphics interface (AGP, Accelerate Graphical Port).
  • the system library can include multiple functional modules to provide local service support. For example: layer fusion system (Surface Flinger), input subsystem (Input Flinger), graphics service (AGP Sevice), display driver interface, scheduling interface, etc.
  • layer fusion system Silicon Flinger
  • input subsystem Input Flinger
  • graphics service AGP Sevice
  • display driver interface scheduling interface, etc.
  • the input subsystem is used to detect the user's input, such as the user's click, slide and other operations. For example, the input subsystem will issue down events, move events, and up events according to the user's operation on the touch screen.
  • the down event can be understood as starting to touch the screen
  • the move event indicates that the touch screen does not leave the hand
  • the up event indicates that the touch screen leaves the hand.
  • the layer fusion system is used to manage the display subsystem and provides the fusion of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
  • the layer fusion system can receive the layer data that needs to be displayed sent from each application program, and the layer fusion system can send the time information when the application program sends the layer data that needs to be displayed to the graphics service.
  • the graphics service determines the current scene based on the received information and provides corresponding graphics display strategy services.
  • the graphics service may include an output frame rate detection module, a game logic detection module, a display frame rate detection module, and a dynamic refresh rate adjustment module.
  • the output frame rate detection module is used to detect the output frame rate of the foreground application in real time.
  • the display frame rate detection module is used to detect the display frame rate of the picture currently displayed on the display screen.
  • the game logic detection module is used when the type of the current foreground application issued by the scene recognition module through the display interface service is a game type, and the output frame rate detection module detects that the increase in the output frame rate of the application exceeds a preset threshold To confirm that it is currently a game scene.
  • the dynamic refresh rate adjustment module is used to determine the corresponding current screen refresh rate according to the information transmitted by the game logic detection module, the display frame rate detection module or the input subsystem according to the refresh rate switching method in the foregoing embodiment.
  • the graphics service receives the data issued by the display service interface, it indicates that the current foreground is a game application, and the output frame rate detection module in the graphics service detects that the output frame rate of the application has increased from 60FPS to 90FPS, which exceeds the expected value.
  • Set a threshold of 20FPS and the game logic detection module determines that the current game scene is.
  • the dynamic refresh rate adjustment module adjusts the current screen refresh rate to the highest screen refresh rate of 120Hz
  • the display frame rate detection module detects that the current display frame rate is 86FPS
  • the dynamic refresh rate adjustment module determines that the current display frame rate does not match the current screen refresh rate, adjust The current screen refresh rate is 90Hz, the next one among multiple selectable screen refresh rates, as the current screen refresh rate.
  • the display frame rate detection module detects that the current display frame rate is 87FPS, and the dynamic refresh rate adjustment module determines that the current display frame rate matches the current screen refresh rate, and maintains the current screen refresh rate of 90 Hz.
  • the dynamic refresh rate adjustment module in the graphics service determines that a touch operation has been detected and raises the current screen resolution to the highest resolution Rate.
  • the input subsystem detects that the user is off the screen and sends an up event to the graphics service.
  • the dynamic refresh rate adjustment module receives the up event, it determines that the touch operation is left and starts a countdown timer with a preset duration of 5 seconds.
  • the dynamic refresh rate adjustment module will confirm that the screen refresh is stagnant and adjust the current screen refresh rate The default refresh rate set for users stored in the database.
  • the scheduling interface can deliver the current refresh rate determined by the graphics service to the scheduling module of the kernel layer.
  • the display driver interface can deliver the current refresh rate determined by the graphics service to the display driver at the kernel layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, sensor driver, and scheduling module.
  • the scheduling module After the scheduling module receives the current screen refresh rate issued by the scheduling interface of the system library, it will adjust the corresponding scheduling strategy according to the current screen refresh rate, and schedule the CPU, GPU and other hardware accordingly.
  • the display driver After the display driver receives the current screen refresh rate sent by the display driver interface, it will drive the display to refresh the display according to the current screen refresh rate.
  • the term “when” can be interpreted as meaning “if" or “after” or “in response to determining" or “in response to detecting".
  • the phrase “when determining" or “if detected (statement or event)” can be interpreted as meaning “if determined" or “in response to determining" or “when detected (Condition or event stated)” or “in response to detection of (condition or event stated)”.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Studio Circuits (AREA)

Abstract

提供了刷新率切换方法和电子设备。在该方法中,电子设备通过确定当前显示画面是高帧率场景还是标准帧率场景,动态切换相应的屏幕刷新率。在高帧率场景下,使用较高的屏幕刷新率,支持高显示帧率,从而使用户得到高显示帧率的体验,显示画面流畅无拖影。在标准帧率场景下,使用默认的较低的屏幕刷新率,节省整机功耗。

Description

刷新率切换方法和电子设备
本申请要求于2020年3月6日提交中国专利局、申请号为202010153662.8、申请名称为“刷新率切换方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端及显示技术领域,尤其涉及刷新率切换方法和电子设备。
背景技术
随着显示器技术的提升,越来越多的厂商推出了可以支持更高屏幕刷新率的电子设备。更高的屏幕刷新率可以支持更高的显示帧率,而更高的显示帧率能使得动态画面显示更流畅。例如显示帧率从60帧每秒(Frame per second,FPS)提升到90FPS,即可以明显减弱人眼的动态模糊,带来更流畅的体验。
越来越多的厂商将屏幕刷新率固定在电子设备能支持的最高屏幕刷新率上,从而使得电子设备能保持应用程序的最高显示帧率,提升画面的流畅度。
然而显示帧率的提升会使得图形渲染系统的渲染绘制功耗成倍数的上升,维持较高的屏幕刷新率也会带来额外的功耗增加,使得整机功耗大量增加。
发明内容
本申请提供了刷新率切换方法和电子设备,用于根据显示画面所属的场景,动态切换屏幕刷新率,既能得到高显示帧率的体验,又能降低功耗。
第一方面,本申请提供了一种刷新率切换方法,该方法包括:电子设备使用第一刷新率刷新显示屏,该第一刷新率不是该电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;当该电子设备确定显示画面为游戏场景时,该电子设备按如下步骤从该多个可选屏幕刷新率中确定一个屏幕刷新率作为第二刷新率,使用该第二刷新率刷新显示屏:该电子设备设置该第二刷新率为该最高屏幕刷新率;当确定该第二刷新率不是该第一刷新率时,该电子设备确定当前显示帧率与该第二刷新率是否匹配,该当前显示帧率为使用该第二刷新率刷新显示屏后检测到的显示画面的显示帧率;当确定不匹配时,该电子设备按照屏幕刷新率从高到低的顺序,更新该第二刷新率为该多个可选屏幕刷新率中的下一个屏幕刷新率;当确定匹配,或确定该第二刷新率是该第一刷新率时,该电子设备维持屏幕刷新率为该第二刷新率。
可以理解的是,电子设备设置第二刷新率为某个刷新率,或更新第二刷新率后,会使用该第二刷新率刷新显示屏,该当前显示帧率即为在设置或更新第二刷新率后检测到的显示画面的显示帧率。
实施第一方面提供的方法,在使用常用界面或应用时,电子设备采用不是最高屏幕刷新率的第一刷新率刷新显示屏,由于采用的屏幕刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,节省了功耗。在检测到游戏场景后,电子设 备先设置当前屏幕刷新率为最高屏幕刷新率,同时检测当前显示帧率是否与当前屏幕刷新率匹配。如果匹配,就维持在当前的屏幕刷新率。如果不匹配,就按照屏幕刷新率从高到低的顺序,更新为下一个屏幕刷新率再检测。直到检测到的当前显示帧率与第二刷新率匹配,或者降低屏幕刷新率到用户常用的第一刷新率。最终有三种可能性:可能性1:如果最终确定的匹配的屏幕刷新率为最高屏幕刷新率,则能提供最好的高显示帧率的体验。可能性2:如果最终确定的匹配的屏幕刷新率不是最高屏幕刷新率,也不是第一刷新率,则表示该游戏场景的输出帧率还达不到与最高屏幕刷新率匹配的程度。使用最终确定的第二刷新率即能达到该游戏场景支持的最好的显示帧率,从而提供了最好的高显示帧率体验。而与此同时,由于使用的第二刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,也节省了功耗。可能性3:如果最终确定的屏幕刷新率为第一刷新率,则表示该游戏场景的输出帧率最多能达到与该第一刷新率匹配的程度。使用该第一刷新率即可达到该游戏场景能支持的最高的显示帧率,从而提供较好的显示帧率体验。与此同时,由于使用的第一刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,也节省了功耗。
可选的,电子设备确定当前显示帧率与该第二刷新率是否匹配的具体方式有很多:
结合第一方面,在一些实施例中,该多个可选屏幕刷新率中的每个屏幕刷新率对应一个帧率范围;该电子设备确定当前显示帧率与该第二刷新率是否匹配,具体包括:该电子设备确定该当前显示帧率是否属于该第二刷新率对应的帧率范围;当确定属于该第二刷新率对应的帧率范围时,该电子设备确定该当前显示帧率与该第二刷新率匹配;当确定不属于该第二刷新率对应的帧率范围时,该电子设备确定该当前显示帧率与该第二刷新率不匹配。
具体的,一个帧率范围包括从该帧率范围的最小帧率值到最大帧率值之间的所有帧率。若一个显示帧率的值大于或等于该最小帧率值,且小于或等于该最大帧率值,则可以确定该显示帧率属于该帧率范围。若一个显示帧率的值小于该最小帧率值,或大于该最大帧率值,则可以确定该显示帧率不属于该帧率范围。
示例性的,若一个屏幕刷新率90Hz对应的帧率范围为80FPS-90FPS,若当前显示帧率为80FPS,则可以确定该当前显示帧率属于该帧率范围,若当前显示帧率为85FPS,也可以确定该当前显示帧率属于该帧率范围,若当前显示帧率为90FPS,同样可以确定该当前显示帧率属于该帧率范围。但若当前显示帧率为75FPS,则可以确定该当前显示帧率不属于该帧率范围。可以理解的是,由于当前显示帧率最高只能达到当前使用的屏幕刷新率的程度,因此,不存在因为当前显示帧率超过90FPS而导致该当前显示帧率不属于该帧率范围的情况。
本申请实施例中,每个屏幕刷新率对应一个帧率范围,电子设备仅需确定当前显示帧率是否属于该帧率范围即可确定当前显示帧率与该第二刷新率是否匹配。不需要多余的步骤,可操作性强。
结合第一方面,在一些实施例中,该电子设备确定当前显示帧率与该第二刷新率是否匹配,具体包括:该电子设备确定第二刷新率的值与当前显示帧率的值的差值是否小于预设差值;当确定小于该预设差值时,该电子设备确定该当前显示帧率与该第二刷新率匹配; 当确定不小于该预设差值时,该电子设备确定该当前显示帧率与该第二刷新率不匹配。
本申请实施例中,通过确定第二刷新率的值与当前显示帧率的值的差值是否小于预设差值,来确定当前显示帧率与第二刷新率是否匹配。实时计算,不需要预存过多的数据,节省了占用的存储空间。
结合第一方面,在一些实施例中,该方法还包括:该电子设备确定当前运行在前台的应用程序的类型是否为游戏类;该电子设备确定该应用程序的输出帧率的提升是否超出预设阈值;当确定当前运行在前台的应用程序的类型为游戏类且该应用程序的输出帧率的提升超出预设阈值时,该电子设备确定显示画面为游戏场景。
本申请实施例中,当确定应用程序的类型为游戏类时,电子设备并不直接确定显示画面为游戏场景。而是在确定应用程序为游戏类基础上,该应用程序的输出帧率的提升超出预设阈值后,才确定显示画面为游戏场景。使得对高帧率场景的识别更精确,节省功耗的效果更好。
可选的,根据实际情况的不同,该多个可选屏幕刷新率可以包含有不同数目的屏幕分辨率:
结合第一方面,在一些实施例中,该多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和该最高屏幕刷新率;该第一刷新率为该最低屏幕刷新率。
结合第一方面,在一些实施例中,该多个可选屏幕刷新率包括两个以上的屏幕刷新率;该第一刷新率为该多个可选屏幕刷新率中的最低屏幕刷新率;或,该第一刷新率为该多个可选屏幕刷新率中除该最高屏幕刷新率和该最低屏幕刷新率之外的一个屏幕刷新率。
第二方面,本申请提供了一种刷新率切换方法,该方法包括:电子设备使用第三刷新率刷新显示屏,该第三刷新率不是该电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;当检测到用户输入的触控操作时,该电子设备使用该最高屏幕刷新率刷新显示屏;在检测到该触控操作离开后,当检测到画面停滞刷新或超出预设时长未检测到触控操作时,该电子设备使用该第三刷新率刷新显示屏。
本申请实施例中,电子设备在画面停滞刷新或未检测到触控操作的情况下,以不是最高屏幕刷新率的第三刷新率刷新显示屏。由于采用的屏幕刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,节省了功耗。当检测到触控操作时,该电子设备调整屏幕刷新率为最高屏幕刷新率,在这样的高帧率场景下为用户提供良好的高帧率体验。直到触控操作离开并检测到画面停滞刷新后,或触控操作离开并在预设时长内未检测到触控操作后,再调整屏幕刷新率为第三刷新率。继续在这样的标准帧率场景下使用出厂设置或用户设置的常用的第三刷新率以节省功耗。这样,在高帧率场景下为用户提供了高显示帧率的体验,在标准帧率场景下又不浪费功耗,降低了整机的功耗。
结合第二方面,在一些实施例中,该方法还包括:当该电子设备确定前台应用程序在停滞检测时长内均未发送需显示的图层数据时,该电子设备确定检测到画面停滞刷新。
本申请实施例中,通过对是否接收到应用程序发送的需显示的图层数据来确定是否检测到画面停止刷新。从画面的数据来源进行检测,使得检测结果更加准确。
可选的,根据实际情况的不同,该多个可选屏幕刷新率可以包含有不同数目的屏幕分 辨率:
结合第二方面,在一些实施例中,该多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和该最高屏幕刷新率;该第三刷新率为该最低屏幕刷新率。
结合第二方面,在一些实施例中,该多个可选屏幕刷新率包括两个以上的屏幕刷新率;该第三刷新率为该多个可选屏幕刷新率中的最低屏幕刷新率;或,该第三刷新率为该多个可选屏幕刷新率中除该最高屏幕刷新率和该最低屏幕刷新率之外的一个屏幕刷新率。
第三方面,本申请提供了一种电子设备,该电子设备包括:显示屏,一个或多个处理器,存储器,多个应用程序,以及一个或多个计算机程序;其中,该一个或多个计算机程序被存储在该存储器中,该一个或多个计算机程序包括指令;当该指令被该电子设备执行时,使得该电子设备执行以下步骤:使用第一刷新率刷新该显示屏,该第一刷新率不是该电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;当确定显示画面为游戏场景时,按如下步骤从该多个可选屏幕刷新率中确定一个屏幕刷新率作为第二刷新率,使用该第二刷新率刷新该显示屏:设置该第二刷新率为该最高屏幕刷新率;当确定该第二刷新率不是该第一刷新率时,确定当前显示帧率与该第二刷新率是否匹配,该当前显示帧率为使用该第二刷新率刷新该显示屏后检测到的显示画面的显示帧率;当确定不匹配时,按照屏幕刷新率从高到低的顺序,更新该第二刷新率为该多个可选屏幕刷新率中的下一个屏幕刷新率;当确定匹配,或确定该第二刷新率是该第一刷新率时,维持屏幕刷新率为该第二刷新率。
可选的,电子设备确定当前显示帧率与该第二刷新率是否匹配的具体方式有很多:
结合第三方面,在一些实施例中,该多个可选屏幕刷新率中的每个屏幕刷新率对应一个帧率范围;当该指令被该电子设备执行时,使得该电子设备具体执行以下步骤:确定该当前显示帧率是否属于该第二刷新率对应的帧率范围;当确定属于该第二刷新率对应的帧率范围时,确定该当前显示帧率与该第二刷新率匹配;当确定不属于该第二刷新率对应的帧率范围时,确定该当前显示帧率与该第二刷新率不匹配。
结合第三方面,在一些实施例中,当该指令被该电子设备执行时,使得该电子设备具体执行以下步骤:确定第二刷新率的值与当前显示帧率的值的差值是否小于预设差值;当确定小于该预设差值时,确定该当前显示帧率与该第二刷新率匹配;当确定不小于该预设差值时,确定该当前显示帧率与该第二刷新率不匹配。
结合第三方面,在一些实施例中,当该指令被该电子设备执行时,使得该电子设备还执行以下步骤:确定当前运行在前台的应用程序的类型是否为游戏类;确定该应用程序的输出帧率的提升是否超出预设阈值;当确定当前运行在前台的应用程序的类型为游戏类且该应用程序的输出帧率的提升超出预设阈值时,确定显示画面为游戏场景。
可选的,根据实际情况的不同,该多个可选屏幕刷新率可以包含有不同数目的屏幕分辨率:
结合第三方面,在一些实施例中,该多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和该最高屏幕刷新率;该第一刷新率为该最低屏幕刷新率。
结合第三方面,在一些实施例中,该多个可选屏幕刷新率包括两个以上的屏幕刷新率;该第一刷新率为该多个可选屏幕刷新率中的最低屏幕刷新率;或,该第一刷新率为该多个 可选屏幕刷新率中除该最高屏幕刷新率和该最低屏幕刷新率之外的一个屏幕刷新率。
第四方面,本申请提供了一种电子设备,该电子设备包括:显示屏,一个或多个处理器,存储器,多个应用程序,以及一个或多个计算机程序;其中,该一个或多个计算机程序被存储在该存储器中,该一个或多个计算机程序包括指令;当该指令被该电子设备执行时,使得该电子设备执行以下步骤:使用第三刷新率刷新该显示屏,该第三刷新率不是该电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;当检测到用户输入的触控操作时,使用该最高屏幕刷新率刷新该显示屏;在检测到该触控操作离开后,当检测到画面停滞刷新或超出预设时长未检测到触控操作时,使用该第三刷新率刷新该显示屏。
结合第四方面,在一些实施例中,当该指令被该电子设备执行时,使得该电子设备还执行以下步骤:当确定前台应用程序在停滞检测时长内均未发送需显示的图层数据时,确定检测到画面停滞刷新。
结合第四方面,在一些实施例中,该多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和该最高屏幕刷新率;该第三刷新率为该最低屏幕刷新率。
结合第四方面,在一些实施例中,该多个可选屏幕刷新率包括两个以上的屏幕刷新率;该第三刷新率为该多个可选屏幕刷新率中的最低屏幕刷新率;或,该第三刷新率为该多个可选屏幕刷新率中除该最高屏幕刷新率和该最低屏幕刷新率之外的一个屏幕刷新率。
第五方面,本申请实施例提供了一种芯片,该芯片应用于电子设备,该芯片包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第六方面,本申请实施例提供了一种芯片,该芯片应用于电子设备,该芯片包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行如第二方面以及第二方面中任一可能的实现方式描述的方法。
第七方面,本申请实施例提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第八方面,本申请实施例提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第二方面以及第二方面中任一可能的实现方式描述的方法。
第九方面,本申请实施例提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第十方面,本申请实施例提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第二方面以及第二方面中任一可能的实现方式描述的方法。
可以理解地,上述第三方面提供的电子设备、第五方面提供的芯片、第七方面提供的计算机程序产品和第九方面提供的计算机存储介质均用于执行本申请实施例第一方面所提供的方法。上述第四方面提供的电子设备、第六方面提供的芯片、第八方面提供的计算机程序产品和第十方面提供的计算机存储介质均用于执行本申请实施例第二方面所提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
图1是本申请实施例中一个刷新率状态变化示意图;
图2是本申请实施例中刷新率切换方法的一组界面示意图;
图3是本申请实施例中刷新率切换方法的另一组界面示意图;
图4是本申请实施例中刷新率切换方法的另一组界面示意图;
图5是本申请实施例中另一个刷新率状态变化示意图;
图6是本申请实施例中刷新率切换方法的另一组界面示意图;
图7是本申请实施例提供的电子设备的结构示意图;
图8是本申请实施例提供的电子设备的软件结构框架示意图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
由于本申请实施例涉及显示技术的应用,为了便于理解,下面先对本申请实施例涉及的相关术语及概念进行介绍。
(1)屏幕刷新率
屏幕刷新率是指屏幕每秒画面被刷新的次数,其单位是Hz。
屏幕刷新率越高,其能支持的显示帧率越高。例如,如果一个显示屏的刷新率是120Hz,则其既能支持60FPS的显示帧率,又能支持90FPS的显示帧率,其最大能支持120FPS的显示帧率。
但如果屏幕刷新率不够,即使输出帧率较高,最终的显示帧率最多也只能达到屏幕刷新率的值。例如,如果一个显示屏的刷新率为60Hz,即使应用程序的输出帧率是100FPS,最终的显示帧率最多也只能到60FPS。
(2)输出帧率
输出帧率是指界面或应用程序通过显卡输出给显示屏的帧率,其单位是FPS,指每秒显示的帧数。帧是影像动画中最小单位的单幅影像画面,一帧就是一幅禁止的画面,连续的帧就形成了动画。
在电子设备中,大部分界面或应用程序的输出帧率是随系统中屏幕刷新率的变化而相应变化的。例如,当屏幕刷新率设定为60Hz时,这部分界面或应用程序的输出帧率会调整为60FPS;当屏幕刷新率设定为90Hz时,这部分界面或应用程序的输出帧率也会调整为90FPS。
但是,还有部分应用程序的输出帧率是相对独立的,例如游戏应用程序。这些应用程序有自己独立的计时器和输出帧率,其不受系统中设定的屏幕刷新率的控制。例如,这部分应用程序中,其中一个应用程序的输出帧率设定是120FPS。如果屏幕分辨率设定为60Hz,这个应用程序的输出帧率并不会随系统中屏幕分辨率的变化而调整为60FPS,而是会继续保持120FPS的输出帧率。如果屏幕分辨率设定为144Hz,这个应用程序的输出帧率也同样继续保持120FPS。
(3)显示帧率
显示帧率是指界面或应用程序在显示屏上实际显示的帧率,其单位也是FPS。
当输出帧率小于屏幕刷新率时,显示帧率约等于输出帧率。例如输出帧率是30FPS,屏幕刷新率是60Hz。为了保证画面显示的连续性,显示屏上1秒显示的60个画面中会填充重复帧。这样的重复帧在统计显示帧率时并不被计算在内,因此其实际显示的有效画面仍然是30帧,即其显示帧率为30FPS。
当输出帧率等于屏幕刷新率时,显示帧率约等于输出帧率。例如输出帧率是90FPS,屏幕刷新率是90Hz。则刚好应用程序每秒输出90个画面,显示屏每秒刷新显示90个画面,显示帧率为90FPS。
当输出帧率大于屏幕刷新率时,显示帧率约等于屏幕刷新率。例如,输出帧率是120FPS,屏幕刷新率是90Hz。此时应用程序每秒输出120个画面,而显示屏每秒只能刷新90个画面,无法将应用程序每秒输出的120个画面全部显示,最多只能显示90个画面。则电子设备会将应用程序每秒输出的120个画面中的部分画面丢弃或将部分画面进行合并,最终每秒显示90个画面,即显示帧率为90FPS。
此外,之所以显示帧率是约等于输出帧率或屏幕刷新率,而不是等于,是因为在实际应用中,有时候显示画面与屏幕刷新的时机并不能保证完全一致。因此无法让每一个输出的帧画面都能刚好在屏幕刷新时被显示,其也有可能会被丢失,从而使得显示帧率会出现少量的波动。例如,即使输出帧率为90FPS,屏幕刷新率为90Hz,最终的实际显示帧率也可能是在80FPS~90FPS之间持续波动。
(4)高帧率场景
本申请实施例中,高帧率场景指随着显示帧率的提升,画面显示效果和用户体验也会提升的场景。例如有些运动速度较快的画面,如果帧率不够,则可能会产生拖影或延迟等, 影响用户观看的视觉体验。而在更高显示帧率情况下,画面显示效果会更加流畅,更加真实。
(5)标准帧率场景
本申请实施例中,标准帧率场景指显示帧率的提升不会显著影响画面显示效果和用户体验的场景。例如静止画面场景或有些运动速度较慢的画面,显示帧率的高和低,都不会影响最终的显示画面的呈现效果。
(6)多个可选屏幕刷新率
本申请实施例中,电子设备可以支持多个可选屏幕刷新率,该多个可选屏幕刷新率中至少可以包含最低屏幕刷新率和最高屏幕刷新率。
该多个可选屏幕刷新率可以只有两个可选屏幕刷新率,一个为最高屏幕刷新率,一个为最低屏幕刷新率。
示例性的:两个可选屏幕刷新率为:60Hz,90Hz。其中,60Hz即为多个可选屏幕刷新率中的最低屏幕刷新率,90Hz即为多个可选屏幕刷新率中的最高屏幕刷新率。
本申请的一些实施例中,该多个可选屏幕刷新率还可以包括有更多的可选屏幕刷新率:
示例性的,包括3个可选屏幕刷新率:60Hz,90Hz,120Hz。其中60Hz即为多个可选屏幕刷新率中的最低屏幕刷新率,120Hz即为多个可选屏幕刷新率中的最高屏幕刷新率。
示例性的,包括4个可选屏幕刷新率:60Hz,90Hz,120Hz,144Hz。其中,60Hz即为多个可选屏幕刷新率中的最低屏幕刷新率,120Hz即为多个可选屏幕刷新率中的最高屏幕刷新率。
示例性的,包括5个可选屏幕刷新率:45Hz、60Hz,90Hz,120Hz,240Hz。其中,45Hz即为多个可选屏幕刷新率中的最低屏幕刷新率,240Hz即为多个可选屏幕刷新率中的最高屏幕刷新率。
可以理解的是,根据实际需求,多个可选屏幕刷新率还可以包含有更多的屏幕刷新率。其中的可选屏幕刷新率也可以有更多不同的选择,此处不作限定。
(7)游戏场景检测
本申请实施例中,电子设备可以根据三方特征库中存储的信息,确定正在运行的前台应用程序的类型是否为游戏类。同时,电子设备还可以对前台应用程序的输出帧率进行实时监控。当该前台应用程序的输出帧率的提升超出预设阈值时,则电子设备确定进入了游戏场景。
例如,用户启动一个应用程序游戏一,电子设备通过三方特征库中预存的应用程序类型信息,确定当前前台运行的应用程序的类型为游戏类。此时,该游戏应用的输出帧率为45FPS,电子设备还未确定进入游戏场景。当用户在该应用程序游戏一中登录,进入到游戏操作界面时,该应用程序游戏一的输出帧率提升至60FPS。电子设备检测到输出帧率的提升超出预设阈值10FPS,确定当前为游戏场景。
(8)触控检测
示例性的,当电子设备的传感器模块检测到用户输入的触控操作时,例如使用手指或触控笔等与屏幕接触时,会产生一个down事件。通过该down事件,电子设备即可确定检测到了触控操作。
当传感器模块检测到用户的触控点移动时,例如使用手指或触控笔等在屏幕上滑动,手指或触控笔不离屏,就会产生一个move事件。通过该move事件,电子设备即可确定检测到了用户触控点的移动。
当传感器模块检测到触控操作离开时,或者称为离屏时,会产生一个up事件。通过该up事件,电子设备即可确定检测到了触控操作离开。
可以理解的是,在实际应用中,还可以有很多其他的触控检测的方式,本申请实施例对此不作限定。
(9)画面停滞刷新检测
应用程序会将需显示的图层数据发送给电子设备中的图层融合系统进行融合。图层融合系统会将应用程序发送需显示的图层数据的时间信息发送到电子设备中的图形服务。若图形服务一段时间(可以称为停滞检测时长,例如1秒)没有接收到图层融合系统发送的时间信息,则表示该应用程序没有图形需要绘制帧画面。因此,图形服务可以确定当前画面停滞刷新。
现有技术中,通过将电子设备维持在一个高的屏幕刷新率,使得当界面或应用程序的最高输出帧率的值低于或等于该屏幕刷新率的值时,显示屏的显示帧率可以达到该界面或应用程序的最高显示帧率。例如屏幕刷新率固定为90Hz,界面或应用程序的最高输出帧率为30FPS,则显示帧率可以达到30FPS。再如屏幕刷新率固定为90Hz,界面或应用程序的最高输出帧率为90FPS,则显示帧率可以达到90FPS。然而,这样固定的屏幕刷新率使得电子设备需要持续维持较大的功耗。
本申请实施例中,对显示画面所属场景进行判断,例如是高帧率场景,还是标准帧率场景等。在提高显示帧率对画面的显示效果有影响时,才会使用较高的屏幕刷新率支持较高的显示帧率,以提供流畅的体验。在提高显示帧率对画面的显示效果没有影响时,会使用较低的屏幕刷新率,以节省功耗。在需要使用高显示帧率时,提升屏幕刷新率,提供了高显示帧率的体验。在仅需较低的显示帧率时,使用较低的屏幕刷新率,降低了电子设备的整机功耗。
下面对本申请实施例中的刷新率切换方法进行描述:
本申请实施例中,电子设备中具有可切换的多个屏幕刷新率。电子设备在确定显示画面为高帧率场景时,使用第一刷新率;在确定显示画面为标准帧率场景时,使用第二刷新率。该第二刷新率低于该第一刷新率。
其中,该高帧率场景至少可以包括游戏场景或触控场景:
(1)游戏场景
图1为本申请实施例中一个刷新率状态变化示意图:
S101、电子设备使用第一刷新率刷新显示屏,该第一刷新率不是该电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;
电子设备有多个可选屏幕刷新率,电子设备当前使用其中不是最高屏幕刷新率的第一刷新率刷新显示屏。
在一些实施例中,该第一刷新率可以为多个可选屏幕刷新率中的最低屏幕刷新率。例如,多个可选屏幕刷新率为:60Hz、90Hz,该第一刷新率可以为60Hz。再如,多个可选屏幕刷新率为:60Hz、90Hz、120Hz,该第一刷新率可以为60Hz。
在一些实施例中,该第一刷新率也可以不是多个可选屏幕刷新率中的最低屏幕刷新率。例如,多个可选屏幕刷新率为:60Hz、90Hz、120Hz,该第一刷新率可以为90Hz。再如,多个可选屏幕刷新率为:60Hz、90Hz、120Hz、240Hz,该第一刷新率可以为90Hz,也可以为120Hz。
可以理解的是,该第一刷新率可以为电子设备出厂默认的屏幕刷新率,也可以为用户自己从多个可选屏幕刷新率中选择的日常使用屏幕刷新率,此处不作限定。
S102、当电子设备确定显示画面为游戏场景时,该电子设备执行步骤S103至S107,从该多个可选屏幕刷新率中确定一个屏幕刷新率作为第二刷新率,使用该第二刷新率刷新显示屏;
由于游戏场景属于显示帧率越高则显示效果越好的高帧率场景。当用户打开游戏应用后,电子设备确定显示画面为游戏场景时,电子设备开始尝试使用较高的屏幕刷新率,以支持较高的输出帧率,从而达到较高的显示帧率。
由于游戏应用的输出帧率相对于系统的屏幕刷新率的独立性,其输出帧率不跟随系统屏幕刷新率的变化而相应变化。因此,电子设备从多个可选屏幕刷新率中确定一个刷新率作为第二刷新率,使用该第二刷新率刷新显示器后,确定当前显示帧率是否与该第二刷新率匹配。通过分级尝试检测的方式,确定与该游戏应用的输出帧率匹配的最佳屏幕刷新率。这样的方式适应性更广,不会受到游戏应用的限制,其中具体确定该第二刷新率的过程为步骤S103至107。
S103、该电子设备设置该第二刷新率为最高屏幕刷新率;
电子设备先设置第二刷新率为最高屏幕刷新率,使用该最高屏幕刷新率刷新显示屏。
S104、当确定该第二刷新率不是该第一刷新率时,该电子设备确定当前显示帧率与该第二刷新率是否匹配;
该当前显示帧率为使用该第二刷新率刷新显示屏后,电子设备检测到的显示画面的显示帧率。
在S103执行,确定第二刷新率为最高屏幕刷新率,或在S106执行,确定更新第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率,且确定该第二刷新率不是第一刷新率时,则表示电子设备提高了屏幕刷新率为第二刷新率。该第二刷新率可以是多个可选屏幕 刷新率中的最高屏幕刷新率,也可以是多个可选屏幕刷新率中任一个比该第一刷新率高的刷新率。
电子设备在使用第二刷新率刷新显示屏后,先检测显示画面的显示帧率,得到当前显示帧率,然后确定该当前显示帧率与该第二刷新率是否匹配。若不匹配,则执行S105;若匹配,则执行S107。
确定当前显示帧率与该第二刷新率是否匹配的方式有很多:
示例性的,多个可选屏幕刷新率中每个屏幕刷新率都对应有一个匹配的帧率范围。可以确定当前显示帧率是否属于该第二刷新率对应的帧率范围。若属于该第二刷新率对应的帧率范围,则确认匹配;若不属于该第二刷新率对应的帧率范围,则确认不匹配。可以理解的是,一个帧率范围包含这个帧率范围内从最小帧率值到最大帧率值的所有的帧率,确定一个显示帧率是否属于一个帧率范围,可以看这个显示帧率的值是否大于或等于这个帧率范围中的最小帧率值,且小于或等于这个帧率范围中的最大帧率值。若显示帧率的值大于或等于这个帧率范围中的最小帧率值,且小于或等于这个帧率范围中的最大帧率值,则可以确定该显示帧率属于该帧率范围。若显示帧率的值小于这个帧率范围中的最小帧率值,或大于这个帧率范围中的最大帧率值,则可以确定该显示帧率不属于该帧率范围。
例如,若多个可选屏幕刷新率为:60Hz、120Hz、240Hz。60Hz对应的帧率范围是40FPS-60FPS,120Hz对应的帧率范围是100FPS-120FPS,240Hz对应的帧率范围是200FPS-240FPS。若当前第二刷新率为240Hz,使用该第二刷新率240Hz刷新屏幕后,当前显示帧率为210FPS。210FPS属于该第二刷新率240Hz对应的帧率范围200FPS-240FPS,则认为该显示帧率210FPS与第二刷新率240Hz匹配。若当前第二刷新率为240Hz,而检测到的当前显示帧率为110FPS,110FPS不属于该第二刷新率240Hz对应的帧率范围200FPS-240FPS,则认为该显示帧率110FPS与第二刷新率240Hz不匹配。
示例性的,可以确定第二刷新率的值与当前显示帧率的值的差值是否小于预设差值。若小于预设差值,则确认匹配;若不小于预设差值,则确认不匹配。
例如,若多个可选屏幕刷新率为:60Hz、120Hz、240Hz,预测差值为30。若当前第二刷新率为240Hz,而检测到的当前显示帧率为220FPS。第二刷新率的值240与当前显示帧率的值220的差值20小于预设差值30,因此认为该当前显示帧率220FPS与第二刷新率240Hz匹配。若当前第二刷新率为240Hz,而检测到的当前显示帧率为110FPS,第二刷新率的值240与当前显示帧率的值110的差值130不小于预设差值30,因此认为该当前显示帧率110FPS与第二刷新率240Hz不匹配。
再如,若多个可选屏幕刷新率为:60Hz、120Hz、240Hz,预测差值为第二屏幕刷新率的20%。若当前第二刷新率为240Hz,而检测到的当前显示帧率为220FPS,第二刷新率的值240与当前显示帧率的值220的差值20小于预设差值240*20%=48,因此认为该当前显示帧率220FPS与第二刷新率240Hz匹配。若当前第二刷新率为120Hz,而检测到的当前显示帧率为80FPS,第二刷新率的值120与当前显示帧率的值80的差值40不小于预设差值120*20%=24,因此认为该当前显示帧率80FPS与第二刷新率120Hz不匹配。
可以理解的是,还有很多确定当前显示帧率与该第二刷新率是否匹配的方式,此处不作限定。
S105、当确定不匹配时,该电子设备按照屏幕刷新率从高到低的顺序,更新该第二刷新率为该多个可选屏幕刷新率中的下一个屏幕刷新率;
当确定当前显示帧率与该第二刷新率不匹配时,表示作为当前屏幕刷新率的第二刷新率过高,该游戏应用的输出帧率达不到该第二刷新率的程度,可以降低屏幕刷新率以省电。因此,该电子设备可以按照屏幕刷新率从高到低的顺序,更新该第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率。
例如,若多个可选屏幕刷新率为:60Hz、120Hz、240Hz。选择240Hz作为第二刷新率后,检测出的显示帧率为110FPS。确定显示帧率为110FPS与该第二刷新率240Hz不匹配,按照屏幕刷新率从高到低的顺序,该电子设备则可以更新第二刷新率为120Hz。
S106、该电子设备确定该第二刷新率是否为该第一刷新率;
电子设备更新第二刷新率后,确定该第二刷新率是否为该第一刷新率:
若该第二刷新率是该第一刷新率,则表示已经降低到了最低屏幕刷新率或者已经降低到了厂商或用户默认选择的屏幕刷新率。即使当前显示帧率与第二刷新率不匹配,也不能再降低或者不需要再降低屏幕刷新率,因此也不需要再在该第二刷新率下去检测与当前显示帧率是否匹配。可以直接执行S107,维持屏幕刷新率在该第二刷新率下。
若该第二刷新率不是该第一刷新率,则表示还未降到最低屏幕刷新率或还未降低到厂商或用户默认选择的屏幕刷新率。如果当前显示帧率与该第二刷新率不匹配,还可以再降低屏幕刷新率以进一步节省功耗的空间。因此,可以再次执行S104,检测更新后的第二刷新率与当前显示帧率是否匹配。
例如,若多个可选屏幕刷新率为:60Hz、120Hz、240Hz,第一刷新率为120Hz。设置240Hz作为第二刷新率后,检测出的当前显示帧率为110FPS,确定当前显示帧率110FPS与该第二刷新率240Hz不匹配。按照屏幕刷新率从高到低的顺序,该电子设备更新第二刷新率为120Hz。更新后确定第二刷新率120Hz就是第一刷新率120Hz,因此,直接执行S107,维持屏幕刷新率在厂商或用户设置的默认屏幕刷新率120Hz上。
再如,若多个可选屏幕刷新率为:60Hz、120Hz、240Hz,第一刷新率为60Hz。设置240Hz作为第二刷新率后,检测出的当前显示帧率为110FPS,确定当前显示帧率110FPS与该第二刷新率240Hz不匹配。按照屏幕刷新率从高到低的顺序,该电子设备更新第二刷新率为120Hz,更新后确定第二刷新率120Hz不是第一刷新率60Hz。因此,再次执行S104,检测出当前显示帧率为110FPS,与更新后的第二刷新率120Hz匹配。执行S107,维持屏幕刷新率为更新后的第二刷新率120Hz。
可以理解的是,电子设备确定该第二刷新率是否为该第一刷新率可以有不同的确定方式:可以有显性的确定方式。例如直接用第二刷新率与第一刷新率进行比较。也可以有隐形的确定方式。例如更新第二刷新率为该多个可选屏幕刷新率中的下一个屏幕刷新率时,根据默认刷新率标识等方式,即可确定这里更新的下一个屏幕刷新率是否为第一刷新率。而不需要有单独的确定更新后的第二刷新率是否为第一刷新率的动作。因此,在一些实施例中,步骤S106可以不作为动作执行,而仅为一种状态确定,此处不作限定。
S107、当确定匹配或该第二刷新率为该第一刷新率时,维持屏幕刷新率为该第二刷新率。
当确定当前显示帧率与该第二刷新率匹配时,表示该第二刷新率是终端的多个可选屏幕刷新率中与游戏应用在该游戏场景的输出帧率最契合的屏幕刷新率。使用该第二刷新率不仅能满足游戏场景的显示帧率需求,而且还不会浪费功耗。
当确定该第二刷新率为该第一刷新率时,表示更新的第二刷新率已经降低到了最低屏幕刷新率,不能再继续降低刷新率了,因此可以直接维持屏幕刷新率为该第二刷新率。或者表示虽然更新的第二刷新率还没有降低到最低屏幕刷新率,但更新的第二刷新率已经降低到了厂商或用户设置的默认刷新率了,也是用户常用的屏幕刷新率。不管当前显示帧率是否能匹配该第二刷新率,也不适合再降低屏幕刷新率以违反用户习惯,因此,也可以直接维持屏幕刷新率为该第二刷新率。
可以理解的是,当电子设备确定离开了该游戏场景时,电子设备可以恢复使用第一刷新率刷新显示屏。
现有技术中,为了支持高帧率显示效果,电子设备一般设置为固定使用最高屏幕刷新率刷新显示屏。而本申请实施例中,在使用常用界面或应用时,电子设备采用不是最高屏幕刷新率的第一刷新率刷新显示屏,由于采用的屏幕刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,节省了功耗。
进一步的,在检测到游戏场景后,电子设备先设置当前屏幕刷新率为最高屏幕刷新率,同时检测当前显示帧率是否与当前屏幕刷新率匹配。如果匹配,就维持在当前的屏幕刷新率。如果不匹配,就按照屏幕刷新率从高到低的顺序,更新为下一个屏幕刷新率再检测。直到检测到的当前显示帧率与第二刷新率匹配或者降低屏幕刷新率到用户常用的第一刷新率。最终有三种可能性:
可能性1:如果最终确定的匹配的屏幕刷新率为最高屏幕刷新率,则能提供最好的高显示帧率的体验。
可能性2:如果最终确定的匹配的屏幕刷新率不是最高屏幕刷新率,也不是第一刷新率,则表示该游戏场景的输出帧率还达不到与最高屏幕刷新率匹配的程度。使用最终确定的第二刷新率即能达到该游戏场景支持的最好的显示帧率,从而提供了最好的高显示帧率体验。而与此同时,由于使用的第二刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,也节省了功耗。
可能性3:如果最终确定的屏幕刷新率为第一刷新率,则表示该游戏场景的输出帧率最多能达到与该第一刷新率匹配的程度。使用该第一刷新率即可达到该游戏场景能支持的最高的显示帧率,从而提供较好的显示帧率体验。与此同时,由于使用的第一刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,也节省了功耗。
结合图1所示的刷新率切换方法,下面以可选屏幕刷新率的数目不同以及第一刷新率的不同情况为例,分别进行示例性说明:
情况1:多个可选屏幕刷新率有两个,第一刷新率为最低屏幕刷新率。
示例性的,如图2所示,为本申请实施例中刷新率切换方法的一组界面示意图。
图2中的(a)为电子设备主界面示意图,其中显示有多个应用程序,例如邮箱应用、云共享应用,备忘录应用,设置应用,图库应用,游戏应用201,相机应用等。
电子设备有两个可选屏幕刷新率:60Hz,120Hz。60Hz对应的帧率范围为40-60FPS,120Hz对应的帧率范围为100-120FPS。电子设备检测到用户的操作,打开了屏幕刷新率显示功能和显示帧率显示功能,均显示在屏幕右上角。如图2中的(a)中屏幕刷新率显示区域202所示,显示该主界面时,电子设备的屏幕刷新率为60Hz,即电子设备使用第一刷新率60Hz刷新显示屏。如图2中的(a)中显示帧率显示区域203所示,显示该主界面时,由于主界面的显示帧率一般是跟随屏幕刷新率的,此时电子设备的显示帧率为60FPS。
可以理解的是,电子设备并不是因为用户操作打开了屏幕刷新显示功能和显示帧率功能,才会去判断屏幕刷新率与当前显示帧率是否匹配。即使用户不打开屏幕刷新显示功能和显示帧率显示功能,电子设备也可以执行图1所示的刷新率切换方法。可以内部检测当前显示帧率与确定屏幕刷新率,而并不一定需要把它们显示出来。此处仅仅只是为便于理解,示例性的显示。后续示例中,也会出现打开屏幕刷新率显示功能和显示帧率显示功能的情况,同样也仅仅只是示例性的显示,因此,不再一一赘述。
图2中的(b)为用户打开游戏应用201后的游戏界面。如图2中的(b)所示,用户打开游戏应用201,电子设备确定当前为游戏场景,设置当前屏幕刷新率为最高屏幕刷新率120Hz,即设置第二刷新率为最高屏幕刷新率。如图2中的(b)中屏幕刷新率显示区域204所示,此时的屏幕刷新率提升到了120Hz,如图2中的(b)中显示帧率显示区域205所示,电子设备检测到的当前显示帧率为110FPS。电子设备确定当前显示帧率110FPS属于第二刷新率120Hz对应的帧率范围100-120FPS,即该当前显示帧率与此时的第二刷新率匹配。因此,电子设备维持屏幕刷新率在该第二刷新率120Hz。
当电子设备离开该游戏应用,回到显示图2中的(a)所示的主界面时,电子设备继续使用第一刷新率60Hz刷新显示屏,检测到的当前显示帧率也跟随回到60FPS。
示例性的,如图3所示,为本申请实施例中刷新率切换方法的另一组界面示意图。电子设备有两个可选屏幕刷新率:60Hz,120Hz。60Hz对应的帧率范围为40-60FPS,120Hz对应的帧率范围为100-120FPS。电子设备检测到用户的操作,打开了屏幕刷新率显示功能和显示帧率显示功能,均显示在屏幕右上角。如图3中的(a)中屏幕刷新率显示区域302所示,显示该主界面时,电子设备的屏幕刷新率为60Hz,即电子设备使用第一刷新率60Hz刷新显示屏。如图3中的(a)中显示帧率显示区域303所示,显示该主界面时,由于主界面的显示帧率一般是跟随屏幕刷新率的,此时电子设备的显示帧率为60FPS。
图2中的(b)为用户打开游戏应用301后的游戏界面,如图3中的(b)所示,用户打开游戏应用201后,电子设备确定当前为游戏场景,设置当前屏幕刷新率为最高屏幕刷新率120Hz,即设置第二刷新率为最高屏幕刷新率。如图3中的(b)中屏幕刷新率显示区域304所示,此时的屏幕刷新率提升到了120Hz,如图3中的(b)中显示帧率显示区域305所示,电子设备检测到的当前显示帧率为50FPS。电子设备确定当前显示帧率50FPS不属于第二刷新率120Hz对应的帧率范围100-120FPS,根据图1所示方法中的步骤S105,更 新第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率60Hz。由于60Hz就是第一刷新率,根据图1所示方法中的步骤S107,该电子设备直接维持屏幕刷新率在该第二刷新率60Hz。如图3中的(c)中屏幕刷新率显示区域306所示,此时的屏幕刷新率为60Hz,如图3中的(c)中显示帧率显示区域307所示,电子设备的当前显示帧率还是为50FPS。
当电子设备离开该游戏应用,回到显示图3中的(a)所示的主界面时,电子设备继续使用第一刷新率60Hz刷新显示屏,检测到的当前显示帧率也跟随回到60FPS。
情况2:多个可选屏幕刷新率大于两个,第一刷新率为最低屏幕刷新率。
示例性的,如图4所示,为本申请实施例中刷新率切换方法的另一组界面示意图。
电子设备有4个可选屏幕刷新率:60Hz,90Hz,120Hz,240Hz。60Hz对应的帧率范围为40-60FPS,90Hz对应的帧率范围是75-90FPS,120Hz对应的帧率范围为100-120FPS,240Hz对应的帧率范围是200-240FPS。电子设备检测到用户的操作,打开了屏幕刷新率显示功能和显示帧率显示功能,均显示在屏幕右上角。如图4中的(a)中屏幕刷新率显示区域402所示,显示该主界面时,电子设备的屏幕刷新率为60Hz,即电子设备使用第一刷新率60Hz刷新显示屏。如图4中的(a)中显示帧率显示区域403所示,显示该主界面时,由于主界面的显示帧率一般是跟随屏幕刷新率的,此时电子设备的显示帧率为60FPS。
图4中的(b)为用户打开游戏应用401后的游戏界面,如图4中的(b)所示,用户打开游戏应用401后,电子设备确定当前为游戏场景,设置当前屏幕刷新率为最高屏幕刷新率240Hz,即确定第二刷新率为最高屏幕刷新率。如图4中的(b)中屏幕刷新率显示区域404所示,此时的屏幕刷新率提升到了240Hz,如图4中的(b)中显示帧率显示区域405所示,电子设备检测到的当前显示帧率为70FPS。电子设备确定显示帧率70FPS不属于第二刷新率240Hz对应的帧率范围200-240FPS,确定不匹配。根据图1所示实施例的刷新率切换方法中的步骤S105,更新第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率120Hz。该第二刷新率120Hz不是第一刷新率60Hz,再次根据图1所示实施例的刷新率切换方法中的步骤S104,确定当前显示帧率是否与第二刷新率匹配。
如图4中的(c)中屏幕刷新率显示区域406所示,此时的屏幕刷新率更新到了120Hz。如图4中的(c)中显示帧率显示区域405所示,电子设备检测到的当前显示帧率为75FPS,电子设备确定显示帧率75FPS不属于第二刷新率120Hz对应的帧率范围100-120FPS,确定不匹配。根据图1所示实施例的刷新率切换方法中的步骤S105,更新第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率90Hz。该第二刷新率90Hz不是第一刷新率60Hz,再次根据图1所示实施例的刷新率切换方法中的步骤S104,确定当前显示帧率是否与第二刷新率匹配。
如图4中的(d)中屏幕刷新率显示区域408所示,此时的屏幕刷新率更新到了90Hz,如图4中的(d)中显示帧率显示区域409所示,电子设备检测到的当前显示帧率为80FPS。电子设备确定当前显示帧率80FPS属于第二刷新率90Hz对应的帧率范围75-90FPS,确定匹配。根据图1所示实施例的刷新率切换方法中的步骤S107,电子设备维持屏幕刷新率在该第二刷新率90Hz。
当电子设备离开该游戏应用,回到显示图4中的(a)所示的主界面时,电子设备继续 使用第一刷新率60Hz刷新显示屏,显示帧率也跟随回到60FPS。
情况3:多个可选屏幕刷新率大于两个,第一刷新率不是最低屏幕刷新率。
示例性的,电子设备有4个可选屏幕刷新率:60Hz,90Hz,120Hz,240Hz。60Hz对应的帧率范围为40-60FPS,90Hz对应的帧率范围是75-90FPS,120Hz对应的帧率范围为100-120FPS,240Hz对应的帧率范围是200-240FPS。电子设备界面或应用程序中一般使用的是用户选择的默认屏幕刷新率90Hz,电子设备使用该90Hz作为第一刷新率刷新显示屏。
当用户打开游戏应用,检测到显示画面为游戏场景时,该电子设备提高屏幕刷新率为最高的240Hz作为第二刷新率,刷新显示屏。并根据图1所示实施例的刷新率切换方法中的步骤S103,检测到当前显示帧率为80FPS,确定检测到的当前显示帧率不属于第二刷新率240Hz对应的帧率范围200-240FPS。当前显示帧率与第二刷新率不匹配,根据图1所示实施例的刷新率切换方法中的步骤S105,更新第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率120Hz。
该第二刷新率120Hz不是第一刷新率90Hz,再次根据图1所示实施例的刷新率切换方法中的步骤S104,确定当前显示帧率为82Hz,不属于第二刷新率120Hz对应的帧率范围100-120FPS,当前显示帧率与第二刷新率不匹配。根据图1所示实施例的刷新率切换方法中的步骤S105,更新第二刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率90Hz。根据用户选择的默认刷新率的标识,电子设备能确定虽然该第二刷新率90Hz不是最低屏幕刷新率,但其为用户默认使用的第一刷新率。根据图1所示实施例的刷新率切换方法中的步骤S107,电子设备维持屏幕刷新率在该第二刷新率90Hz。
当电子设备离开该游戏应用,回到主界面或其他应用时,电子设备继续使用第一刷新率90Hz刷新显示屏,显示帧率也跟随回到90FPS。
(2)触控场景
图5为本申请实施例中另一个刷新率状态变化示意图:
S501、电子设备使用第三刷新率刷新显示屏,该第三刷新率不是该电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;
在画面停滞刷新或未检测到触控的情况下,电子设备使用第三刷新率刷新显示屏。电子设备有多个可选屏幕刷新率,电子设备当前使用其中不是最高屏幕刷新率的第三刷新率刷新显示屏。
在一些实施例中,该第三刷新率可以为多个可选屏幕刷新率中的最低屏幕刷新率。例如,多个可选屏幕刷新率为:60Hz、90Hz,该第一刷新率可以为60Hz。再如,多个可选屏幕刷新率为:60Hz、90Hz、120Hz,该第三刷新率可以为60Hz。
在一些实施例中,该第三刷新率也可以不是多个可选屏幕刷新率中的最低屏幕刷新率。例如,多个可选屏幕刷新率为:60Hz、90Hz、120Hz,该第三刷新率可以为90Hz。再如,多个可选屏幕刷新率为:60Hz、90Hz、120Hz、240Hz,该第三刷新率可以为90Hz,也可以为120Hz。
可以理解的是,该第三刷新率可以为电子设备出厂默认的屏幕刷新率,也可以为用户 自己从多个可选屏幕刷新率中选择的日常使用屏幕刷新率,此处不作限定。
S502、当检测到用户输入的触控操作时,该电子设备使用该最高屏幕刷新率刷新显示屏;
当检测到用户输入的触控操作时,由于触控操作一般会带来显示画面的刷新和动态变化,例如滑动操作可能会使画面滑动,点击操作可能会打开新的界面等。为了使这些动态变化的画面更加流畅,电子设备可以使用多个可选屏幕刷新率中的最高屏幕刷新率刷新显示屏。由于一般的界面或应用程序的输出帧率会随着系统使用的屏幕刷新率而相应调整,因此,画面的显示帧率也会随着使用最高屏幕刷新率而提升为相应的较高的显示帧率,从而在画面动态变化过程中更加的流畅。
S503、在该电子设备检测到触控操作离开后,当检测到画面停滞刷新或超出预设时长未检测到触控操作时,该电子设备使用该第三刷新率刷新显示屏。
在电子设备检测到触控操作离开后,并不立即恢复到低刷新率,而是会继续使用该最高屏幕刷新率刷新显示屏。因为触控操作虽然离开了,但是触控操作带来的影响并不一定已经结束了,画面可能还在动态变化。例如滑动操作后,虽然手指离开,但是画面还会继续滑动一会;点击操作后,虽然手指离开,新打开的界面还可能会继续加载等等。
当检测到画面停滞刷新时,表明画面不需要再继续刷新了,触控操作带来的影响已经结束,该电子设备会使用较低的第三刷新率刷新显示屏,以节省功耗。
在有些情况下,电子设备可能检测到画面一直没有停滞刷新。这种情况很有可能是电子设备在播放视频,但是播放视频并不需要使用最高屏幕刷新率和最高显示帧率,使用常用屏幕刷新率和显示帧率即可达到较好的效果。因此,电子设备中还设置有预设时长,当触控离开后超出预设时长未检测到新的触控操作时,该电子设备也会调整到使用第三刷新率刷新显示屏,以节省功耗。
该预设时长的确定方式有很多,例如,可以直接由用户设定,也可以由厂商经过实验设置一个经验数据,此处不作限定。
示例性的,工作人员可以通过在实验室模拟大量的触控场景。例如10000次滑动操作、10000次点击操作,然后获取该操作造成的画面动态刷新的持续时长。将获取到的数据绘制成触控曲线,再通过人因分析得到一个触控操作造成画面动态刷新可能持续的最大时长作为实验值,最后根据该实验值设定该预设时长。例如,若根据该方法得到实验值为4.75秒,即通过对获取到的数据绘制的触控曲线的分析,绝大部分触控操作造成的画面动态刷新在4.75秒内都会结束。那么,在电子设备出厂设置时,可以设定该预设时长为5秒。
本申请实施例中,电子设备在画面停滞刷新或未检测到触控操作的情况下,以不是最高屏幕刷新率的第三刷新率刷新显示屏。由于采用的屏幕刷新率比最高屏幕刷新率低,因此,相对于一直固定采用最高屏幕刷新率刷新显示屏,节省了功耗。当检测到触控操作时,该电子设备调整屏幕刷新率为最高屏幕刷新率,在这样的高帧率场景下为用户提供良好的高帧率体验。直到触控操作离开并检测到画面停滞刷新后,或触控操作离开并在预设时长内未检测到触控操作后,再调整屏幕刷新率为第三刷新率。继续在这样的标准帧率场景下 使用出厂设置或用户设置的常用的第三刷新率以节省功耗。这样,在高帧率场景下为用户提供了高显示帧率的体验,在标准帧率场景下又不浪费功耗,降低了整机的功耗。
结合图5所示实施例中的切换刷新率的方法,下面以检测到画面停滞刷新的时刻和超出预设时长未检测到触控操作的时刻的不同种情况为例,分别进行示例性说明:
情况1:触控操作离开后,在该预设时长内检测到画面停滞刷新。
示例性的,如图6所示,为本申请实施例中刷新率切换方法另一组界面示意图。
图6中的(a)为电子设备显示一篇名为唐诗三百首的文章的界面示意图。电子设备打开了屏幕刷新率显示功能,显示在屏幕右上角。该电子设备有3个可选屏幕刷新率:60Hz,120Hz,240Hz。用户设置60Hz为常用屏幕刷新率,即设定60Hz为图5所示实施例中的切换刷新率的方法的步骤S501中的第三刷新率。出厂设定图5所示实施例中的切换刷新率的方法的步骤S503中的预设时长为5秒。
如图6中的(a)中屏幕刷新率显示区域601中所示,此时该电子设备的屏幕刷新率为60Hz。如图5所示的实施例中刷新率切换方法中步骤S501所述,即该电子设备使用60Hz作为第三刷新率刷新显示屏。
如图6中的(b)所示,用户触控屏幕并向上滑动。根据图5所示的实施例中刷新率切换方法中步骤S501,该电子设备检测到触控操作后,调整到最高屏幕刷新率240Hz刷新显示屏。如图6中的(b)中屏幕刷新率显示区域602中所示,此时该电子设备的屏幕刷新率调整为最高屏幕刷新率240Hz。
在触控操作离开后1秒时,该滑动触控操作对显示画面的影响还未消失。如图6中的(c)所示,显示画面还继续向上滑动。如图6中的(b)中屏幕刷新率显示区域603中所示,此时该电子设备的屏幕刷新率还保持为最高屏幕刷新率240Hz。
在触控操作离开后3秒时,显示画面的滑动停止。根据图5所示的实施例中刷新率切换方法中步骤S503,该电子设备检测到画面停滞刷新,使用第三刷新率60Hz刷新显示屏。如图6中的(d)所示,此时该电子设备的屏幕刷新率调整为第三刷新率60Hz。
情况2:触控操作离开后,在该预设时长内未检测到画面停滞刷新,也未检测到触控操作。
示例性的,该电子设备有4个可选屏幕刷新率:60Hz,90Hz,120Hz,240Hz。出厂设置90Hz为常用屏幕刷新率,即设定90Hz为图5所示实施例中的切换刷新率的方法的步骤S501中的第三刷新率。出厂设定图5所示实施例中的切换刷新率的方法的步骤S503中的预设时长为5秒。
在一个应用程序的显示界面,显示有一个视频播放控件和相应的文字介绍,此时电子设备使用该第三刷新率90Hz刷新显示屏。
用户点击该视频播放控件,根据图5所示的实施例中刷新率切换方法中步骤S501,该电子设备检测到触控操作后,调整到最高屏幕刷新率240Hz刷新显示屏。
用户手指已离开屏幕,电子设备播放视频,由于视频为动态画面显示,该电子设备一直未检测到画面停滞刷新。
在用户手指离开屏幕5秒后,根据图5所示的实施例中刷新率切换方法中步骤S503,该电子设备确定触控操作已离开屏幕预设时长5秒,且在这5秒内未检测到画面停滞刷新和用户新的触控操作,该电子设备调整使用第三刷新率90Hz刷新显示屏。
下面介绍本申请实施例提供的示例性电子设备100。
图7是本申请实施例提供的电子设备100的结构示意图。
下面以电子设备100为例对实施例进行具体说明。应该理解的是,电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal  asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
SIM接口可以被用于与SIM卡接口195通信,实现传送数据到SIM卡或读取SIM卡中数据的功能。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并 不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications, GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。该显示屏194支持上述实施例中的多个可选屏幕刷新率。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例 如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用(比如人脸识别功能,指纹识别功能、移动支付功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如人脸信息模板数据,指纹信息模板等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子 设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导 致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。
图8是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将系统分为四层,从上至下分别为应用程序层,应用程序框架层,系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图8所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,游戏,设置等应用程序(也可以称为应用)。
在本申请实施例中,用户也可以通过该设置应用设置日常使用的屏幕分辨率,还可以通过该设置应用设置是否启用高刷新率切换功能,仅当该高刷新率切换功能启用时,电子设备才会执行上述实施例中的刷新率切换方法,当该高刷新率切换功能不启动时,电子设备可以不执行上述实施例中的刷新率切换方法,而是使用厂商默认或用户设置的固定屏幕刷新率来刷新屏幕。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming  interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图8所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器,场景识别模块,HwAGP等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
本申请实施中,该场景识别模块中可以包括数据库、三方特征库和场景识别单元。
其中,数据库中可以存储有设置应用中的所有设置项以及出厂预置的设置信息,例如可以存储有电子设备支持的多个可选屏幕刷新率,厂商预置的默认使用的屏幕刷新率,或用户通过设置应用设置的日常使用的屏幕刷新率,以及用户是否启用高刷新率切换功能的信息等,这样在电子设备重启后,根据该数据库中记录的数据,电子设备可以及时恢复到重启之前的设置。
三方特征库中记录有常见应用程序的类型以及当前启动的应用程序进入或退出前后台的信息。
场景识别单元能根据数据库以及三方特征库中的信息,确定当前前台运行的应用程序所属的类型,例如当前前台运行的应用程序为游戏类,或当前前台运行的应用程序为新闻类等。
显示服务接口用于将场景识别模块确定的场景信息下发到系统库的显示服务。示例性的,该显示服务接口可以为加速图形接口(AGP,Accelerate Graphical Port)。
系统库可以包括多个功能模块,用于提供本地服务的支持。例如:图层融合系统(Surface Flinger),输入子系统(Input Flinger),图形服务(AGP Sevice),显示驱动接口,调度接口等。
输入子系统用于检测用户的输入,例如用户的点击、滑动等操作。例如,输入子系统会根据用户对触摸屏的操作下发down事件,move事件和up事件,其中down事件可以理解为开始触屏,move事件表示触屏不离手,up事件表示触屏离手。
图层融合系统用于对显示子系统进行管理,并且为多个应用程序提供了二维(2-Dimensional,2D)和三维(3-Dimensional,3D)图层的融合。具体的,图层融合系统可以接收各应用程序发送来的需要显示的图层数据,该图层融合系统可以将应用程序发送需显示的图层数据的时间信息发送到图形服务。
图形服务于根据接收到的信息,确定当前场景,并提供相应的图形显示策略服务。该图形服务中可以包括输出帧率检测模块,游戏逻辑检测模块、显示帧率检测模块和动态刷新率调整模块。
输出帧率检测模块,用于实时检测前台应用程序的输出帧率。
显示帧率检测模块,用于检测显示屏上当前显示画面的显示帧率。
游戏逻辑检测模块,用于当场景识别模块通过显示接口服务下发的当前前台应用程序的类型为游戏类,且输出帧率检测模块检测到该应用程序的输出帧率的提升超出预设阈值时,确定当前为游戏场景。
动态刷新率调整模块,用于根据游戏逻辑检测模块、显示帧率检测模块或输入子系统传输的信息,按照上述实施例中的刷新率切换方法确定相应的当前屏幕刷新率。
例如,若图形服务接收到显示服务接口下发的数据表示当前前台为游戏类应用程序,图形服务中的输出帧率检测模块检测到该应用程序的输出帧率从60FPS提升到了90FPS,超出了预设阈值20FPS,该游戏逻辑检测模块即确定当前为游戏场景。动态刷新率调整模块调整当前屏幕刷新率为最高屏幕刷新率120Hz,显示帧率检测模块检测当前显示帧率为86FPS,动态刷新率调整模块确定该当前显示帧率与当前屏幕刷新率不匹配,调整当前屏幕刷新率为多个可选屏幕刷新率中的下一个屏幕刷新率90Hz作为当前屏幕刷新率。显示帧率检测模块检测当前显示帧率为87FPS,动态刷新率调整模块确定该当前显示帧率与当前屏幕刷新率匹配,维持当前屏幕刷新率为90Hz。
例如,若输入子系统检测到用户触屏,下发down事件至图形服务,图形服务中的动态刷新率调整模块接收到down事件后,确定检测到触控操作,提升当前屏幕分辨率为最高分辨率。输入子系统检测到用户离屏,下发up事件至图形服务,动态刷新率调整模块接收到up事件后,确定检测到触控操作离开,启动一个预设时长5秒的倒计时器。在倒计时结束前,若持续1秒钟没有接收到图层融合系统发送的当前前台应用程序发送需要显示的图层数据的时间信息,则动态刷新率调整模块确认画面刷新停滞,调整当前屏幕刷新率为数据库中存储的用户设置的默认刷新率。
调度接口可以下发图形服务确定的当前刷新率到内核层的调度模块。
显示驱动接口可以下发图形服务确定的当前刷新率到内核层的显示驱动。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,调度模块。
调度模块在接收到系统库的调度接口下发的当前屏幕刷新率后,会根据该当前屏幕刷新率调整相应的调度策略,对CPU、GPU等硬件进行相应的调度。
显示驱动在接收到显示驱动接口发送的当前屏幕刷新率后,会驱动显示屏按照该当前屏幕刷新率刷新显示屏。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (26)

  1. 一种刷新率切换方法,其特征在于,包括:
    电子设备使用第一刷新率刷新显示屏,所述第一刷新率不是所述电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;
    当所述电子设备确定显示画面为游戏场景时,所述电子设备按如下步骤从所述多个可选屏幕刷新率中确定一个屏幕刷新率作为第二刷新率,使用所述第二刷新率刷新显示屏:
    所述电子设备设置所述第二刷新率为所述最高屏幕刷新率;
    当确定所述第二刷新率不是所述第一刷新率时,所述电子设备确定当前显示帧率与所述第二刷新率是否匹配,所述当前显示帧率为使用所述第二刷新率刷新显示屏后检测到的显示画面的显示帧率;
    当确定不匹配时,所述电子设备按照屏幕刷新率从高到低的顺序,更新所述第二刷新率为所述多个可选屏幕刷新率中的下一个屏幕刷新率;
    当确定匹配,或确定所述第二刷新率是所述第一刷新率时,所述电子设备维持屏幕刷新率为所述第二刷新率。
  2. 根据权利要求1所述的方法,其特征在于,所述多个可选屏幕刷新率中的每个屏幕刷新率对应一个帧率范围;
    所述电子设备确定当前显示帧率与所述第二刷新率是否匹配,具体包括:
    所述电子设备确定所述当前显示帧率是否属于所述第二刷新率对应的帧率范围;
    当确定属于所述第二刷新率对应的帧率范围时,所述电子设备确定所述当前显示帧率与所述第二刷新率匹配;
    当确定不属于所述第二刷新率对应的帧率范围时,所述电子设备确定所述当前显示帧率与所述第二刷新率不匹配。
  3. 根据权利要求1所述的方法,其特征在于,所述电子设备确定当前显示帧率与所述第二刷新率是否匹配,具体包括:
    所述电子设备确定第二刷新率的值与当前显示帧率的值的差值是否小于预设差值;
    当确定小于所述预设差值时,所述电子设备确定所述当前显示帧率与所述第二刷新率匹配;
    当确定不小于所述预设差值时,所述电子设备确定所述当前显示帧率与所述第二刷新率不匹配。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备确定当前运行在前台的应用程序的类型是否为游戏类;
    所述电子设备确定所述应用程序的输出帧率的提升是否超出预设阈值;
    当确定当前运行在前台的应用程序的类型为游戏类且所述应用程序的输出帧率的提升超出预设阈值时,所述电子设备确定显示画面为游戏场景。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和所述最高屏幕刷新率;所述第一刷新率为所述最低屏幕刷新率。
  6. 根据权利要求1至4中任一项所述的方法,其特征在于,所述多个可选屏幕刷新率 包括两个以上的屏幕刷新率;
    所述第一刷新率为所述多个可选屏幕刷新率中的最低屏幕刷新率;或,所述第一刷新率为所述多个可选屏幕刷新率中除所述最高屏幕刷新率和所述最低屏幕刷新率之外的一个屏幕刷新率。
  7. 一种刷新率切换方法,其特征在于,包括:
    电子设备使用第三刷新率刷新显示屏,所述第三刷新率不是所述电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;
    当检测到用户输入的触控操作时,所述电子设备使用所述最高屏幕刷新率刷新显示屏;
    在检测到所述触控操作离开后,当检测到画面停滞刷新或超出预设时长未检测到触控操作时,所述电子设备使用所述第三刷新率刷新显示屏。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    当所述电子设备确定前台应用程序在停滞检测时长内均未发送需显示的图层数据时,所述电子设备确定检测到画面停滞刷新。
  9. 根据权利要求7或8所述的方法,其特征在于,所述多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和所述最高屏幕刷新率;所述第三刷新率为所述最低屏幕刷新率。
  10. 根据权利要求7或8所述的方法,其特征在于,所述多个可选屏幕刷新率包括两个以上的屏幕刷新率;
    所述第三刷新率为所述多个可选屏幕刷新率中的最低屏幕刷新率;或,所述第三刷新率为所述多个可选屏幕刷新率中除所述最高屏幕刷新率和所述最低屏幕刷新率之外的一个屏幕刷新率。
  11. 一种电子设备,其特征在于,所述电子设备包括:显示屏,一个或多个处理器,存储器,多个应用程序,以及一个或多个计算机程序;其中,所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令;当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:
    使用第一刷新率刷新所述显示屏,所述第一刷新率不是所述电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;
    当确定显示画面为游戏场景时,按如下步骤从所述多个可选屏幕刷新率中确定一个屏幕刷新率作为第二刷新率,使用所述第二刷新率刷新所述显示屏:
    设置所述第二刷新率为所述最高屏幕刷新率;
    当确定所述第二刷新率不是所述第一刷新率时,确定当前显示帧率与所述第二刷新率是否匹配,所述当前显示帧率为使用所述第二刷新率刷新所述显示屏后检测到的显示画面的显示帧率;
    当确定不匹配时,按照屏幕刷新率从高到低的顺序,更新所述第二刷新率为所述多个可选屏幕刷新率中的下一个屏幕刷新率;
    当确定匹配,或确定所述第二刷新率是所述第一刷新率时,维持屏幕刷新率为所述第二刷新率。
  12. 根据权利要求11所述的电子设备,其特征在于,所述多个可选屏幕刷新率中的每个 屏幕刷新率对应一个帧率范围;当所述指令被所述电子设备执行时,使得所述电子设备具体执行以下步骤:
    确定所述当前显示帧率是否属于所述第二刷新率对应的帧率范围;
    当确定属于所述第二刷新率对应的帧率范围时,确定所述当前显示帧率与所述第二刷新率匹配;
    当确定不属于所述第二刷新率对应的帧率范围时,确定所述当前显示帧率与所述第二刷新率不匹配。
  13. 根据权利要求11所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备具体执行以下步骤:
    确定第二刷新率的值与当前显示帧率的值的差值是否小于预设差值;
    当确定小于所述预设差值时,确定所述当前显示帧率与所述第二刷新率匹配;
    当确定不小于所述预设差值时,确定所述当前显示帧率与所述第二刷新率不匹配。
  14. 根据权利要求11至13中任一项所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备还执行以下步骤:
    确定当前运行在前台的应用程序的类型是否为游戏类;
    确定所述应用程序的输出帧率的提升是否超出预设阈值;
    当确定当前运行在前台的应用程序的类型为游戏类且所述应用程序的输出帧率的提升超出预设阈值时,确定显示画面为游戏场景。
  15. 根据权利要求11至14中任一项所述的电子设备,其特征在于,所述多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和所述最高屏幕刷新率;所述第一刷新率为所述最低屏幕刷新率。
  16. 根据权利要求11至14中任一项所述的电子设备,其特征在于,所述多个可选屏幕刷新率包括两个以上的屏幕刷新率;
    所述第一刷新率为所述多个可选屏幕刷新率中的最低屏幕刷新率;或,所述第一刷新率为所述多个可选屏幕刷新率中除所述最高屏幕刷新率和所述最低屏幕刷新率之外的一个屏幕刷新率。
  17. 一种电子设备,其特征在于,所述电子设备包括:显示屏,一个或多个处理器,存储器,多个应用程序,以及一个或多个计算机程序;其中,所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令;当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:
    使用第三刷新率刷新所述显示屏,所述第三刷新率不是所述电子设备中多个可选屏幕刷新率中的最高屏幕刷新率;
    当检测到用户输入的触控操作时,使用所述最高屏幕刷新率刷新所述显示屏;
    在检测到所述触控操作离开后,当检测到画面停滞刷新或超出预设时长未检测到触控操作时,使用所述第三刷新率刷新所述显示屏。
  18. 根据权利要求17所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备还执行以下步骤:
    当确定前台应用程序在停滞检测时长内均未发送需显示的图层数据时,确定检测到画 面停滞刷新。
  19. 根据权利要求17或18所述的电子设备,其特征在于,所述多个可选屏幕刷新率包括两个屏幕刷新率,分别为最低屏幕刷新率和所述最高屏幕刷新率;所述第三刷新率为所述最低屏幕刷新率。
  20. 根据权利要求17或18所述的电子设备,其特征在于,所述多个可选屏幕刷新率包括两个以上的屏幕刷新率;
    所述第三刷新率为所述多个可选屏幕刷新率中的最低屏幕刷新率;或,所述第三刷新率为所述多个可选屏幕刷新率中除所述最高屏幕刷新率和所述最低屏幕刷新率之外的一个屏幕刷新率。
  21. 一种芯片,所述芯片应用于电子设备,所述芯片包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1-6中任一项所述的方法。
  22. 一种芯片,所述芯片应用于电子设备,所述芯片包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求7-10中任一项所述的方法。
  23. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-6中任一项所述的方法。
  24. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求7-10中任一项所述的方法。
  25. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-6中任一项所述的方法。
  26. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求7-10中任一项所述的方法。
PCT/CN2021/078682 2020-03-06 2021-03-02 刷新率切换方法和电子设备 WO2021175213A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US17/908,626 US20230134189A1 (en) 2020-03-06 2021-03-02 Refresh rate switching method and electronic device
EP21764080.4A EP4105773A4 (en) 2020-03-06 2021-03-02 REFRESH FREQUENCY SWITCHING METHOD AND ELECTRONIC DEVICE
JP2022553180A JP7506165B2 (ja) 2020-03-06 2021-03-02 リフレッシュレート切替方法及び電子装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010153662.8 2020-03-06
CN202010153662.8A CN113362783B (zh) 2020-03-06 2020-03-06 刷新率切换方法和电子设备

Publications (1)

Publication Number Publication Date
WO2021175213A1 true WO2021175213A1 (zh) 2021-09-10

Family

ID=77524264

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078682 WO2021175213A1 (zh) 2020-03-06 2021-03-02 刷新率切换方法和电子设备

Country Status (4)

Country Link
US (1) US20230134189A1 (zh)
EP (1) EP4105773A4 (zh)
CN (2) CN114842816A (zh)
WO (1) WO2021175213A1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824840A (zh) * 2021-09-15 2021-12-21 维沃移动通信有限公司 动态调节屏幕刷新率的方法、装置及电子设备
CN113870812A (zh) * 2021-10-15 2021-12-31 Oppo广东移动通信有限公司 显示屏刷新帧率的调整方法、装置、处理器、芯片和终端
CN114071047A (zh) * 2021-10-30 2022-02-18 深圳曦华科技有限公司 帧率控制方法及相关装置
CN114205673A (zh) * 2021-12-16 2022-03-18 荣耀终端有限公司 刷新率的设置方法及相关设备
CN114245208A (zh) * 2021-12-16 2022-03-25 荣耀终端有限公司 刷新率的设置方法及相关设备
CN114461051A (zh) * 2021-12-29 2022-05-10 荣耀终端有限公司 帧率切换方法、装置及存储介质
CN114501054A (zh) * 2022-02-11 2022-05-13 腾讯科技(深圳)有限公司 直播互动方法、装置、设备及计算机可读存储介质
CN114648951A (zh) * 2022-02-28 2022-06-21 荣耀终端有限公司 控制屏幕刷新率动态变化的方法及电子设备
CN114740965A (zh) * 2022-05-05 2022-07-12 Oppo广东移动通信有限公司 降低终端功耗的处理方法及其装置、终端和可读存储介质
CN114913827A (zh) * 2022-05-17 2022-08-16 广西世纪创新显示电子有限公司 电竞显示器的节能显示控制方法、装置、终端及存储介质
CN115185083A (zh) * 2022-07-14 2022-10-14 东南大学 一种ar头戴显示器自适应刷新率和分辨率渲染方法

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113889054B (zh) * 2021-09-29 2023-01-06 联想(北京)有限公司 一种控制方法及电子设备
CN113936622A (zh) * 2021-09-30 2022-01-14 联想(北京)有限公司 一种处理方法和装置
CN114222157B (zh) * 2021-12-22 2024-05-10 厦门视诚科技有限公司 一种多输入信号便携式导播推流预监系统
CN116343715A (zh) * 2021-12-23 2023-06-27 北京小米移动软件有限公司 显示控制方法及装置
CN116501210B (zh) * 2022-01-10 2024-06-11 荣耀终端有限公司 一种显示方法、电子设备及存储介质
CN114390333B (zh) * 2022-02-09 2024-04-02 百果园技术(新加坡)有限公司 界面内容显示方法、装置、设备和存储介质
CN116700653B (zh) * 2022-02-28 2024-03-19 荣耀终端有限公司 帧率切换方法及相关装置
CN114661136A (zh) * 2022-03-29 2022-06-24 联想(北京)有限公司 一种信息处理方法、系统及电子设备
CN114724528B (zh) * 2022-04-02 2024-03-22 深圳创维-Rgb电子有限公司 显示设备的显示控制方法、装置、电子设备及存储介质
CN114632329B (zh) * 2022-05-16 2022-10-25 荣耀终端有限公司 终端设备性能调节方法和相关装置
CN115052043B (zh) * 2022-06-14 2024-03-29 北京淳中科技股份有限公司 一种云桌面的视频传输方法、电子设备、装置及介质
CN117711355A (zh) * 2022-08-24 2024-03-15 荣耀终端有限公司 一种屏幕刷新率切换方法及电子设备
TWI826196B (zh) * 2022-12-21 2023-12-11 宏碁股份有限公司 傳輸頻率調整裝置和方法
CN117711354A (zh) * 2023-06-16 2024-03-15 荣耀终端有限公司 显示方法、可读存储介质和电子设备
CN117707406A (zh) * 2023-07-10 2024-03-15 荣耀终端有限公司 一种亮屏显示方法、电子设备及存储介质
CN116680153B (zh) * 2023-07-28 2024-03-29 荣耀终端有限公司 应用帧率平滑方法、电子设备及存储介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473051A (zh) * 2013-09-02 2013-12-25 小米科技有限责任公司 一种节省终端功耗的方法和装置
CN104282286A (zh) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 根据应用场景调整智能移动终端显示刷新率的方法及系统
CN106250085A (zh) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 刷新率调整方法及装置
CN106875925A (zh) * 2017-03-31 2017-06-20 北京小米移动软件有限公司 屏幕的刷新率调整方法和装置
US20170365207A1 (en) * 2016-06-21 2017-12-21 Microsoft Technology Licensing, Llc Temporarily increased refresh rate for a display panel in low power mode
CN107924667A (zh) * 2015-08-20 2018-04-17 高通股份有限公司 与预测性时移补偿相匹配的刷新率
CN108243349A (zh) * 2016-12-26 2018-07-03 中科创达软件股份有限公司 一种信息处理方法及装置
CN110377251A (zh) * 2019-06-06 2019-10-25 努比亚技术有限公司 一种屏幕刷新率调整方法、终端及计算机可读存储介质
CN110619860A (zh) * 2019-10-15 2019-12-27 Oppo广东移动通信有限公司 屏幕刷新率的调整方法、装置、存储介质及电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2373121A (en) * 2001-03-10 2002-09-11 Sharp Kk Frame rate controller
JP2004151222A (ja) * 2002-10-29 2004-05-27 Sharp Corp 液晶表示制御装置および液晶表示装置
CN102592555B (zh) * 2012-02-03 2014-07-30 福州瑞芯微电子有限公司 一种可降低屏幕功耗的调节电路的调节方法
US9607538B2 (en) * 2014-03-11 2017-03-28 Industry-Academic Cooperation Foundation, Yonsei University Method for managing power in electronic device and the electronic device
US9905199B2 (en) * 2014-09-17 2018-02-27 Mediatek Inc. Processor for use in dynamic refresh rate switching and related electronic device and method
CN104731543B (zh) * 2015-03-23 2018-03-16 广东欧珀移动通信有限公司 一种屏幕刷新率的显示方法和装置
CN106941563B (zh) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 一种移动终端刷新率的控制方法、装置及移动终端

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473051A (zh) * 2013-09-02 2013-12-25 小米科技有限责任公司 一种节省终端功耗的方法和装置
CN104282286A (zh) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 根据应用场景调整智能移动终端显示刷新率的方法及系统
CN107924667A (zh) * 2015-08-20 2018-04-17 高通股份有限公司 与预测性时移补偿相匹配的刷新率
US20170365207A1 (en) * 2016-06-21 2017-12-21 Microsoft Technology Licensing, Llc Temporarily increased refresh rate for a display panel in low power mode
CN106250085A (zh) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 刷新率调整方法及装置
CN108243349A (zh) * 2016-12-26 2018-07-03 中科创达软件股份有限公司 一种信息处理方法及装置
CN106875925A (zh) * 2017-03-31 2017-06-20 北京小米移动软件有限公司 屏幕的刷新率调整方法和装置
CN110377251A (zh) * 2019-06-06 2019-10-25 努比亚技术有限公司 一种屏幕刷新率调整方法、终端及计算机可读存储介质
CN110619860A (zh) * 2019-10-15 2019-12-27 Oppo广东移动通信有限公司 屏幕刷新率的调整方法、装置、存储介质及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4105773A4

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824840B (zh) * 2021-09-15 2022-11-01 维沃移动通信有限公司 动态调节屏幕刷新率的方法、装置、电子设备及存储介质
CN113824840A (zh) * 2021-09-15 2021-12-21 维沃移动通信有限公司 动态调节屏幕刷新率的方法、装置及电子设备
CN113870812A (zh) * 2021-10-15 2021-12-31 Oppo广东移动通信有限公司 显示屏刷新帧率的调整方法、装置、处理器、芯片和终端
CN114071047A (zh) * 2021-10-30 2022-02-18 深圳曦华科技有限公司 帧率控制方法及相关装置
CN114071047B (zh) * 2021-10-30 2023-08-29 深圳曦华科技有限公司 帧率控制方法及相关装置
CN114205673A (zh) * 2021-12-16 2022-03-18 荣耀终端有限公司 刷新率的设置方法及相关设备
CN114245208A (zh) * 2021-12-16 2022-03-25 荣耀终端有限公司 刷新率的设置方法及相关设备
CN114461051A (zh) * 2021-12-29 2022-05-10 荣耀终端有限公司 帧率切换方法、装置及存储介质
CN114501054A (zh) * 2022-02-11 2022-05-13 腾讯科技(深圳)有限公司 直播互动方法、装置、设备及计算机可读存储介质
CN114648951A (zh) * 2022-02-28 2022-06-21 荣耀终端有限公司 控制屏幕刷新率动态变化的方法及电子设备
CN114740965A (zh) * 2022-05-05 2022-07-12 Oppo广东移动通信有限公司 降低终端功耗的处理方法及其装置、终端和可读存储介质
CN114740965B (zh) * 2022-05-05 2023-12-08 Oppo广东移动通信有限公司 降低终端功耗的处理方法及其装置、终端和可读存储介质
CN114913827A (zh) * 2022-05-17 2022-08-16 广西世纪创新显示电子有限公司 电竞显示器的节能显示控制方法、装置、终端及存储介质
CN115185083A (zh) * 2022-07-14 2022-10-14 东南大学 一种ar头戴显示器自适应刷新率和分辨率渲染方法
CN115185083B (zh) * 2022-07-14 2024-02-06 东南大学 一种ar头戴显示器自适应刷新率和分辨率渲染方法

Also Published As

Publication number Publication date
EP4105773A1 (en) 2022-12-21
US20230134189A1 (en) 2023-05-04
CN113362783A (zh) 2021-09-07
JP2023516206A (ja) 2023-04-18
EP4105773A4 (en) 2023-08-02
CN113362783B (zh) 2022-04-05
CN114842816A (zh) 2022-08-02

Similar Documents

Publication Publication Date Title
WO2021175213A1 (zh) 刷新率切换方法和电子设备
US20220247857A1 (en) Full-screen display method for mobile terminal and device
WO2021017889A1 (zh) 一种应用于电子设备的视频通话的显示方法及相关装置
KR102577396B1 (ko) 녹화 프레임 레이트 제어 방법 및 관련 장치
WO2022257451A1 (zh) 一种显示方法、电子设备及计算机存储介质
WO2021036898A1 (zh) 折叠屏设备中应用打开方法及相关装置
CN113625860B (zh) 模式切换方法、装置、电子设备及芯片系统
WO2021190314A1 (zh) 触控屏的滑动响应控制方法及装置、电子设备
CN113170011A (zh) 一种电子设备在来电时呈现视频的方法和电子设备
WO2021143391A1 (zh) 基于视频通话的共享屏幕方法及移动设备
WO2021052388A1 (zh) 一种视频通信方法及视频通信装置
CN116048831B (zh) 一种目标信号处理方法和电子设备
CN114006698B (zh) token刷新方法、装置、电子设备及可读存储介质
CN115686403A (zh) 显示参数的调整方法、电子设备、芯片及可读存储介质
US12020620B2 (en) Display method, electronic device, and computer storage medium
JP7506165B2 (ja) リフレッシュレート切替方法及び電子装置
WO2023197999A1 (zh) 显示方法及电子设备
US20240111475A1 (en) Screen mirroring method, apparatus, device, and storage medium
CN117729420A (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: 21764080

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022553180

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021764080

Country of ref document: EP

Effective date: 20220912

NENP Non-entry into the national phase

Ref country code: DE