Interface switching method, device, electronic device and readable storage medium

By predicting the bandwidth consumption of interface switching and generating decimation configurations, the problem of excessive resource usage during complex interface switching in Android system is solved, and the smoothness and picture quality of interface switching is improved.

CN114816630BActive Publication Date: 2024-11-12ALLWINNER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210404287.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-11-12
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In Android system, when switching between complex application windows, due to the large number of layers and large amount of data, the system resource occupies too high, which makes it easy for the display driver to take too long to access data from the memory and cannot be sent to the screen in time. The problem of causing screens is more common, especially in low-cost solutions.

Method used

By obtaining the first frame rate and preset time of the interface to be displayed, bandwidth consumption is predicted, and the decimation configuration is generated based on bandwidth consumption, the layers are reduced, intercepted or merged, and memory access is reduced, thereby saving bandwidth when switching complex interfaces , improves fluency.

Benefits of technology

When switching complex interfaces, bandwidth is saved through decimation actions, the interface display efficiency and fluency is improved, and unnecessary decimation is avoided when the memory is sufficient, ensuring the image quality of interface switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816630B_ABST
    Figure CN114816630B_ABST
Patent Text Reader

Abstract

The present invention provides an interface switching method, device, electronic device and storage medium, the interface switching method comprising: in response to an interface switching request, obtaining a first frame rate and a first preset time of an interface to be displayed, the first preset time being used to characterize the time difference between two consecutive interface switching requests; predicting a first bandwidth consumption of the interface to be displayed according to the first frame rate and the first preset time; generating an extraction configuration for the interface to be displayed according to the first bandwidth consumption; and performing extraction on the layer of the interface to be displayed according to the extraction configuration, and performing display of the extracted interface to be displayed. The present invention performs analysis on the problem of insufficient bandwidth generated when the interface is switched, and when switching a complex interface, performs extraction to save bandwidth, thereby improving the display efficiency and fluency of the interface; and when the memory is sufficient, extraction is not performed for static interfaces or switching actions with less consumption, thereby ensuring the image quality of the interface switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an interface switching method, device, electronic device and readable storage medium. Background Art

[0002] On the Android system, when a complex application window switches to another application window, because there are many layers, switching animations are required, and the interface layer has a larger data volume than the video layer, the system resources are very large, especially the memory bandwidth resources. At this time, it is often easy for the display driver to take too long to fetch data from the memory, and it cannot be sent to the screen in time, resulting in a distorted screen. This problem is often encountered, especially in low-cost solutions with low memory capacity and frequency, which is more likely to occur.

[0003] In the past, the HWC preliminarily estimated whether the total bandwidth of the Android display layer had exceeded the dangerous value. When it exceeded the dangerous value, the GPU forced synthesis was used to slow down the system frame rate and reduce the bandwidth of the display driver to access data from the memory, so as to create the illusion that the display driver can access data in time and avoid screen distortion. The disadvantage is also obvious, that is, users can see that the interface is particularly stuck when switching. Summary of the invention

[0004] The main purpose of the embodiments of the present invention is to provide an interface switching method, device, electronic device and storage medium, which improve the fluency of interface switching.

[0005] One aspect of the present invention provides an interface switching method, characterized by comprising:

[0006] In response to an interface switching request, obtaining a first frame rate and a first preset time of an interface to be displayed, wherein the first preset time is used to represent a time difference between two consecutive interface switching requests;

[0007] predicting a first bandwidth consumption of the interface to be displayed according to the first frame rate and a first preset time;

[0008] generating an extraction configuration for the interface to be displayed according to the first bandwidth consumption;

[0009] According to the extraction configuration, the layer of the interface to be displayed is extracted, and the extracted interface to be displayed is displayed.

[0010] According to some embodiments of the present invention, in response to the interface switching request, obtaining a first frame rate of the interface to be displayed includes:

[0011] Receive the interface switching request sent by the application, obtain the first preset time, and determine the first frame rate according to the time difference, wherein the first frame rate=1s / first preset time, s is seconds.

