CN112256223B - Method and device for adjusting display fluency and electronic equipment - Google Patents

Method and device for adjusting display fluency and electronic equipment Download PDF

Info

Publication number
CN112256223B
CN112256223B CN202011130645.9A CN202011130645A CN112256223B CN 112256223 B CN112256223 B CN 112256223B CN 202011130645 A CN202011130645 A CN 202011130645A CN 112256223 B CN112256223 B CN 112256223B
Authority
CN
China
Prior art keywords
screen refresh
refresh rate
rate
frame
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011130645.9A
Other languages
Chinese (zh)
Other versions
CN112256223A (en
Inventor
王振淦
韩冰天
张金山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011130645.9A priority Critical patent/CN112256223B/en
Publication of CN112256223A publication Critical patent/CN112256223A/en
Application granted granted Critical
Publication of CN112256223B publication Critical patent/CN112256223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a method and a device for adjusting display smoothness and electronic equipment. One embodiment of the method comprises the following steps: acquiring the frame rate corresponding to each continuous drawing operation at least one time before the current moment; determining whether a screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate; in response to determining that the screen refresh rate needs to be adjusted, the screen refresh rate is adjusted to a target screen refresh rate determined according to the frame rate so as to adjust the display smoothness of the application information display, and the screen refresh rate is dynamically adjusted according to the frame rate of the application, so that the smoothness of the application information display is higher. In addition, by automatically adjusting the screen refresh rate, the operation of manually adjusting the screen refresh rate according to the application frame rate by the user for higher smoothness can be saved.

Description

Method and device for adjusting display fluency and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a method and a device for adjusting display smoothness and electronic equipment.
Background
With the popularization of smartphones, applications developed for smartphones are increasing. For applications running on smartphones, users want the running of the application to be smooth. In general, the smoothness of the application can be improved by setting a high screen brush information rate.
Many cell phone screens currently support high screen refresh rates, e.g., 90hz,120hz, etc. If the screen on the mobile phone screen is set to a fixed high screen refresh rate, there are some applications developed according to the low screen refresh rate that cannot draw to match the high refresh rate, and a case of unsmooth flow may occur.
Disclosure of Invention
This disclosure is provided in part to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a method and a device for adjusting display smoothness and electronic equipment.
In a first aspect, an embodiment of the present disclosure provides a method for adjusting display smoothness, including: acquiring the frame rate corresponding to each continuous drawing operation at least one time before the current moment; determining whether a screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate; and in response to determining that the screen refresh rate needs to be adjusted, adjusting the screen refresh rate to a target screen refresh rate determined according to the frame rate so as to adjust the display smoothness of the application information display.
In a second aspect, an embodiment of the present disclosure provides an adjustment device for displaying smoothness, including: the acquisition unit is used for acquiring the frame rates corresponding to the preset number of application interface drawing periods before the current moment; a determining unit configured to determine whether or not adjustment of a screen refresh rate is required based on the frame rate and the current screen refresh rate; and the adjusting unit is used for adjusting the screen refresh rate to a target screen refresh rate to adjust the display smoothness of the application information display in response to the fact that the screen refresh rate is required to be adjusted based on the frame rate and the current screen refresh rate.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for adjusting display smoothness according to the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the steps of the method for regulating display smoothness according to the first aspect.
According to the method, the device and the electronic equipment for adjusting the display smoothness, the frame rates corresponding to at least one continuous drawing operation before the current moment are obtained; determining whether a screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate; in response to determining that the screen refresh rate needs to be adjusted, the screen refresh rate is adjusted to a target screen refresh rate determined according to the frame rate so as to adjust the display smoothness of the application information display, and the screen refresh rate is dynamically adjusted according to the frame rate of the application, so that the smoothness of the application information display is higher. In addition, by automatically adjusting the screen refresh rate, the operation of manually adjusting the screen refresh rate according to the application frame rate by the user for higher smoothness can be saved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of a method of regulating display fluency in accordance with the present disclosure;
FIG. 2 is a flow chart of yet another embodiment of a method of regulating display fluency in accordance with the present disclosure;
FIG. 3 is a flow chart of yet another embodiment of a method of regulating display fluency in accordance with the present disclosure;
FIG. 4 is a schematic structural view of one embodiment of a device for regulating display fluency in accordance with the present disclosure;
FIG. 5 is an exemplary system architecture in which a display fluency adjustment method or display fluency adjustment apparatus of one embodiment of the present disclosure may be applied;
Fig. 6 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Referring to fig. 1, a flow of one embodiment of a method of adjusting display fluency according to the present disclosure is shown. As shown in fig. 1, the method for adjusting the display smoothness includes the following steps:
Step 101, obtaining the frame rate corresponding to each continuous drawing operation at least one time before the current moment.
A plurality of applications are typically run in a mobile terminal. The information of the application may be displayed in a display screen of the mobile terminal.
Before displaying the information of the application, it is necessary to draw an application interface according to the information of the application.
Currently, there are two modes of application drawing under the android operating system, one is a native drawing flow provided by the android operating system, and the application drawing is performed according to VSYNC (vertical synchronization signal amount) by communicating with SurfaceFlinger through RENDERTHREAD (rendering thread). One is to create a SurfaceView that communicates directly with SurfaceFlinger via DequeueBuffer, queueBuffer.
After the application sends the rendered content to SurfaceFlinger, surfaceFlinger synthesizes the rendered content for all applications at the time the next VSYNC comes, and then displays the synthesized content on the screen at the next VSYNC.
The frame rate (FRAMES PER Seconds, fps) refers to the number of frames displayed per second. A frame may be an interface of an application or a picture of a video.
In general, in order to make application display smooth, it is necessary to match the screen refresh rate with the frame rate. Taking a screen refresh rate of 60Hz as an example, the operation of rendering and displaying the application interface needs to be completed every 1/60 second.
The above-mentioned one-time continuous drawing operation means that according to the instruction of the user, starting to draw the interface corresponding to the instruction of the user until stopping to draw the interface corresponding to the instruction of the user. For example, one slide operation by the user, a drawing operation from the start of the slide of the interface according to the slide instruction by the user to the stop of the slide of the interface is one continuous drawing operation. For example, the user clicks on the identity of an application to launch the application, and all the interface drawing operations between the application launch and the time the actual interface display no longer changes are one continuous drawing operation.
For each continuous drawing operation, the frame rate corresponding to the continuous drawing operation can be determined by the start time and the end time of the continuous drawing operation and the frame number of the displayed picture corresponding to the continuous drawing operation. Specifically, the above frame rate may be calculated as follows (1):
Wherein f is the frame rate corresponding to the current continuous drawing operation. T1 is the time when the continuous drawing operation starts drawing the first frame picture, and T2 is the time when the continuous drawing operation ends the last frame picture. N1 is the total frame number of the frames drawn by the present continuous drawing operation. The time units of (T1-T2) are nanoseconds.
The number of the continuous drawing operations described above may be one or more, for example, 10 times, 20 times, or the like.
Step 102, determining whether the screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate.
In some application scenarios, an average of the frame rates corresponding to each of the at least one continuous rendering operation may be determined as the reference frame rate. And comparing the reference frame rate with the current screen refresh rate, and determining that the screen refresh rate needs to be adjusted if the difference between the reference frame rate and the current screen refresh rate is greater than a preset difference threshold. Otherwise, the screen refresh rate does not need to be adjusted.
And step 103, in response to determining that the screen refresh rate needs to be adjusted, adjusting the screen refresh rate to a target screen refresh rate determined according to the frame rate so as to adjust the display smoothness of the application information display.
In this embodiment, after determining that the screen refresh rate needs to be adjusted in step 102, the target screen refresh rate may be determined according to the frame rate corresponding to each of the at least one continuous drawing operation. A preset screen refresh rate, in which a difference from the frame rate of the reference frame rate is smaller than the preset difference threshold, may be determined as a target screen refresh rate.
The preset screen refresh rate here may include, for example, 60Hz, 70Hz, 75Hz, 90Hz, 120Hz, etc.
After the screen refresh rate is adjusted to the target screen refresh rate determined according to the frame rate, the screen refresh rate is higher in matching degree with the frame rate, so that smoothness of interface display of the application is higher.
According to the method provided by the embodiment, the frame rate corresponding to each continuous drawing operation at least once before the current moment is obtained; determining whether a screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate; in response to determining that the screen refresh rate needs to be adjusted, the screen refresh rate is adjusted to a target screen refresh rate determined according to the frame rate so as to adjust the display smoothness of the application information display, and the screen refresh rate is dynamically adjusted according to the frame rate of the application, so that the smoothness of the application information display is higher. In addition, by automatically adjusting the screen refresh rate, the operation of manually adjusting the screen refresh rate according to the application frame rate by the user for higher smoothness can be saved.
With continued reference to fig. 2, a flow of another embodiment of a method of adjusting display fluency according to the present disclosure is shown. The method comprises the following steps:
Step 201, obtaining the frame rate corresponding to each of at least one continuous drawing operation before the current moment.
In this embodiment, the step 201 may be the same as or similar to the embodiment shown in fig. 1, and is not repeated here.
Step 202, in response to determining that the current screen refresh rate is a first preset screen refresh rate, determining statistics of frame rates corresponding to at least one continuous drawing operation; the first preset screen refresh rate is greater than or equal to a first preset threshold.
In this embodiment, the first preset screen refresh rate may be 90Hz or 120Hz. The first preset threshold may be 90Hz.
In this embodiment, the statistical value of the frame rate corresponding to each of the at least one continuous drawing operation may be obtained by performing a statistical analysis on the frame rate corresponding to each of the at least one continuous drawing operation.
In some alternative implementations, the step 202 may include the following steps:
first, for each frame rate, a weight corresponding to the frame rate is determined according to a preset frame rate interval in which the frame rate is located.
And secondly, determining the statistic value according to weights corresponding to the frame rates.
The above statistical value s can be calculated by the following formula (2):
K i is the weight of the i-th frame rate. i is an integer of 1 or more and N or less. N is the number of the at least one continuous drawing operation
The frame rate at 10 consecutive rendering operations is: [60, 69, 68, 67, 70, 65, 69, 82, 60, 72], the weights corresponding to each frame rate are: [ -1, -1, -1, -1, +1, -1, -1, +3, -1, +1]. The statistics to the above according to the above formula (3) are:
-1-1-1-1+1-1-1+3-1+1=-2。
step 203, determining whether the screen refresh rate needs to be adjusted based on the statistics.
In step 204, in response to determining that the screen refresh rate needs to be adjusted, the screen refresh rate is adjusted to the target screen refresh rate to adjust the display smoothness of the application information display.
It may be determined whether the screen brush information rate needs to be adjusted based on the statistics.
In this embodiment, if the statistic value is smaller than the preset statistic threshold value, it is determined that the screen refresh rate needs to be adjusted. Otherwise, the screen refresh rate is not adjusted.
The preset statistical threshold may be 0.
Still taking the 10 consecutive drawing operations as an example, the statistics are-2, thereby determining that the screen refresh rate needs to be adjusted.
The target screen refresh rate may be determined according to the respective frame rates of at least one successive rendering operation. In some application scenarios, the screen refresh rate may be determined from a plurality of preset screen refresh rates according to an average value of frame rates corresponding to at least one continuous drawing operation.
In some application scenarios, the step 204 may include the following steps: in response to determining that the statistic is less than a preset statistic threshold, determining a preset screen refresh rate that is less than the first preset screen refresh rate as a target screen refresh rate
The target screen refresh rate may be a preset screen refresh rate that is less than the first preset screen refresh rate.
In other application scenarios, the screen refresh rate with the smallest difference from the average value may be determined as the target screen refresh rate from among a plurality of preset screen refresh rates.
In some application scenarios, the first preset screen refresh rate may be 90Hz, and when the statistics value is smaller than a preset statistics threshold value, 60Hz may be determined as the target screen refresh rate.
Compared with the embodiment shown in fig. 1, the present embodiment highlights the step of determining whether to adjust the screen refresh rate according to the statistics of the frame rates corresponding to at least one continuous drawing operation when the screen refresh rate is greater than or equal to the first preset threshold. When the screen refresh rate is larger, the frame rate is not matched with the screen refresh rate, so that the screen refresh rate is adjusted, and on one hand, the smoothness of information display of the application is higher; on the other hand, the resource waste can be reduced.
With continued reference to fig. 3, a flow of another embodiment of a method of adjusting display fluency according to the present disclosure is shown. The method comprises the following steps:
Step 301, obtaining frame rates corresponding to at least one continuous drawing operation before the current moment.
Step 302, in response to determining that the current screen refresh rate is a second preset screen refresh rate, whether the frame rates corresponding to at least one continuous drawing operation meet preset conditions or not, where the second preset screen refresh rate is less than or equal to a second preset threshold.
In this embodiment, the second preset threshold may be 60Hz. The second preset screen refresh rate may be 60Hz.
The frame rates to which each of the at least one continuous rendering operation corresponds may be determined by the method set forth in the embodiment shown in fig. 1. And are not described in detail herein.
Whether the frame rate corresponding to each of the at least one continuous drawing operation meets a preset condition or not includes: it is determined whether the frame rate of each successive drawing operation is greater than a preset frame rate threshold.
Taking the second preset screen refresh rate of 60Hz as an example, the preset frame rate threshold may be 55fps.
The preset frame rate threshold may be a value close to the second preset screen refresh rate.
In step 303, in response to determining that the frame rates corresponding to the at least one continuous drawing operation satisfy the preset conditions, it is determined whether the screen refresh rate needs to be adjusted based on the drawing time of the multi-frame application interface in the at least one continuous drawing operation.
And determining the drawing time of the multi-frame application interface from at least one continuous drawing operation according to a preset rule. The number of multi-frame application interfaces here may comprise, for example, 120 frames. Whether or not the screen refresh rate needs to be adjusted may be determined according to the drawing time of the application interface of 120 frames.
The drawing time of each frame application interface may be a time difference between a time when the frame application interface is finished to be drawn and a time when the frame application interface is started to be drawn.
When the second preset screen refresh rate is 60Hz, if the drawing time of more than 90% of the 120 frames is less than or equal to the refresh period (for example, 11.1 ms) meeting the refresh rate of other screens, it is determined that the refresh rate needs to be adjusted. And when the screen refresh rate is determined to be required to be adjusted, determining the screen refresh rate corresponding to the refresh period as a target screen refresh rate.
The target screen refresh rate may be a preset screen refresh rate greater than the second preset screen refresh rate.
In some application scenarios, if the drawing time of 90% or more of the 120 frames is less than or equal to 11.1ms, the target screen refresh rate may be determined to be 90Hz.
The system may be applied to adjust the screen refresh rate to 90Hz. The time interval of VSYCN transmitted electrical signals may be adjusted to 11.1ms.
In step 304, in response to determining that the screen refresh rate needs to be adjusted, the screen refresh rate is adjusted to the target screen refresh rate determined according to the frame rate, so as to adjust the display smoothness of the application information display.
Compared with the embodiment shown in fig. 1, this embodiment highlights the step of determining whether the screen refresh rate needs to be adjusted according to the drawing time of the multi-frame application interface in at least one continuous drawing operation and determining the adjusted target screen refresh rate if it is determined that the frame rates corresponding to the at least one continuous drawing operation meet the preset conditions when the screen refresh rate is the second preset screen refresh rate that is less than or equal to the second preset threshold. Therefore, when the screen refresh rate setting value is smaller, the frame rate and the drawing time of the frame meet the condition of increasing the screen refresh rate, and the screen refresh rate is adjusted. The less the impact on the eye is when the stability of the application display interface can be increased.
With further reference to fig. 4, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an information display apparatus, which corresponds to the method embodiment shown in fig. 1, and which is particularly applicable to various electronic devices. The information display device is applied to an application client.
As shown in fig. 4, the information display apparatus of the present embodiment includes: an acquisition unit 401, a determination unit 402 and an adjustment unit 403. The acquiring unit 401 is configured to acquire frame rates corresponding to a preset number of application interface drawing periods before a current time; a determining unit 402, configured to determine whether an adjustment of a screen refresh rate is required based on the frame rate and the current screen refresh rate; an adjusting unit 403, configured to adjust the screen refresh rate to a target screen refresh rate to adjust display smoothness of application information display in response to determining that the screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate.
In this embodiment, the specific processing of the acquiring unit 401, the determining unit 402 and the adjusting unit 403 of the adjusting device for displaying the fluency and the technical effects brought by the specific processing may refer to the descriptions related to step 101, step 102 and step 103 in the corresponding embodiment of fig. 1, and are not repeated here.
In some alternative implementations, the determining unit 402 may be further configured to: in response to determining that the current screen refresh rate is a first preset screen refresh rate, determining statistics of frame rates corresponding to each of the at least one continuous drawing operation; wherein the first preset screen refresh rate is greater than or equal to a first preset threshold; and determining whether the screen refresh rate needs to be adjusted based on the statistical value.
In some alternative implementations, the determining unit 402 is further configured to: for each frame rate, determining the weight corresponding to the frame rate according to a preset frame rate interval in which the frame rate is positioned; and determining the statistic value according to weights corresponding to the frame rates.
In some alternative implementations, the adjustment unit 403 is further configured to: and in response to determining that the statistic is less than a preset statistic threshold, determining a preset screen refresh rate that is less than the first preset screen refresh rate as a target screen refresh rate.
In some alternative implementations, the determining unit 402 is further configured to: in response to determining that the current screen refresh rate is a second preset screen refresh rate, determining whether frame rates corresponding to at least one continuous drawing operation meet preset conditions, wherein the second preset screen refresh rate is smaller than or equal to a second preset threshold; and determining whether the screen refresh rate needs to be adjusted or not based on the drawing time of the multi-frame application interface in the at least one continuous drawing operation in response to determining that the frame rate corresponding to each of the at least one continuous drawing operation meets the preset condition.
In some alternative implementations, the determining unit 402 is further configured to: determining whether the drawing time of the multi-frame applied to the interface is smaller than or equal to a first preset time threshold; and determining that the screen refresh rate needs to be adjusted in response to determining that the drawing time of the multi-frame applied to the interface is less than or equal to a first preset time threshold.
In some alternative implementations, the target screen refresh rate is a preset screen refresh rate that is greater than the second preset screen refresh rate.
Referring to fig. 5, fig. 5 illustrates a method of adjusting display smoothness, or an exemplary system architecture in which a device for adjusting display smoothness may be applied, according to one embodiment of the present disclosure.
As shown in fig. 5, the system architecture may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 501, 502, 503 may interact with the server 505 via the network 504 to receive or send messages or the like. Various client applications, such as a web browser application, a search class application, a news information class application, a shopping class application, an online office class application, etc., may be installed on the terminal devices 501, 502, 503. The client application in the terminal device 501, 502, 503 may receive the instruction of the user and perform the corresponding function according to the instruction of the user, for example, obtain the display information from the server according to the instruction of the user and display the display information.
The terminal devices 501, 502, 503 may be hardware or software. When the terminal devices 501, 502, 503 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression tag audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression tag audio layer 4) players, laptop and desktop computers, and the like. When the terminal devices 501, 502, 503 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 505 may provide various services such as receiving the target document transmitted from the terminal devices 501, 502, 503, and saving information of the target document.
It should be noted that, the method for adjusting the display smoothness provided by the embodiments of the present disclosure may be performed by the terminal device, and accordingly, the adjusting device for the display smoothness may be provided in the terminal devices 501, 502, 503.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 6, a schematic diagram of a configuration of an electronic device (e.g., the terminal device of fig. 5) suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring the frame rate corresponding to each continuous drawing operation at least one time before the current moment; determining whether a screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate; and in response to determining that the screen refresh rate needs to be adjusted, adjusting the screen refresh rate to a target screen refresh rate determined according to the frame rate so as to adjust the display smoothness of the application information display.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit is not limited to the unit itself in some cases, and for example, the acquisition unit may also be described as "a unit that acquires a frame rate corresponding to each of at least one continuous rendering operation before the current time".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (9)

