CN113674136A - Picture rendering method and device and electronic equipment - Google Patents

Picture rendering method and device and electronic equipment Download PDF

Info

Publication number
CN113674136A
CN113674136A CN202110990690.XA CN202110990690A CN113674136A CN 113674136 A CN113674136 A CN 113674136A CN 202110990690 A CN202110990690 A CN 202110990690A CN 113674136 A CN113674136 A CN 113674136A
Authority
CN
China
Prior art keywords
frame rate
rendering
picture
user
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.)
Pending
Application number
CN202110990690.XA
Other languages
Chinese (zh)
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 Shell Wood Software Co ltd
Original Assignee
Beijing Shell Wood Software 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 Shell Wood Software Co ltd filed Critical Beijing Shell Wood Software Co ltd
Priority to CN202110990690.XA priority Critical patent/CN113674136A/en
Publication of CN113674136A publication Critical patent/CN113674136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • 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/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The application provides a picture rendering method and device and electronic equipment. The method comprises the following steps: acquiring a first operation of a user; determining a rendering strategy corresponding to the first operation based on a preset corresponding relation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations include a first operation; each rendering strategy comprises a frame rate adjusting mode of the picture; and rendering the picture by using the rendering strategy corresponding to the first operation. The method can select a corresponding rendering mode according to the operation of the user, namely, the method for dynamically adjusting the frame rate provided by the embodiment of the application can meet the requirements of energy conservation and power consumption reduction in non-operation time and realize smooth visual feedback achieved by the user in the operation process.

Description