[0012] According to some embodiments of the present invention, predicting a first bandwidth consumption of the to-be-displayed interface according to the first frame rate and the first preset time includes:

[0013] All the layers of the interface to be displayed are obtained, and the first bandwidth consumption is determined according to the product of the pixel format data volume of each layer, the width and height of the display interface, and the first frame rate.

[0014] According to some embodiments of the present invention, generating an extraction configuration for the to-be-displayed interface according to the first bandwidth consumption includes:

[0015] If the first bandwidth consumption is greater than the preset bandwidth consumption, the extraction configuration is generated by the parameters and extraction method of each layer of the interface to be displayed and sent to the display driver, where the parameters of the layer include the width and height of the layer.

[0016] According to some embodiments of the present invention, the extraction method includes:

[0017] At least one of reduction and interception is performed on each of the layers, the obtained multiple layers are merged, and the layers are enlarged in the display driver.

[0018] According to some embodiments of the present invention, the method further comprises:

[0019] If the first bandwidth consumption is less than or equal to the preset bandwidth consumption;

[0020] The first frame rate is adjusted to a second frame rate, and the parameters of the layer are kept unchanged and sent to the display driver for display, the second frame rate is greater than the first frame rate, and the second bandwidth consumption when displaying the interface to be switched at the second frame rate is less than or equal to the preset bandwidth consumption, and the preset bandwidth consumption is greater than half of the total memory.

[0021] According to some embodiments of the invention, the first frame rate is configured to be less than 500 milliseconds.

[0022] Another aspect of an embodiment of the present invention provides an interface switching device, comprising:

[0023] A frame rate calculation module, used to obtain a first frame rate and a first preset time of the interface to be displayed according to the interface switching request, wherein the first preset time is used to represent a time difference between two consecutive interface switching requests;

[0024] a bandwidth consumption prediction module, configured to predict a first bandwidth consumption of the interface to be displayed according to the first frame rate and a first preset time;

[0025] An extraction configuration module, configured to generate an extraction configuration for the interface to be displayed according to the first bandwidth consumption;

[0026] The display module is used to extract the layer of the interface to be displayed according to the extraction configuration, and display the extracted interface to be displayed.

[0027] Another aspect of an embodiment of the present invention provides an electronic device, including a processor and a memory;

[0028] The memory is used to store programs;

[0029] The processor executes the program to implement the method described above.

[0030] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method described above.

[0031] The embodiment of the present invention first responds to the interface switching request, obtains the first frame rate and the first preset time of the interface to be displayed; predicts the first bandwidth consumption of the interface to be displayed according to the first frame rate and the first preset time; generates an extraction configuration for the interface to be displayed according to the first bandwidth consumption; and performs extraction on the layer of the interface to be displayed according to the extraction configuration, and displays the extracted interface to be displayed. The present invention performs analysis on the problem of insufficient bandwidth generated when the interface is switched. When switching complex interfaces, the extraction action will save bandwidth, thereby improving the display efficiency and smoothness of the interface; and when the memory is sufficient, the static interface or the switching action with less consumption will not perform extraction, thereby ensuring the image quality of the interface switching.

[0032] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0034] Figure 1 It is a flowchart of the interface switching method according to an embodiment of the present invention.

[0035] Figure 2 It is a flowchart of interface extraction according to an embodiment of the present invention.

[0036] Figure 3It is a schematic diagram of interface extraction of an embodiment of the present invention.

[0037] Figure 4 It is a schematic diagram of the process of interface-free extraction according to an embodiment of the present invention.

[0038] Figure 5 It is a schematic diagram of interface-free extraction according to an embodiment of the present invention.

[0039] Figure 6 It is a process intention that satisfies interface extraction in an embodiment of the present invention.