1. A method for adjusting display smoothness, comprising:
Acquiring frame rates corresponding to multiple continuous drawing operations before the current moment; the one-time continuous drawing operation means that according to the instruction of the user, starting to draw the interface corresponding to the instruction of the user until stopping to draw the interface corresponding to the instruction of the user;
determining whether a screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate;
In response to determining that the screen refresh rate needs to be adjusted, adjusting the screen refresh rate to a target screen refresh rate determined according to the frame rate to adjust display smoothness of application information display;
wherein the determining whether the screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate comprises:
in response to determining that the current screen refresh rate is a first preset screen refresh rate, for each frame rate, determining a weight corresponding to the frame rate according to a preset frame rate interval in which the frame rate is located;
Determining the statistic value of the frame rate corresponding to each of a plurality of continuous drawing operations according to the weights corresponding to each of the plurality of frame rates;
And determining whether the screen refresh rate needs to be adjusted based on the statistical value.
2. The method of claim 1, wherein the first preset screen refresh rate is greater than or equal to a first preset threshold.
3. The method of claim 1 or 2, wherein in response to determining that an adjustment of a screen refresh rate is required, adjusting the screen refresh rate to a target screen refresh rate determined from the frame rate to adjust a display smoothness of the application information display comprises:
And in response to determining that the statistic is less than a preset statistic threshold, determining a preset screen refresh rate that is less than the first preset screen refresh rate as a target screen refresh rate.
4. The method of claim 1, wherein the determining whether an adjustment to a screen refresh rate is required based on the frame rate and the current screen refresh rate comprises:
In response to determining that the current screen refresh rate is a second preset screen refresh rate, determining whether frame rates corresponding to respective continuous drawing operations of a plurality of times meet preset conditions, wherein the second preset screen refresh rate is less than or equal to a second preset threshold;
and determining whether the screen refresh rate needs to be adjusted or not based on the drawing time of the multi-frame application interface in the plurality of continuous drawing operations in response to determining that the frame rates corresponding to the plurality of continuous drawing operations respectively meet the preset conditions.
5. The method of claim 4, wherein determining whether an adjustment to a screen refresh rate is required based on a drawing time of a multi-frame application interface comprises:
determining whether the drawing time of the multi-frame applied to the interface is smaller than or equal to a first preset time threshold;
And determining that the screen refresh rate needs to be adjusted in response to determining that the drawing time of the multi-frame applied to the interface is less than or equal to a first preset time threshold.
6. The method of claim 4 or 5, wherein the target screen refresh rate is a preset screen refresh rate that is greater than the second preset screen refresh rate.
7. An adjustment device for displaying fluency, comprising:
An acquisition unit, configured to acquire frame rates corresponding to a plurality of continuous drawing operations before a current time; the one-time continuous drawing operation means that according to the instruction of the user, starting to draw the interface corresponding to the instruction of the user until stopping to draw the interface corresponding to the instruction of the user;
A determining unit configured to determine whether or not adjustment of a screen refresh rate is required based on the frame rate and the current screen refresh rate;
an adjusting unit, configured to adjust a screen refresh rate to a target screen refresh rate in response to determining that the screen refresh rate needs to be adjusted based on the frame rate and the current screen refresh rate, so as to adjust display smoothness of application information display;
The determining unit is specifically configured to determine, for each frame rate, a weight corresponding to the frame rate according to a preset frame rate interval in which the frame rate is located, in response to determining that the current screen refresh rate is a first preset screen refresh rate; determining the statistic value of the frame rate corresponding to each of a plurality of continuous drawing operations according to the weights corresponding to the frame rates respectively; and determining whether the screen refresh rate needs to be adjusted based on the statistical value.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202011130645.9A 2020-10-20 2020-10-20 Method and device for adjusting display fluency and electronic equipment Active CN112256223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011130645.9A CN112256223B (en) 2020-10-20 2020-10-20 Method and device for adjusting display fluency and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011130645.9A CN112256223B (en) 2020-10-20 2020-10-20 Method and device for adjusting display fluency and electronic equipment