Picture rendering method and device and electronic equipment
Technical Field
The application relates to the technical field of computer software, in particular to a picture rendering method, a picture rendering device and electronic equipment.
Background
In graphics-based computer interaction software (including graphical interface-based applications, image-based screens games, etc.), the screens output for presentation to a user are typically rendered frame-by-frame at a refresh rate to achieve an animation effect. Frame rate is typically measured in Frames Per Second (FPS) refresh, e.g., 60 Frames/Second for frame rate, and 60 Frames for images Per Second refresh. The higher the FPS is, i.e. the more refreshing times per second are, the more coherent and smooth the picture is; otherwise, the more discrete the picture, the more frustrating the display effect will appear.
In order to pursue a smoother and more consistent animation, it is desirable to make the FPS as high as possible, i.e., to make the hardware effort sufficient to render as many frames per second as possible. However, a higher FPS means that the greater the computational load of the hardware, the greater the power consumption. On hardware equipment with limited energy consumption and heat dissipation, such as a smart phone platform, high-load software is operated by using the highest FPS, so that negative results of over-heating, over-high battery power consumption, hardware frequency reduction and the like are brought.
Therefore, a rendering mode of limiting the frame rate is adopted at present, that is, the maximum upper limit of the FPS is artificially limited, and the hardware calculation amount is limited within a certain range, so as to achieve the purpose of reducing the energy consumption, but the mode can affect the consistency of the animation, for example, when a user performs a specific interactive operation which may cause large-area animation, such as fast screen-sliding control of a game lens and fast scrolling of a scrolling area, because the moving speed of the picture pixels is high, the performance is most obviously affected by the edge consistency brought by the FPS.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for rendering a screen, and an electronic device, so as to select a corresponding rendering manner according to an operation of a user, thereby meeting requirements of energy saving and power consumption reduction in non-operation time, and meeting smooth visual feedback achieved by the user in an operation process.
The invention is realized by the following steps:
in a first aspect, an embodiment of the present application provides a method for rendering a screen, where the method includes: acquiring a first operation of a user; determining a rendering strategy corresponding to the first operation based on a preset corresponding relation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations comprise the first operation; each rendering strategy comprises a frame rate adjusting mode of a picture; and rendering the picture according to the rendering strategy corresponding to the first operation.
The embodiment of the application provides a picture rendering mode, after a first operation of a user is obtained, a rendering strategy corresponding to the first operation is determined based on a preset corresponding relation, and then a picture is rendered according to the corresponding rendering strategy. The method can select a corresponding rendering mode according to the operation of the user, namely, the method for dynamically adjusting the frame rate provided by the embodiment of the application can meet the requirements of energy conservation and power consumption reduction in non-operation time and realize smooth visual feedback achieved by the user in the operation process.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the types of the adjustment manner include keeping the frame rate unchanged, increasing the frame rate, and decreasing the frame rate.
In the embodiment of the present application, the types of the adjustment manner include three types, namely, keeping the frame rate unchanged, increasing the frame rate, and decreasing the frame rate. By the three types of adjustment modes, the frame rate can be dynamically adjusted.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, when an adjustment manner of the rendering policy corresponding to the first operation is to increase the frame rate, before the rendering the picture with the rendering policy corresponding to the first operation, the method further includes: acquiring hardware information of the electronic equipment presenting the picture; determining frame rate information corresponding to the hardware information; determining a first frame rate corresponding to the first operation based on the frame rate information; wherein the first frame rate is less than a highest frame rate of the electronic device; correspondingly, the rendering the picture by the rendering strategy corresponding to the first operation includes: rendering the picture at the first frame rate.
In the embodiment of the present application, when the adjustment mode is to increase the frame rate, the hardware information of the electronic device presenting the frame is also used as a reference to determine a specific value to which the frame rate is increased. By the method, the improved frame rate value can be ensured to accord with the hardware processing capacity of the current electronic equipment, and the negative effects of overlarge power consumption or frequency reduction blocking and the like of the electronic equipment caused by the fact that the improved frame rate exceeds the highest frame rate of the electronic equipment are avoided.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, when an adjustment manner of the rendering policy corresponding to the first operation is to reduce the frame rate, before the rendering the picture with the rendering policy corresponding to the first operation, the method further includes: acquiring hardware information of the electronic equipment presenting the picture; determining frame rate information corresponding to the hardware information; determining a second frame rate corresponding to the first operation based on the frame rate information; wherein the second frame rate is greater than or equal to a lowest frame rate of the electronic device; correspondingly, the rendering the picture by the rendering strategy corresponding to the first operation includes: rendering the picture at the second frame rate.
In the embodiment of the present application, when the adjustment mode is to reduce the frame rate, the hardware information of the electronic device presenting the frame is also used as a reference to determine a specific value to which the frame rate is reduced. By the method, the reduced frame rate value can be guaranteed to be in accordance with the hardware processing capacity of the current electronic equipment, for example, the hardware processing capacity of the electronic equipment is better, the reduced frame rate can also be kept at a higher value, and when the hardware processing capacity of the electronic equipment is lower, the reduced frame rate is allocated to a lower value. The above method can determine different reduced frame rate values according to different electronic devices, thereby improving the user experience.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the first operation is a screen dragging operation; and the adjustment mode of the rendering strategy corresponding to the picture dragging operation is the frame rate increasing.
In the embodiment of the present application, if the first operation of the user is a screen dragging operation, it indicates that the user is adjusting the screen at this time, and at this time, the frame rate is increased to ensure continuity and smoothness of the screen display.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the determining, by the first operation, a rendering policy corresponding to the first operation based on a preset correspondence relationship includes: acquiring the dragging rate of the user for dragging the picture; and when the dragging rate of the picture dragged by the user is greater than the preset rate, determining that the adjustment mode of the rendering strategy corresponding to the first operation is the frame rate increasing mode.
In the embodiment of the present application, if the first operation of the user is a screen dragging operation, a dragging rate of the user needs to be determined, and the frame rate is increased only when the dragging rate is greater than a preset rate. It should be noted that, because the low frame rate can also ensure that the frames when the user drags the animation surface smoothly are consecutive, the preset rate is set here to distinguish whether to increase the frame rate, which not only can reduce the power consumption when the user drags the animation surface smoothly, but also can realize the smooth visual feedback achieved by the user in the process of dragging the frame rapidly.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the determining, based on a preset correspondence, a rendering policy corresponding to the first operation includes: acquiring the corresponding relation through a preset operation mapping table; the operation mapping table comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; and determining a rendering strategy corresponding to the first operation based on the corresponding relation.
In the embodiment of the application, a plurality of user operations and rendering strategies corresponding to the user operations one by one are conveniently stored through a preset operation mapping table.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the operation mapping table further includes a type of each user operation.
In the embodiment of the application, the type of each user operation is added in the operation mapping table so as to classify the user operation.
In a second aspect, an embodiment of the present application provides a screen rendering apparatus, where the apparatus includes: the acquisition module is used for acquiring a first operation of a user; the determining module is used for determining a rendering strategy corresponding to the first operation based on a preset corresponding relation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations comprise the first operation; each rendering strategy comprises a frame rate adjusting mode of a picture; and the rendering module is used for rendering the picture by using the rendering strategy corresponding to the first operation.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory, the processor and the memory connected; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform a method as provided in the above-described first aspect embodiment and/or in combination with some possible implementations of the above-described first aspect embodiment.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the method as set forth in the above first aspect embodiment and/or in combination with some possible implementations of the above first aspect embodiment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating steps of a method for rendering a screen according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating steps of another screen rendering method according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a screen rendering apparatus according to an embodiment of the present disclosure.
Icon: 100-an electronic device; 110-a processor; 120-a memory; 130-display screen; 200-picture rendering means; 210-an obtaining module; 220-a determination module; 230-rendering module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, a schematic structural block diagram of an electronic device 100 applying a method and an apparatus for rendering a screen according to an embodiment of the present disclosure is shown. In the embodiment of the present application, the electronic Device 100 may be, but is not limited to, a Personal Computer (PC), a smart phone, a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. Structurally, electronic device 100 may include a processor 110, a memory 120, and a display screen 130.
The processor 110 is electrically connected to the memory 120 and the display screen 130 directly or indirectly to transmit or interact data, for example, the components can be electrically connected to each other through one or more communication buses or signal lines. The screen rendering apparatus includes at least one software module that may be stored in the memory 120 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the electronic device 100. The processor 110 is configured to execute executable modules stored in the memory 120, such as software functional modules and computer programs included in the screen rendering apparatus, so as to implement the screen rendering method. The processor 110 may execute the computer program upon receiving the execution instruction.
The processor 110 may be an integrated circuit chip having signal processing capabilities. The Processor 110 may also be a general-purpose Processor, for example, a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, or a discrete hardware component, which may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. Further, a general purpose processor may be a microprocessor or any conventional processor or the like.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), and an electrically Erasable Programmable Read-Only Memory (EEPROM). The memory 120 is used for storing a program, and the processor 110 executes the program after receiving the execution instruction.
The display screen 130 is used for presentation of pictures. The display screen 130 may be, but is not limited to, a liquid crystal screen, an OLED (Organic Light-Emitting semiconductor) screen, a TFT (Thin Film Transistor) screen.
It should be noted that the structure shown in fig. 1 is only an illustration, and the electronic device 100 provided in the embodiment of the present application may also have fewer or more components than those shown in fig. 1, or have a different configuration than that shown in fig. 1. Further, the components shown in fig. 1 may be implemented by software, hardware, or a combination thereof.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a screen rendering method according to an embodiment of the present disclosure, where the method is applied to the electronic device 100 shown in fig. 1. It should be noted that, the screen rendering method provided in the embodiment of the present application is not limited by the sequence shown in fig. 2 and the following, and the method includes: step S101-step S103.
Step S101: a first operation of a user is acquired.
Step S102: determining a rendering strategy corresponding to the first operation based on a preset corresponding relation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations include a first operation; each rendering strategy comprises a mode of adjusting the frame rate of the picture.
Wherein, the user operation includes but is not limited to: opening a menu operation, closing the menu operation, opening a battle simulation operation, closing the battle simulation operation, dragging a picture operation (when the method is applied to game software, dragging a picture can mean dragging a game map), and ending the picture dragging operation.
And the first operation by the user may be any one of the above-described user operations.
After the electronic equipment acquires the first operation of the user, the rendering strategy corresponding to the first operation is determined based on the preset corresponding relation.
The preset correspondence relationship may be stored in the electronic device, or may be stored in a server to which the software corresponds.
Taking the game software as an example, after the user downloads the game software in the electronic device, the downloaded configuration file may include the corresponding relationship, so that when the electronic device runs the game software to obtain the first operation of the user, the electronic device may directly obtain the corresponding relationship from the stored configuration file to determine the rendering policy corresponding to the first operation. And when the corresponding relation is stored in the server corresponding to the game software, the electronic equipment calls the corresponding relation through the server to determine the rendering strategy corresponding to the first operation when the electronic equipment runs the game software to acquire the first operation of the user.
The rendering strategy comprises a mode of adjusting the frame rate of the picture. In the embodiment of the present application, the types of the adjustment manner include keeping the frame rate unchanged, increasing the frame rate, and decreasing the frame rate. By the three types of adjustment modes, the frame rate can be dynamically adjusted.
The adjustment mode corresponds to user operation. For example, the adjustment mode corresponding to the menu opening operation is to keep the frame rate unchanged, the adjustment mode corresponding to the menu closing operation is to keep the frame rate unchanged, the adjustment mode corresponding to the battle opening simulation operation is to increase the frame rate, the adjustment mode corresponding to the battle closing simulation operation is to decrease the frame rate, the adjustment mode corresponding to the picture dragging operation is to increase the frame rate, and the adjustment mode corresponding to the picture dragging operation is to end the frame rate dropping.
It should be noted that, if the first operation of the user is a screen dragging operation, it indicates that the user is adjusting the screen at this time, and at this time, the frame rate may be directly increased to ensure continuity and smoothness of the screen display.
Of course, if the first operation of the user is a screen dragging operation, the rendering strategy can be further determined according to the dragging rate. That is, when the first operation is a screen dragging operation, step S102 may specifically include: acquiring the dragging rate of a user for dragging a picture; and when the dragging rate of the picture dragged by the user is greater than the preset rate, determining the adjustment mode of the rendering strategy corresponding to the first operation as the frame rate increasing mode.
At this time, the corresponding relationship includes the dragging rate. Illustratively, the drag screen operation includes: dragging the screen at a dragging rate greater than a preset rate and dragging the screen at a dragging rate not greater than the preset rate. Correspondingly, the frame rate is increased by dragging the picture at a dragging rate greater than the preset rate in a corresponding adjusting mode; and dragging the picture at a dragging rate not greater than the preset rate to keep the frame rate unchanged.
The low frame rate can also ensure that the pictures are continuous when the user drags the animation surface smoothly, so that the preset rate is set to distinguish whether the frame rate is increased or not, the power consumption of the user when the animation surface is dragged smoothly can be reduced, and smooth visual feedback achieved by the user in the process of dragging the pictures quickly is also realized.
The preset rate can be determined according to actual requirements. The calculation formula of the preset rate may be a difference value/moving time for moving the target object from the pixel coordinate a to the pixel coordinate B in the frame, and the application is not limited thereto.
In other embodiments, the types of adjustment manners may also include only two types, i.e., increasing the frame rate and decreasing the frame rate, and the present application is not limited thereto.
Optionally, the correspondence may be stored in a table manner, that is, step S102 may further specifically include: acquiring a corresponding relation through a preset operation mapping table; the operation mapping table comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; and determining a rendering strategy corresponding to the first operation based on the corresponding relation.
Wherein, the operation mapping table can refer to table one.
Watch 1
User operation Rendering strategy
Opening menu operation Keeping frame rate unchanged
Closing menu operations Keeping frame rate unchanged
Open combat simulation Increasing frame rate
Closing combat simulation operation Reducing frame rate
Dragging a screen operation Increasing frame rate
Ending the drag operation Reducing frame rate
...... ......
In table one, the first column is the user operation, and the second column is the rendering policy. In table one, each user operation corresponds to a uniquely determined rendering policy. And then, the rendering strategy (i.e., the corresponding relationship) corresponding to each user operation can be obtained through the first table.
After the electronic equipment obtains the first operation of the user, the corresponding relation can be determined according to the first table, and then the rendering strategy corresponding to the first operation is determined in a table look-up mode.
It should be noted that the user operation and the rendering policy in table one are only examples, and in a specific application, the user operation and the rendering policy corresponding to the user operation may be set according to requirements.
Optionally, the operation mapping table may further include a type of each user operation. For the improvement of the operation mapping table, refer to table two.
Watch two
User operation Type (B) Rendering strategy
Opening menu operation Click on Keeping frame rate unchanged
Closing menu operations Click on Keeping frame rate unchanged
Open combat simulation Click on Increasing frame rate
Closing combat simulation operation Click on Reducing frame rate
Dragging a screen operation Dragging Increasing frame rate
Ending the drag operation Dragging Reducing frame rate
...... ...... ......
In the second table, the first column is the user operation, the second column is the type of the user operation, for example, the type corresponding to the menu opening operation is clicking, and the type corresponding to the picture dragging operation is dragging. The third column is the rendering strategy. In table two, each user operation corresponds to a uniquely determined rendering policy and type. The type of each user operation is added in the operation mapping table so as to classify the user operation.
Optionally, the correspondence may also be stored in a tag manner. For example, each user operation is marked with a label, such as label a representing keeping the frame rate unchanged, label B representing increasing the frame rate, and label C representing decreasing the frame rate. And setting the corresponding relation between the user operation and the rendering strategy in a label mode.
Step S103: and rendering the picture by using the rendering strategy corresponding to the first operation.
After the rendering strategy corresponding to the first operation is determined through step S102, the picture may be rendered according to the rendering strategy corresponding to the first operation.
Illustratively, when the adjustment mode of the rendering policy corresponding to the first operation is to increase the frame rate, the frame rate is increased based on the current frame rate. And when the adjustment mode of the rendering strategy corresponding to the first operation is to reduce the frame rate, reducing the value of the frame rate on the basis of the current frame rate. And when the adjustment mode of the rendering strategy corresponding to the first operation is to keep the frame rate unchanged, rendering the picture at the current frame rate.
It should be noted that, when the software runs initially, the rendering is performed at a lower frame rate by default. For example, the normal frame rate is set to 30 frames/second and the high frame rate is set to 60 frames/second. And when the software is initially operated, rendering the image at the normal frame rate of 30 frames/second, acquiring a first operation of a user in the operation process, if the adjustment mode of the rendering strategy corresponding to the first operation of the user is to increase the frame rate, adjusting the frame rate to the high frame rate of 60 frames/second, and rendering the image at the high frame rate of 60 frames/second. And if the adjustment mode of the rendering strategy corresponding to the first operation of the subsequent user is to reduce the frame rate, reducing the frame rate to the normal frame rate of 30 frames/second, and further rendering the picture at the normal frame rate of 30 frames/second.
Referring to fig. 3, optionally, when the adjustment manner of the rendering policy corresponding to the first operation is to increase the frame rate, before the step S103, the method further includes: step S201-step S203.
Step S201: hardware information of an electronic device presenting a screen is acquired.
In the embodiment of the present application, the hardware information of the electronic device is the model of the electronic device, for example, when the electronic device is a mobile phone, the model of the mobile phone is obtained. Of course, the hardware information of the electronic device may also be a model of a processor of the electronic device, and the like, and the application is not limited.
Step S202: and determining frame rate information corresponding to the hardware information.
The frame rate information corresponding to the hardware information may be a specific numerical value or a numerical value interval, for example, the high frame rate (frame rate information) corresponding to the electronic device of the model a may be a numerical value such as 50 frames/second or 60 frames/second, and the high frame rate (frame rate information) corresponding to the electronic device of the model a may be a numerical value interval such as 50 to 60 frames/second or greater than or equal to 60 frames/second. The frame rate information corresponding to the electronic devices of different models is also different. For example, the high frame rate (frame rate information) corresponding to the electronic device with high performance may be 120 frames/second or more than or equal to 60 frames/second, and the high frame rate (frame rate information) corresponding to the electronic device with low performance may be 60 frames/second or 50-60 frames/second.
Step S203: determining a first frame rate corresponding to the first operation based on the frame rate information; wherein the first frame rate is less than the highest frame rate of the electronic device.
Finally, based on the frame rate information, a first frame rate corresponding to the first operation can be determined. When the frame rate information is a specific value, the first frame rate is the specific value, for example, when the high frame rate (frame rate information) corresponding to the electronic device of the model a is 60 frames/second, the determined first frame rate corresponding to the first operation is 60 frames/second. When the frame rate information is a value interval, the first frame rate may be any value within the interval (which may be determined randomly or as an endpoint value of the value interval). For example, when the high frame rate (frame rate information) corresponding to the electronic device of model a is 60 to 120 frames/second, the first frame rate may be any value of 60 to 120 frames/second. Such as a first frame rate of 60 frames/second, 80 frames/second, 100 frames/second, etc.
It should be noted that the first frame rate should be less than the highest frame rate of the electronic device. For example, when the high frame rate (frame rate information) corresponding to the electronic device of the model a is equal to or greater than 60 frames/second, the first frame rate may be any value from 60 frames/second to the highest frame rate. The highest frame rate is determined by the performance of the electronic device itself.
After the first frame rate is determined, the picture may be rendered at the first frame rate.
It can be seen that, in the embodiment of the present application, when the adjustment mode is to increase the frame rate, the hardware information of the electronic device presenting the picture is also used as a reference to determine a specific value to which the frame rate is increased. By the method, the improved frame rate value can be ensured to accord with the hardware processing capacity of the current electronic equipment, and the negative effects of overlarge power consumption or frequency reduction blocking and the like of the electronic equipment caused by the fact that the improved frame rate exceeds the highest frame rate of the electronic equipment are avoided.
Optionally, when the adjustment manner of the rendering policy corresponding to the first operation is to reduce the frame rate, before step S103, the method further includes: acquiring hardware information of electronic equipment presenting a picture; determining frame rate information corresponding to the hardware information; determining a second frame rate corresponding to the first operation based on the frame rate information; and the second frame rate is greater than or equal to the lowest frame rate of the electronic equipment.
In this embodiment, the hardware information of the electronic device is a model of the electronic device, for example, when the electronic device is a mobile phone, the model of the mobile phone is obtained. Of course, the hardware information of the electronic device may also be a model of a processor of the electronic device, and the like, and the application is not limited.
In the above step, the frame rate information corresponding to the hardware information may be a specific numerical value or a numerical value interval, for example, the low frame rate (frame rate information) corresponding to the electronic device of the model B may be a numerical value such as 30 frames/second or 40 frames/second, and the low frame rate (frame rate information) corresponding to the electronic device of the model B may be a numerical value interval such as 30 to 40 frames/second or 30 to 35 frames/second. The frame rate information corresponding to the electronic devices of different models is also different. For example, the low frame rate (frame rate information) corresponding to the electronic device with high performance may be 40 frames/second or 35-40 frames/second, and the low frame rate (frame rate information) corresponding to the electronic device with low performance may be 30 frames/second or 30-40 frames/second.
Finally, a second frame rate corresponding to the first operation can be determined based on the frame rate information. When the frame rate information is a specific value, the second frame rate is the specific value, for example, when the low frame rate (frame rate information) corresponding to the electronic device of the model B is 30 frames/second, the determined second frame rate corresponding to the first operation is 30 frames/second. When the frame rate information is a value interval, the second frame rate may be any value within the interval (which may be determined randomly or as an endpoint value of the value interval). For example, when the low frame rate (frame rate information) corresponding to the electronic device of the model B is 30 to 35 frames/second, the second frame rate may be any value of 30 to 35 frames/second. Such as a first frame rate of 30 frames/second, 32 frames/second, etc.
The second frame rate is equal to or higher than the lowest frame rate of the electronic device. Typically, frame rate 30 is set to the lowest frame rate of the electronic device.
After the second frame rate is determined, the picture can be rendered at the second frame rate.
In the embodiment of the present application, when the adjustment mode is to reduce the frame rate, the hardware information of the electronic device presenting the frame is also used as a reference to determine a specific value to which the frame rate is reduced. By the method, the reduced frame rate value can be guaranteed to be in accordance with the hardware processing capacity of the current electronic equipment, for example, the hardware processing capacity of the electronic equipment is better, the reduced frame rate can also be kept at a higher value, and when the hardware processing capacity of the electronic equipment is lower, the reduced frame rate is allocated to a lower value. The above method can determine different reduced frame rate values according to different electronic devices, thereby improving the user experience.
Optionally, in this embodiment of the present application, a hardware-frame rate correspondence table may be pre-constructed, and then frame rate information corresponding to the hardware information is determined through the hardware-frame rate correspondence table. The table of the hardware-frame rate correspondence is shown in table three.
Watch III
Hardware information High frame rate (unit: frame/second) Low frame rate (unit: frame/second)
A Greater than or equal to 60 30
B 80~100 30~40
C 70 30
D 60 30~35
E 60 30
In table three, the first column is hardware information of different electronic devices. Wherein, the hardware information may be the model of the electronic device, that is, A, B, C, D, E represents five different models of electronic devices respectively. The second column is frame rate information (high frame rate) corresponding to the electronic device, that is, when the rendering policy corresponding to the first operation is adjusted to increase the frame rate, the first column and the second column may be referred to. The third column is frame rate information (low frame rate) corresponding to the electronic device, that is, when the rendering policy corresponding to the first operation is adjusted to lower the frame rate, the first column and the third column may be referred to.
In summary, the embodiment of the present application provides a picture rendering method, after a first operation of a user is obtained, a rendering policy corresponding to the first operation is determined based on a preset correspondence, and then a picture is rendered according to the corresponding rendering policy. The method can select a corresponding rendering mode according to the operation of the user, namely, the method for dynamically adjusting the frame rate provided by the embodiment of the application can meet the requirements of energy conservation and power consumption reduction in non-operation time and realize smooth visual feedback achieved by the user in the operation process. In addition, in a specific practical process, the scheme can enable specific software to obtain operation feedback experience which is almost the same as that of a high energy consumption state on the premise of low energy consumption, and remarkably reduces the phenomena of hardware heating, frequency reduction and the like of electronic equipment.
Referring to fig. 4, based on the same inventive concept, an embodiment of the present application further provides a screen rendering apparatus 200, including: an acquisition module 210, a determination module 220, and a rendering module 230.
The obtaining module 210 is configured to obtain a first operation of a user.
A determining module 220, configured to determine, based on a preset correspondence, a rendering policy corresponding to the first operation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations comprise the first operation; each rendering strategy comprises a frame rate adjusting mode of a picture;
and the rendering module 230 is configured to render the screen according to the rendering policy corresponding to the first operation.
Optionally, the types of adjustment modes include keeping the frame rate unchanged, increasing the frame rate, and decreasing the frame rate.
Optionally, the apparatus further comprises a frame rate determining module; when the adjustment mode of the rendering strategy corresponding to the first operation is the frame rate increase, a frame rate determination module is used for acquiring hardware information of the electronic device presenting the picture before the picture is rendered by the rendering strategy corresponding to the first operation; determining frame rate information corresponding to the hardware information; determining a first frame rate corresponding to the first operation based on the frame rate information; wherein the first frame rate is less than a highest frame rate of the electronic device.
Correspondingly, the rendering module 230 is further configured to render the picture at the first frame rate.
Optionally, when the adjustment manner of the rendering policy corresponding to the first operation is to reduce the frame rate, the frame rate determination module is further configured to obtain hardware information of the electronic device presenting the picture before the picture is rendered by the rendering policy corresponding to the first operation; determining frame rate information corresponding to the hardware information; determining a second frame rate corresponding to the first operation based on the frame rate information; wherein the second frame rate is greater than or equal to a lowest frame rate of the electronic device.
Correspondingly, the rendering module 230 is further configured to render the picture at the second frame rate.
Optionally, the first operation is a screen dragging operation; and the adjustment mode of the rendering strategy corresponding to the picture dragging operation is the frame rate increasing.
Optionally, the first operation is a screen dragging operation; the determining module 220 is further configured to obtain a dragging rate at which the user drags the screen; and when the dragging rate of the picture dragged by the user is greater than the preset rate, determining that the adjustment mode of the rendering strategy corresponding to the first operation is the frame rate increasing mode.
Optionally, the determining module 220 is further configured to obtain the corresponding relationship through a preset operation mapping table; the operation mapping table comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; and determining a rendering strategy corresponding to the first operation based on the corresponding relation.
Optionally, the operation mapping table further includes a type of each of the user operations.
It should be noted that, as those skilled in the art can clearly understand, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Based on the same inventive concept, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the computer program performs the methods provided in the above embodiments.
The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for rendering a screen, the method comprising:
acquiring a first operation of a user;
determining a rendering strategy corresponding to the first operation based on a preset corresponding relation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations comprise the first operation; each rendering strategy comprises a frame rate adjusting mode of a picture;
and rendering the picture according to the rendering strategy corresponding to the first operation.
2. The method of claim 1, wherein the type of adjustment comprises keeping a frame rate unchanged, increasing a frame rate, and decreasing a frame rate.
3. The method according to claim 2, wherein when the adjustment manner of the rendering policy corresponding to the first operation is to increase the frame rate, before the rendering the screen with the rendering policy corresponding to the first operation, the method further comprises:
acquiring hardware information of the electronic equipment presenting the picture;
determining frame rate information corresponding to the hardware information;
determining a first frame rate corresponding to the first operation based on the frame rate information; wherein the first frame rate is less than a highest frame rate of the electronic device;
correspondingly, the rendering the picture by the rendering strategy corresponding to the first operation includes:
rendering the picture at the first frame rate.
4. The method according to claim 2, wherein when the adjustment manner of the rendering policy corresponding to the first operation is the frame rate reduction, before the rendering of the screen with the rendering policy corresponding to the first operation, the method further comprises:
acquiring hardware information of the electronic equipment presenting the picture;
determining frame rate information corresponding to the hardware information;
determining a second frame rate corresponding to the first operation based on the frame rate information; wherein the second frame rate is greater than or equal to a lowest frame rate of the electronic device;
correspondingly, the rendering the picture by the rendering strategy corresponding to the first operation includes:
rendering the picture at the second frame rate.
5. The method according to claim 2, wherein the first operation is a drag screen operation; and the adjustment mode of the rendering strategy corresponding to the picture dragging operation is the frame rate increasing.
6. The method according to claim 2, wherein the first operation is a screen dragging operation, and the determining a rendering policy corresponding to the first operation based on a preset correspondence comprises:
acquiring the dragging rate of the user for dragging the picture;
and when the dragging rate of the picture dragged by the user is greater than the preset rate, determining that the adjustment mode of the rendering strategy corresponding to the first operation is the frame rate increasing mode.
7. The method according to claim 1, wherein the determining a rendering policy corresponding to the first operation based on a preset correspondence comprises:
acquiring the corresponding relation through a preset operation mapping table; the operation mapping table comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one;
and determining a rendering strategy corresponding to the first operation based on the corresponding relation.
8. The method of claim 7, wherein the operation mapping table further comprises a type of each of the user operations.
9. A picture rendering apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a first operation of a user;
the determining module is used for determining a rendering strategy corresponding to the first operation based on a preset corresponding relation; the corresponding relation comprises a plurality of user operations and rendering strategies corresponding to the user operations one by one; the plurality of user operations comprise the first operation; each rendering strategy comprises a frame rate adjusting mode of a picture;
and the rendering module is used for rendering the picture by using the rendering strategy corresponding to the first operation.
10. An electronic device, comprising: a processor and a memory, the processor and the memory connected;
the memory is used for storing programs;
the processor is configured to execute a program stored in the memory to perform the method of any of claims 1-8.
CN202110990690.XA 2021-08-26 2021-08-26 Picture rendering method and device and electronic equipment Pending CN113674136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110990690.XA CN113674136A (en) 2021-08-26 2021-08-26 Picture rendering method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110990690.XA CN113674136A (en) 2021-08-26 2021-08-26 Picture rendering method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113674136A true CN113674136A (en) 2021-11-19