[0040] Figure 7 2 is a diagram of an interface switching device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. In the subsequent description, the use of suffixes such as "module", "component" or "unit" used to represent elements is only for the purpose of facilitating the description of the present invention, and has no specific meaning in itself. Therefore, "module", "component" or "unit" can be used in a mixed manner. "First", "second" and the like are only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the order of the indicated technical features. In this subsequent description, the continuous numbering of the method steps is for the convenience of review and understanding. In combination with the overall technical solution of the present invention and the logical relationship between the various steps, adjusting the implementation order between the steps will not affect the technical effect achieved by the technical solution of the present invention. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0042] The present invention provides an interface switching method, device, electronic device and storage medium. The interface switching method comprises: firstly obtaining a first frame rate and a first preset time of an interface to be displayed, wherein the first preset time is used to characterize the time difference between two consecutive interface switching requests; secondly predicting a first bandwidth consumption of the interface to be displayed according to the first frame rate and the first preset time; then generating an extraction configuration for the interface to be displayed according to the first bandwidth consumption; preferably, extracting the layer of the interface to be displayed according to the extraction configuration, and displaying the extracted interface to be displayed.

[0043] The present invention performs analysis on the problem of insufficient bandwidth generated when switching interfaces. When switching complex interfaces, an extraction action is performed to save bandwidth, thereby improving the display efficiency and fluency of the interface. When the memory is sufficient, extraction is not performed for static interfaces or switching actions with less consumption, thereby ensuring the image quality of the interface switching.

[0044] The execution subject of the interface switching mentioned above may be a computer device, and the computer device may be a terminal. The terminal mentioned here may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a car computer, a smart home, a wearable electronic device, a VR (Virtual Reality) / AR (Augmented Reality) device, etc.

[0045] like Figure 1 As shown, the embodiment of the present invention provides a process of an interface switching method, which can be executed on any other device or equipment with data processing capabilities. Figure 1 The method specifically includes but is not limited to steps S100-S400.

[0046] Step S100, in response to an interface switching request, obtaining a first frame rate and a first preset time of an interface to be displayed, wherein the first preset time is used to represent a time difference between two consecutive interface switching requests.

[0047] The aspect switching request may be a request from an application program, or may be an interface switching instruction generated by a user through keystrokes, touch, or the like.

[0048] In some embodiments, the first frame rate is the frame rate of the current display interface when the interface switching instruction is obtained.

[0049] In some embodiments, the first frame rate is obtained by recording the time point each time an application or instruction is received for display, calculating the time difference between the current time point and the previous time point, and then dividing the time by 1 second to obtain the frame rate.

[0050] Step S200, obtaining all layers of the interface to be displayed, and determining the first bandwidth consumption according to the product of the pixel format data volume of each layer, the width and height of the display interface, and the first frame rate.

[0051] In some embodiments, the interface to be displayed includes multiple layers, and the pixel format data volume and interface width and height of each layer may be different.

[0052] In some embodiments, for example, a 1080P layer in RGBA format, RGBA each occupies 8 bits, the width and height are 1920*1080, and the frame rate is the highest frame rate of the display device, generally 60 frames per second, resulting in 4*1920*1080*60=497MB / s. If there are three 1080P layers, it is 497*3=1.5GB / s.

[0053] Step S300: generating an extraction configuration for the interface to be displayed according to the first bandwidth consumption.

[0054] In some embodiments, reference Figure 2 If the consumption of the first bandwidth exceeds the preset memory consumption, that is, when the system alert is reached, the implementation process is as follows Figure 2 The process shown, including but not limited to steps S311 to S312, includes:

[0055] S311, obtaining a first bandwidth consumption, the first bandwidth consumption being greater than a preset bandwidth consumption, generating an extraction configuration by sending the parameters of each layer of the interface to be displayed and the extraction method to a display driver, wherein the parameters of the layer include the width and height of the layer;

[0056] S312, performing at least one of reduction and interception processing on each layer, merging the obtained multiple layers, and enlarging them in the display driver.

[0057] In some embodiments, reference Figure 3 The schematic diagram shows that the extraction process is to extract a small part of the layer data from the memory in proportion, and then synthesize and enlarge it to output to the display device, that is, the extraction ratio and the magnification mixing parameters are set to the display driver together with the layer parameters. The extraction action is to reduce the access to the memory, thereby reducing the memory bandwidth usage and saving system resources when switching complex interfaces.

[0058] In some embodiments, reference Figure 4 If the consumption of the first bandwidth does not exceed the preset memory consumption, the implementation process is as follows: Figure 4 The process shown, which includes but is not limited to steps S321 to S322, includes:

[0059] S321, the first bandwidth consumption is less than or equal to the preset bandwidth consumption;

[0060] S322, adjusting the first frame rate to a second frame rate, and sending the layer parameters unchanged to a display driver for display, wherein the second frame rate is greater than the first frame rate.

[0061] In some implementations, the second bandwidth consumption when displaying the to-be-switched interface at the second frame rate is less than or equal to the preset bandwidth consumption.

[0062] In some embodiments, the value of the preset bandwidth consumption is based on the memory of the system in which the interface switching is implemented, that is, greater than half of the total memory.

[0063] In some embodiments, reference Figure 5 The first bandwidth consumption is less than or equal to the preset bandwidth consumption and no extraction processing is required. In addition, the frame rate of the static interface or interface switching can be improved according to the current memory consumption. The non-extraction process is to directly synthesize the input layer and output it to the display device.

[0064] S400, extracting the layer of the interface to be displayed according to the extraction configuration, and displaying the extracted interface to be displayed.

[0065] In some embodiments, reference Figure 6 , when the extraction condition is met, i.e., the memory is greater than half of the total memory and the time difference is less than 500 milliseconds, the extraction process is triggered, which includes but is not limited to steps S610 to S640, including:

[0066] S610, calculating the total bandwidth occupied by a new frame B and the time difference T between the new frame and the previous frame;

[0067] S620, whether the total bandwidth occupancy B and the previous frame time difference T both satisfy T<500ms, B>total bandwidth / 2;

[0068] S630, if the conditions are met, executing the extraction and display process of Example 2;

[0069] S640: If the condition is not met, the display process of Example 4 is executed.

[0070] Through the technical solution of this embodiment, when switching complex interfaces, the extraction action will be performed to save bandwidth and efficiency will be prioritized; in static interfaces, the extraction will not be performed and image quality will be prioritized. The final effect is that when the interface is frequently switched, the user experience is smooth; when the ordinary changes are slow or there are few layers and the system resources are sufficient, the user can experience the original image quality effect.

[0071] like Figure 7 As shown, the embodiment of the present invention further provides a catering data analysis device, which includes a frame rate calculation module 701, a bandwidth consumption prediction module 702, an extraction configuration module 703 and a display module 704;

[0072] Among them, the frame rate calculation module is used to obtain the first frame rate and the first preset time of the interface to be displayed according to the interface switching request, and the first preset time is used to represent the time difference between two consecutive interface switching requests; the bandwidth consumption prediction module is used to predict the first bandwidth consumption of the interface to be displayed according to the first frame rate and the first preset time; the extraction configuration module is used to generate an extraction configuration for the interface to be displayed according to the first bandwidth consumption; the display module is used to perform extraction on the layer of the interface to be displayed according to the extraction configuration, and display the extracted interface to be displayed.

[0073] Exemplarily, with the cooperation of the frame rate calculation module, bandwidth consumption prediction module, extraction configuration module and display sending module in the device, the embodiment device can implement any of the aforementioned interface switching methods, that is, in response to the interface switching request, obtain the first frame rate and the first preset time of the interface to be displayed, the first preset time is used to characterize the time difference between two consecutive interface switching requests; predict the first bandwidth consumption of the interface to be displayed according to the first frame rate and the first preset time; generate an extraction configuration for the interface to be displayed according to the first bandwidth consumption; according to the extraction configuration, perform extraction on the layer of the interface to be displayed, and perform display of the extracted interface to be displayed. The present invention performs analysis on the problem of insufficient bandwidth generated when the interface is switched. When switching complex interfaces, the extraction action will save bandwidth, thereby improving the display efficiency and smoothness of the interface; and when the memory is sufficient, the static interface or the switching action with less consumption will not perform extraction, thereby ensuring the image quality of the interface switching.

[0074] An embodiment of the present invention further provides an electronic device, the electronic device comprising a processor and a memory;

[0075] The memory stores a program;

[0076] The processor executes the program to execute the aforementioned interface switching method; the electronic device has the function of carrying and running the interface switching software system provided by the embodiment of the present invention, for example, a personal computer (PC), a mobile phone, a smart phone, a personal digital assistant (PDA), a wearable device, a handheld computer PPC (Pocket PC), a tablet computer, etc.

[0077] An embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the interface switching method as described above.

[0078] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0079] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the aforementioned interface switching method.

[0080] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0081] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0082] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0083] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0084] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0085] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0086] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0087] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. An interface switching method, characterized in that: include: In response to an interface switching request, obtaining a first frame rate and a first preset time of an interface to be displayed, wherein the first preset time is used to represent a time difference between two consecutive interface switching requests; predicting a first bandwidth consumption of the interface to be displayed according to the first frame rate and a first preset time; generating an extraction configuration for the interface to be displayed according to the first bandwidth consumption; According to the extraction configuration, extract the layer of the interface to be displayed, and display the extracted interface to be displayed; The step of generating an extraction configuration for the interface to be displayed according to the first bandwidth consumption includes: If the first bandwidth consumption is greater than the preset bandwidth consumption, the extraction configuration is generated by the parameters and extraction method of each layer of the interface to be displayed and sent to the display driver, wherein the parameters of the layer include the width and height of the layer; The extraction methods include: Perform at least one of reduction and interception on each of the layers, merge the obtained multiple layers, and enlarge them on the display driver; The method further comprises: If the first bandwidth consumption is less than or equal to the preset bandwidth consumption; The first frame rate is adjusted to a second frame rate, and the parameters of the layer are kept unchanged and sent to the display driver for display, wherein the second frame rate is greater than the first frame rate, and when the interface to be displayed is displayed at the second frame rate, the second bandwidth consumption of the interface to be displayed is less than or equal to the preset bandwidth consumption, and the preset bandwidth consumption is greater than half of the total memory.

2. The interface switching method according to claim 1, characterized in that: The step of obtaining, in response to the interface switching request, a first frame rate of the interface to be displayed includes: Receive the interface switching request sent by the application, obtain the first preset time, and determine the first frame rate according to the time difference, wherein the first frame rate=1s / first preset time, s is seconds.

3. The interface switching method according to claim 1, characterized in that: The predicting a first bandwidth consumption of the to-be-displayed interface according to the first frame rate and the first preset time includes: All the layers of the interface to be displayed are obtained, and the first bandwidth consumption is determined according to the product of the pixel format data volume of each layer, the width and height of the display interface, and the first frame rate.

4. The interface switching method according to claim 1, characterized in that: The first frame rate is configured to be less than 500 milliseconds.

5. An interface switching device, characterized in that: include: A frame rate calculation module, used to obtain a first frame rate and a first preset time of the interface to be displayed according to the interface switching request, wherein the first preset time is used to represent a time difference between two consecutive interface switching requests; a bandwidth consumption prediction module, configured to predict a first bandwidth consumption of the interface to be displayed according to the first frame rate and a first preset time; An extraction configuration module, configured to generate an extraction configuration for the interface to be displayed according to the first bandwidth consumption; A display module, used to extract the layer of the interface to be displayed according to the extraction configuration, and display the extracted interface to be displayed; The extraction configuration module is further configured to generate the extraction configuration by using the parameters of each layer of the interface to be displayed and the extraction method and send it to the display driver if the first bandwidth consumption is greater than the preset bandwidth consumption, wherein the parameters of the layer include the width and height of the layer; If the first bandwidth consumption is less than or equal to the preset bandwidth consumption, the first frame rate is adjusted to the second frame rate, and the parameters of the layer are kept unchanged and sent to the display driver for display, the second frame rate is greater than the first frame rate, and when the interface to be displayed is displayed at the second frame rate, the second bandwidth consumption of the interface to be displayed is less than or equal to the preset bandwidth consumption, and the preset bandwidth consumption is greater than half of the total memory; The extraction methods include: At least one of reduction and interception is performed on each of the layers, the obtained multiple layers are merged, and the layers are enlarged in the display driver.

6. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the interface switching method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the interface switching method according to any one of claims 1 to 4.