Publications (2)

Publication Number Publication Date
CN112256223A CN112256223A (en) 2021-01-22
CN112256223B true CN112256223B (en) 2024-04-19

Family

ID=74264958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011130645.9A Active CN112256223B (en) 2020-10-20 2020-10-20 Method and device for adjusting display fluency and electronic equipment

Country Status (1)

Country Link
CN (1) CN112256223B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242397B (en) * 2021-06-02 2022-11-29 北京字节跳动网络技术有限公司 Frame rate adjusting method, device and equipment
CN115705231B (en) * 2021-08-10 2023-10-20 荣耀终端有限公司 Screen display method and terminal equipment
CN113721755B (en) * 2021-09-13 2023-11-21 三星电子(中国)研发中心 Screen power saving method and device
CN114071047B (en) * 2021-10-30 2023-08-29 深圳曦华科技有限公司 Frame rate control method and related device
CN114157824B (en) * 2021-11-29 2023-08-18 联想(北京)有限公司 Control method and electronic equipment
CN114501054B (en) * 2022-02-11 2023-04-21 腾讯科技(深圳)有限公司 Live interaction method, device, equipment and computer readable storage medium
CN117896590A (en) * 2022-06-02 2024-04-16 荣耀终端有限公司 Barrage identification method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874168A (en) * 2017-01-12 2017-06-20 北京奇虎科技有限公司 Determine method, device and the mobile terminal of application program runnability
CN106933526A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of method of dynamic regulation screen refresh rate, device and mobile terminal
CN107102936A (en) * 2017-05-27 2017-08-29 腾讯科技(深圳)有限公司 The appraisal procedure and mobile terminal and storage medium of a kind of fluency
CN108628562A (en) * 2017-03-23 2018-10-09 中科创达软件股份有限公司 A kind of screen refresh method and system
CN110175062A (en) * 2019-05-20 2019-08-27 努比亚技术有限公司 A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN110377251A (en) * 2019-06-06 2019-10-25 努比亚技术有限公司 A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
CN111159042A (en) * 2019-12-31 2020-05-15 可牛网络技术(北京)有限公司 Fluency testing method and device and electronic equipment
CN111444086A (en) * 2020-02-29 2020-07-24 上海大犀角信息科技有限公司 Method and system for estimating fluency of terminal application
CN111583886A (en) * 2020-04-29 2020-08-25 珠海市魅族科技有限公司 Screen refresh rate adjusting method, device, equipment and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007164071A (en) * 2005-12-16 2007-06-28 Toshiba Corp Information processor and method for controlling operation speed
US9124657B2 (en) * 2011-12-14 2015-09-01 International Business Machines Corporation Dynamic screen sharing for optimal performance

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874168A (en) * 2017-01-12 2017-06-20 北京奇虎科技有限公司 Determine method, device and the mobile terminal of application program runnability
CN106933526A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of method of dynamic regulation screen refresh rate, device and mobile terminal
CN108628562A (en) * 2017-03-23 2018-10-09 中科创达软件股份有限公司 A kind of screen refresh method and system
CN107102936A (en) * 2017-05-27 2017-08-29 腾讯科技(深圳)有限公司 The appraisal procedure and mobile terminal and storage medium of a kind of fluency
CN110175062A (en) * 2019-05-20 2019-08-27 努比亚技术有限公司 A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN110377251A (en) * 2019-06-06 2019-10-25 努比亚技术有限公司 A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
CN111159042A (en) * 2019-12-31 2020-05-15 可牛网络技术(北京)有限公司 Fluency testing method and device and electronic equipment
CN111444086A (en) * 2020-02-29 2020-07-24 上海大犀角信息科技有限公司 Method and system for estimating fluency of terminal application
CN111583886A (en) * 2020-04-29 2020-08-25 珠海市魅族科技有限公司 Screen refresh rate adjusting method, device, equipment and medium