Family

ID=78546834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110990690.XA Pending CN113674136A (en) 2021-08-26 2021-08-26 Picture rendering method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113674136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023125553A1 (en) * 2021-12-28 2023-07-06 维沃移动通信有限公司 Frame interpolation method and apparatus and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831209A (en) * 2012-08-13 2012-12-19 优视科技有限公司 Rendering method and rendering device for webpage browsing and mobile terminal
US20150066433A1 (en) * 2013-08-30 2015-03-05 Google Inc. Measuring user interface performance consistency
CN110681155A (en) * 2019-09-29 2020-01-14 Oppo广东移动通信有限公司 Game optimization method, game optimization device and mobile terminal
CN111327762A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Operation track display method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831209A (en) * 2012-08-13 2012-12-19 优视科技有限公司 Rendering method and rendering device for webpage browsing and mobile terminal
US20150066433A1 (en) * 2013-08-30 2015-03-05 Google Inc. Measuring user interface performance consistency
CN110681155A (en) * 2019-09-29 2020-01-14 Oppo广东移动通信有限公司 Game optimization method, game optimization device and mobile terminal
CN111327762A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Operation track display method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023125553A1 (en) * 2021-12-28 2023-07-06 维沃移动通信有限公司 Frame interpolation method and apparatus and electronic device

Similar Documents

Publication Publication Date Title
US10698559B2 (en) Method and apparatus for displaying content on same screen, and terminal device
CN104932659B (en) Image display method and display system
US20160232643A1 (en) Application-transparent resolution control by way of command stream interception
JP5698992B2 (en) Power saving display information conversion system and method
CN110928695A (en) Management method and device for video memory and computer storage medium
WO2020073672A1 (en) Resource scheduling method and terminal device
JP2009288795A (en) Switching display update properties upon detecting power management event
US20100162161A1 (en) Smooth pixel-based scrolling in a user interface control
WO2018119575A1 (en) Display method and electronic device
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
CN110020300B (en) Browser page synthesis method and terminal
US20190325562A1 (en) Window rendering method and terminal
Ham et al. {LPD}: Low Power Display Mechanism for Mobile and Wearable Devices
WO2018141228A1 (en) Content-aware energy savings for video streaming and playback on mobile devices
WO2021223526A1 (en) Gamma debugging method and apparatus
WO2021135683A1 (en) Display terminal adjustment method and display terminal
US11307746B2 (en) Image manipulation
CN113674136A (en) Picture rendering method and device and electronic equipment
Lin et al. Duet: an OLED & GPU co-management scheme for dynamic resolution adaptation
CN108154463B (en) Method for managing modeled GPU (graphics processing Unit) video memory system
Lin et al. ShiftMask: Dynamic OLED power shifting based on visual acuity for interactive mobile applications
Hong et al. 3 channel dependency-based power model for mobile AMOLED displays
US20210280156A1 (en) Dynamic refresh rate adjustment
KR102234795B1 (en) Method of processing image data and display system for display power reduction
US20180102107A1 (en) Adaptive brightness control for dark display content

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