Also Published As

Publication number Publication date
CN112256223A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN112256223B (en) Method and device for adjusting display fluency and electronic equipment
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
CN110784754A (en) Video display method and device and electronic equipment
CN110213614B (en) Method and device for extracting key frame from video file
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
US10860280B2 (en) Display method and device
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
CN112256231B (en) Volume control method, device, terminal and storage medium
CN111258736B (en) Information processing method and device and electronic equipment
CN111459364B (en) Icon updating method and device and electronic equipment
CN112053286B (en) Image processing method, device, electronic equipment and readable medium
US11783865B2 (en) Method and apparatus for displaying video playback page, and electronic device and medium
US20240040069A1 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
CN111259636B (en) Document rendering method and device and electronic equipment
CN111596823B (en) Page display method and device and electronic equipment
CN111259291B (en) View display method and device and electronic equipment
CN110809166B (en) Video data processing method and device and electronic equipment
CN112256221A (en) Information display method and device and electronic equipment
CN112307393A (en) Information issuing method and device and electronic equipment
CN111596992A (en) Navigation bar display method and device and electronic equipment
CN111273884A (en) Image display method and device and electronic equipment
CN112636971B (en) Service degradation method and device, electronic equipment and storage medium
CN113905177A (en) Video generation method, device, equipment and storage medium
CN112312224A (en) Information display method and device and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant