Application interface display method and device, equipment and storage medium

By dynamically allocating cache space according to the application interface display status and preset memory allocation strategy in the virtual client environment, the problem of excessive storage resource usage and increased rendering pressure caused by undifferentiated cache space is solved, and the display efficiency of the application interface is improved.

CN120066653AActive Publication Date: 2025-05-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510154162.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-05-30
Estimated Expiration
2045-02-11

AI Technical Summary

Technical Problem

In the virtual client environment, cache space is allocated for each application indiscriminately, resulting in excessive storage resources occupied, increasing rendering pressure, reducing application operation efficiency, and thus reducing the display efficiency of the application interface.

Method used

By detecting the application's layer creation instructions, it obtains its current interface display status. Only when the interface display status meets the preset conditions, allocate cache space to the application according to the preset memory allocation strategy, create application layers and render the application interface.

Benefits of technology

Targeted memory allocation is realized, unnecessary storage resource usage is reduced, rendering pressure in the virtual client environment is reduced, and application operation efficiency and application interface display efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066653A_ABST
    Figure CN120066653A_ABST
Patent Text Reader

Abstract

The invention provides an application interface display method and device, equipment and a storage medium, which are used for solving the problem that the display efficiency of an application interface of an application program is relatively low. In the method, when a layer creation instruction for an application program is detected, the current interface display state of the application program is obtained; when the interface display state meets a preset layer creation condition, allocating a corresponding cache space to the application program based on a preset memory allocation strategy corresponding to the application program; creating at least one application layer in the cache space according to the layer attribute data and the application operation data carried by the layer creation instruction; and based on the at least one application layer, rendering an application interface of the application program. By setting the layer creation condition and the memory allocation strategy, the targeted memory allocation process is realized, the rendering pressure is reduced, and the display efficiency of the application interface is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a method, apparatus, device, and storage medium for displaying an application interface. Background Art

[0002] With the continuous development of technology, more and more first-class clients can be installed with a client emulator. The client emulator can provide a virtual client environment in the first-class client. The virtual client environment can simulate the client environment of the second-class client to run application programs. Thus, the application interface presented when the application program runs on the second-class client can be displayed on the first-class client.

[0003] For example, in the development scenario of mobile application programs, a mobile emulator can be installed on a computer. The mobile emulator can provide a virtual mobile environment, and mobile application programs can be installed in the virtual mobile environment to simulate the running process of mobile application programs on a mobile phone.

[0004] Thus, after developing a mobile application program, the mobile application program can be run and tested in this virtual client environment to find and fix development vulnerabilities and the like when the developed mobile application program presents various application interfaces on a mobile phone.

[0005] Under the related technology, in the method of displaying an application interface, after starting and running at least one application program in the virtual client environment, the following operations can be respectively performed for at least one application program:

[0006] After the application program is started, according to a preset resource amount, a cache space is allocated for the application program. The cache space is used to store the application running data of the application program; based on the application running data stored in the cache space, at least one application layer is created in the cache space; based on the created at least one application layer and at least one environment layer involved in the virtual client environment, the application interface of the application program is rendered, so that the application interface presented when the application program runs on the second-class client can be displayed on the first-class client.

[0007] However, this way of allocating cache space for each started and running application program without discrimination will occupy a large amount of storage resources, increase the rendering pressure in the virtual client environment, thereby reducing the application running efficiency in the virtual client environment and making the display efficiency of the application interface of the application program relatively low. Summary of the Invention

[0008] Embodiments of this application provide a method, apparatus, device, and storage medium for displaying an application interface, which are used to solve the problem of relatively low display efficiency of the application interface of an application program.

[0009] First aspect, a method for displaying an application interface is provided, including:

[0010] When a layer creation instruction for one application among at least one application is detected, obtain the current interface display state of the one application; wherein, the at least one application is installed in a virtual client environment; the virtual client environment is a client environment of a second type of client provided on a first type of client; the first type of client and the second type of client are different;

[0011] When the interface display state meets a preset layer creation condition, allocate a corresponding cache space for the one application based on a preset memory allocation policy corresponding to the one application;

[0012] In the cache space, create at least one application layer according to the layer attribute data and application running data carried by the layer creation instruction;

[0013] Render the application interface of the one application based on the at least one application layer.

[0014] Second aspect, a device for displaying an application interface is provided, including:

[0015] A first processing module: configured to obtain the current interface display state of the one application when a layer creation instruction for one application among at least one application is detected; wherein, the at least one application is installed in a virtual client environment; the virtual client environment is a client environment of a second type of client provided on a first type of client; the first type of client and the second type of client are different;

[0016] A second processing module: configured to allocate a corresponding cache space for the one application based on a preset memory allocation policy corresponding to the one application when the interface display state meets a preset layer creation condition;

[0017] The second processing module is further configured to: create at least one application layer in the cache space according to the layer attribute data and application running data carried by the layer creation instruction;

[0018] The second processing module is further configured to: render the application interface of the one application based on the at least one application layer.

[0019] Optionally, the memory allocation policy is obtained in the following manner, and the second processing module is further configured to:

[0020] Obtain a historical running data set generated when the one application runs in historical time;

[0021] Extract the interface feature set of the one application from the historical operation dataset; wherein, the interface feature set is used to: describe the interface changes of the application interface of the one application during the historical time.

[0022] Select at least one allocation sub-policy that matches the interface feature set from the pre-stored allocation sub-policy set for fusion to obtain the memory allocation policy.

[0023] Optionally, the second processing module is specifically configured to perform at least one of the following operations:

[0024] Based on the historical display states of the one application during the historical time in the historical operation dataset, extract the state transition features as interface features and add them to the interface feature set.

[0025] Based on the interface display styles of the one application during the historical time in the historical operation dataset, extract the style rendering features as interface features and add them to the interface feature set.

[0026] Based on the interface display contents of the one application during the historical time in the historical operation dataset, extract the content rendering features as interface features and add them to the interface feature set.

[0027] Based on the interface rendering data of the one application during the historical time in the historical operation dataset, extract the rendering rate features as interface features and add them to the interface feature set.

[0028] Optionally, the interface display state indicates at least one of the following states:

[0029] The one application is running in the foreground or in the background.

[0030] The application interface of the one application is not covered by other interfaces or is covered by other interfaces.

[0031] There is an uncovered display area in the application interface of the one application, and the area position of the display area.

[0032] Optionally, the second processing module is specifically configured to perform at least one of the following operations:

[0033] When the number of times the application interface of the one application switches from other states to the target state of not being covered by other interfaces within the unit time of the historical time reaches the number threshold, allocate a corresponding cache space for the one application based on a preset first adjustment amount and a preset resource amount.

[0034] When the occupancy of style resources consumed by the interface display style of rendering the application interface of the one application within the unit time of historical time reaches the style resource threshold, allocate corresponding cache space for the one application based on a preset second adjustment amount and a preset resource amount;

[0035] When the occupancy of content resources consumed by the interface display content of rendering the application interface of the one application within the unit time of historical time reaches the content resource threshold, allocate corresponding cache space for the one application based on a preset third adjustment amount and a preset resource amount;

[0036] When the average rendering rate of rendering the application interface of the one application reaches the rate threshold, allocate corresponding cache space for the one application based on a preset fourth adjustment amount and a preset resource amount.

[0037] Optionally, the second processing module is further configured to:

[0038] When the interface display state does not meet the preset layer creation condition, count the current client resource occupancy of the first type of client;

[0039] When the client resource occupancy reaches the client resource threshold, allocate corresponding cache space for the one application after delaying a preset delay with the current moment as the starting moment.

[0040] Optionally, the second processing module is further configured to:

[0041] When the interface display state does not meet the preset layer creation condition, associate the one application with a preset storage space;

[0042] In the preset storage space, create at least one application layer according to the layer attribute data and application operation data carried by the layer creation instruction;

[0043] Render the application interface of the one application based on the at least one application layer.

[0044] Optionally, the second processing module is specifically configured to:

[0045] When the interface display state does not meet the preset layer creation condition, obtain the historical operation dataset generated when the one application runs in historical time;

[0046] Based on each historical display state of the one application within the historical time in the historical operation dataset, count the continuous time interval that does not meet the layer creation condition with the current moment as the end moment to obtain the covering duration;

[0047] Determine the amount of content change in the content displayed on the application interface of the one application between every two adjacent addition times based on the addition times of the respective historical operation data in the historical operation data set;

[0048] Associate the one application with a preset storage space based on the covering duration or the amount of content change.

[0049] Optionally, the second processing module is specifically configured to:

[0050] Obtain a historical operation data set generated when the one application runs in historical time;

[0051] Based on the number of times of switching of the one application from other states to the target state of not being covered by other interfaces within the historical time in the historical operation data set;

[0052] When the number of switching times reaches the switching times threshold, create at least one basic layer based on a preset layer template according to the layer attribute data carried by the layer creation instruction;

[0053] When the interface display state is in the target state, load display elements in at least one basic layer based on the application operation data carried by the layer creation instruction to obtain at least one application layer.

[0054] Optionally, the second processing module is specifically configured to:

[0055] When the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, extract the attribute sub-data corresponding to the display area from the layer attribute data carried by the layer creation instruction based on the area position of the display area;

[0056] In the cache space, establish at least one basic layer based on the attribute sub-data and a preset layer template;

[0057] Extract the operation sub-data corresponding to the display area from the application operation data carried by the layer creation instruction based on the area position of the display area;

[0058] In the cache space, load display elements in at least one basic layer based on the operation sub-data to obtain at least one application layer.

[0059] Optionally, the first processing module is further configured to:

[0060] When detecting a layer composition instruction for one application, update the current interface display state of the one application;

[0061] The second processing module is specifically configured to:

[0062] When the interface display state meets the preset layer composition condition, render the application interface of the one application based on the at least one application layer.

[0063] Optionally, the second processing module is specifically configured to:

[0064] Obtain the historical operation dataset generated when the one application runs at historical time;

[0065] Based on each trigger operation responded by the one application within the historical time in the historical operation dataset, determine the interaction frequency of the one application;

[0066] Based on each interface display content of the one application within the historical time in the historical operation dataset, determine the content importance of the one application;

[0067] Based on the interaction frequency and the content importance, determine the rendering priority of the one application; wherein, the interaction frequency is positively correlated with the rendering priority, and the content importance is positively correlated with the rendering priority;

[0068] Based on the at least one application layer, render the application interface of the one application according to the rendering priority.

[0069] Optionally, the second processing module is specifically configured to:

[0070] When the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, based on the area position of the display area, extract at least one layer area from the at least one application layer;

[0071] Based on the at least one layer area, render the application interface of the one application.

[0072] Optionally, the virtual client environment is provided by a client simulator, and the second processing module is further configured to:

[0073] When the interface display state does not meet the preset layer composition condition, after delaying for a specified duration starting from the current moment, at a preconfigured rate, based on the at least one application layer, render the application interface of the one application according to a preconfigured resolution; wherein, the preconfigured rate is lower than the average rendering rate of the client simulator, and the preconfigured resolution is lower than the interface resolution of the one application.

[0074] In a third aspect, there is provided a computer program product including a computer program which, when executed by a processor, implements the method described in the first aspect.

[0075] In a fourth aspect, there is provided a computer device including:

[0076] a memory for storing a computer program;

[0077] a processor for calling the computer program stored in the memory and executing the method described in the first aspect according to the obtained computer program.

[0078] In a fifth aspect, there is provided a computer-readable storage medium storing a computer program for causing a computer to execute the method described in the first aspect.

[0079] In the embodiments of the present application, for each application installed in the virtual client environment, when a layer creation instruction is detected, the current interface display state of the application is first obtained, and only when the interface display state meets the preset layer creation conditions, a corresponding cache space is allocated to the application, implementing a targeted memory allocation process, avoiding unnecessary occupation of storage resources caused by the method of allocating cache space to each application without discrimination. Thus, it is not necessary to render unnecessary application interfaces, which can reduce the rendering pressure in the virtual client environment, improve the application running efficiency in the virtual client environment, and achieve the purpose of improving the display efficiency of the application interface of the application program.

[0080] Furthermore, when allocating cache space for an application, it can be allocated based on the preset memory allocation policy corresponding to the application, so that different applications can be configured with different memory allocation policies, further implementing a targeted memory allocation process, avoiding the problem that the unified memory allocation policy leads to low storage resource utilization rate and occupies the application running space in the virtual client environment. Thus, the application running efficiency in the virtual client environment can be improved, and the purpose of improving the display efficiency of the application interface of the application program can be achieved.

[0081] Furthermore, the application interface of the application can be rendered only based on at least one application layer created for the application, so that when there is no operation triggered for the virtual client environment, the environment layer is not repeatedly created, further reducing the unnecessary occupation of storage resources and the rendering pressure in the virtual client environment. To a certain extent, the purpose of improving the display efficiency of the application interface of the application program can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1A It is a schematic diagram of an application field of the application interface display method provided by the embodiments of the present application;

[0083] Figure 1B It is a schematic diagram of the principle of a method for displaying an application interface in the related art;

[0084] Figure 1C It is a schematic diagram of an application scenario of the method for displaying an application interface provided by an embodiment of the present application;

[0085] Figure 2 It is a first schematic flowchart of the method for displaying an application interface provided by an embodiment of the present application;

[0086] Figure 3A It is a first schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application;

[0087] Figure 3B It is a schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application Figure 2 ;

[0088] Figure 3C It is a third schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application;

[0089] Figure 4A It is a fourth schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application;

[0090] Figure 4B It is a fifth schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application;

[0091] Figure 5A It is a sixth schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application;

[0092] Figure 5B It is a schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application Figure 7 ;

[0093] Figure 6A It is a schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application Figure 8 ;

[0094] Figure 6B It is a schematic diagram of the principle of the method for displaying an application interface provided by an embodiment of the present application Figure 9 ;

[0095] Figure 7 It is a schematic flowchart of the method for displaying an application interface provided by an embodiment of the present application Figure 2 ;

[0096] Figure 8A schematic structural diagram one of the display device for the application interface provided by the embodiment of the present application;

[0097] Figure 9 A schematic structure of the display device for the application interface provided by the embodiment of the present application Figure 2 。 Detailed implementation manners

[0098] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.

[0099] Some terms in the embodiments of the present application are explained below to facilitate the understanding of those skilled in the art.

[0100] (1) Client emulator:

[0101] The client emulator can simulate the operating system of the second type of client on the first type of client installed with the client emulator. Thus, the application programs developed for the second type of client can be downloaded and used on the first type of client.

[0102] Taking the mobile phone emulator as an example, it includes the mobile phone emulator Host side and the mobile phone emulator Guest side.

[0103] The mobile phone emulator Host side includes: the emulator software itself running on the computer, as well as the hardware abstraction layer, operating system and user interface components supporting the emulator software itself. The mobile phone emulator Host side is responsible for creating and managing the virtual client environment (i.e., the mobile phone emulator Guest side), and providing a series of tools and interfaces for interacting with the virtual client environment.

[0104] The mobile phone emulator Guest side includes: the virtual client environment created by the mobile phone emulator Host side on the computer. In the virtual client environment, the application programs developed for the second type of client can be downloaded and used.

[0105] (2) Operating system:

[0106] The operating system is used to provide an application framework, and various application programs can be built in this application framework. For example, the Android operating system is an open-source operating system based on the Linux kernel, and is applied to mobile devices (such as smart phones and tablet computers) and other embedded devices.

[0107] (3) Layer:

[0108] The layer is equivalent to a container that contains multiple display elements and can manage the display positions of each display element. The application layer of the application can include the interface display content of the application; the environment layer of the operating system can include system display content such as the status bar and navigation bar.

[0109] The embodiments of the present application relate to artificial intelligence (AI) technology and cloud computing. Artificial intelligence technology and cloud computing can be applied to multiple fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, driverless, autonomous driving, intelligent transportation, smart maps, assisted driving, vehicle-mounted terminals, aircraft, digital twins, virtual humans, robots, artificial intelligence-generated content (AIGC), conversational interaction, intelligent healthcare, intelligent customer service, game AI, etc. It is believed that with the development of technology, artificial intelligence technology and cloud computing will be applied in more fields and play an increasingly important role.

[0110] It should be noted that in the embodiments of the present application, operations such as detecting layer creation instructions, obtaining the interface display state, and obtaining historical operation data sets are involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions.

[0111] In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of the module or unit.

[0112] Next, a brief introduction to the application fields of the application interface display method provided by the embodiments of the present application will be given.

[0113] With the continuous development of technology, more and more first-class clients can be installed with a client emulator. The client emulator can provide a virtual client environment in the first-class client. The virtual client environment can simulate the client environment of the second-class client to run an application program. Thus, the application interface presented when the application program runs on the second-class client can be displayed on the first-class client.

[0114] For example, in the large-screen usage scenario of mobile application programs, please refer to Figure 1A, an Android emulator is installed on a laptop. The Android emulator simulates the Android operating system of a mobile phone to provide a virtual client environment. Multiple application programs, including Application A, Application B, …, and Application L, etc., are installed in the virtual client environment. When starting an application program (such as Application C), the application interface of Application C can be presented on the display screen of the laptop. Through the laptop, interaction operations can be triggered on the application interface for Application C to present different display contents on the application interface and implement different application functions.

[0115] For another example, in the development scenario of mobile phone application programs, a mobile phone emulator can be installed on the computer side. The mobile phone emulator can simulate at least one operating system to provide at least one virtual mobile phone client environment. Mobile phone application programs can be installed in the virtual mobile phone client environment to simulate the running process of mobile phone application programs on the mobile phone side. Thus, after developing a mobile phone application program, the mobile phone application program can be run and tested in this virtual client environment to find and fix development vulnerabilities and the like that exist when the developed mobile phone application program presents various application interfaces on the mobile phone side.

[0116] Under the related technology, in the method of displaying an application interface, after starting and running at least one application program in the virtual client environment, the following operations can be respectively performed on at least one application program:

[0117] After the application program is started, according to a preset resource amount, a cache space is allocated for the application program. The cache space is used to store the application running data of the application program; based on the application running data stored in the cache space, at least one application layer is created in the cache space; based on the created at least one application layer, and at least one environment layer, emulator layer, launcher layer, etc. involved in the virtual client environment, the application interface of the application program is rendered, so that the application interface presented when the application program runs on the second type of client can be displayed on the first type of client.

[0118] However, please refer to Figure 1B, for example, in the case where only the application interface of application C is displayed in the foreground on a laptop computer and the application interfaces of application A and application B are not displayed, cache space is still allocated to application A, application B, and application C without distinction. Taking application A as an example, the cache space includes a storage area and a buffer area. The buffer area is used to obtain the stored data from the storage area to generate rendering data for rendering the application interface. The storage area can be used to store at least one application layer involved in the application interface of application A; it can also be used to store at least one environment layer (such as an environment status bar layer, etc.) involved in the virtual client environment provided by the client simulator; it can also be used to store the simulator layer and launcher layer (which can both be transparent layers) provided by the client simulator for application A, for carrying the application interface of application A, etc.

[0119] This way of allocating cache space to each running application without distinction will occupy a large amount of storage resources. The application interfaces of application A, application B, and application C all need to be rendered in their respective cache spaces, increasing the rendering pressure on the client simulator, thereby reducing the running efficiency of the client simulator and resulting in a low display efficiency of the application interfaces of the applications.

[0120] To solve the problem of the low display efficiency of the application interfaces of applications, this application proposes a method for displaying application interfaces. In this method, when a layer creation instruction for one of at least one application is detected, the current interface display state of the application is obtained. When the interface display state meets the preset layer creation conditions, corresponding cache space is allocated to the application based on the memory allocation policy preset for the application. In the cache space, at least one application layer is created according to the layer attribute data and application running data carried by the layer creation instruction. Based on the at least one application layer, the application interface of the application is rendered. Among them, at least one application is installed in the virtual client environment; the virtual client environment is the client environment of the second type of client provided on the first type of client; the first type of client and the second type of client are different.

[0121] In the embodiments of this application, for each application installed in the virtual client environment, when a layer creation instruction is detected, the current interface display state of the application is first obtained, and only when the interface display state meets the preset layer creation conditions, corresponding cache space will be allocated to the application, realizing a targeted memory allocation process, avoiding the unnecessary occupation of storage resources caused by the way of allocating cache space to each application without distinction, so that there is no need to render unnecessary application interfaces, which can reduce the rendering pressure in the virtual client environment and improve the application running efficiency in the virtual client environment, achieving the purpose of improving the display efficiency of the application interfaces of applications.

[0122] Further, when allocating cache space for an application, it can be allocated based on a preset memory allocation policy corresponding to the application, so that different applications can be configured with different memory allocation policies, further realizing a targeted memory allocation process, avoiding the problem that the unified memory allocation policy leads to low utilization rate of storage resources and occupies the application running space in the virtual client environment, thereby improving the application running efficiency in the virtual client environment and achieving the purpose of improving the display efficiency of the application interface of the application program.

[0123] Further, the application interface of the application program can be rendered only based on at least one application layer created for the application program. Then, only at least one application layer needs to be stored in the cache space, so that when there is no operation triggered for the virtual client environment, the environment layer and the like will not be created repeatedly, and there is no need to store the environment layer and the like, further reducing the occupation of unnecessary storage resources and reducing the rendering pressure in the virtual client environment. To a certain extent, it can achieve the purpose of improving the display efficiency of the application interface of the application program.

[0124] The virtual client environment can be provided on the first type of client installed with the client emulator, or the first type of client can call the environment simulation function it has to provide, etc., without specific limitation. In the embodiments of the present application, the case where the client emulator provides the virtual client environment is taken as an example.

[0125] Next, the application scenario of the application interface display method provided by the present application will be described.

[0126] Please refer to Figure 1C , which is a schematic diagram of an application scenario of the application interface display method provided by the present application. This application scenario includes the first type of client 101 installed with the client emulator and the emulator server 102 of the client emulator; the first type of client 101 and the emulator server 102 can communicate; the communication method can be communication using wired communication technology, for example, communication through connecting a network cable or a serial cable; or it can be communication using wireless communication technology, for example, communication through technologies such as Bluetooth or wireless fidelity (WIFI), without specific limitation.

[0127] The first type of client 101 generally refers to devices that can install the client emulator, such as terminal devices, third-party application programs accessible by the terminal device, or web pages accessible by the terminal device. The emulator server 102 generally refers to devices that can provide emulator functions for the client emulator (such as the function of creating a virtual client environment for the second type of client), such as terminal devices or servers.

[0128] The terminal devices include but are not limited to mobile phones, computers, intelligent medical devices, intelligent household appliances, vehicle-mounted terminals or aircraft, etc. The servers include but are not limited to cloud servers, local servers or associated third-party servers, etc. Both the first type of client 101 and the simulator server 102 can adopt cloud computing to reduce the occupation of local computing resources; similarly, cloud storage can also be adopted to reduce the occupation of local storage resources.

[0129] In response to a triggered start operation for an application installed in the virtual client environment of the second type of client, the first type of client 101 sends a start request to the simulator server 102. The start request is used to obtain the start display data of the application, and the start display data is used to present the application interface when the application starts in the second type of client.

[0130] The simulator server 102 returns the start display data to the first type of client 101. Based on the received start display data, the first type of client 101 creates and renders the application interface of the application. In response to an interaction operation triggered for the application interface of the application, the first type of client 101 sends a data request to the simulator server 102. The data request is used to obtain the interface display data of the application, and the interface display data is used to present the interface display content when the application interacts in the second type of client.

[0131] The simulator server 102 returns the interface display data to the first type of client 101. Based on the received interface display data, the first type of client 101 renders the application interface of the application.

[0132] Next, based on Figure 1C , a specific introduction to the method for displaying the application interface provided in the embodiments of the present application will be given. This method can be applied to a client simulator or a first type of client with an environment simulation function, etc., and there is no specific limitation. In the embodiments of the present application, an example of applying it to a client simulator will be used for introduction.

[0133] On the first type of client installed with the client emulator, a virtual client environment of the second type of client can be provided. The first type of client is different from the second type of client. Among them, the first type of client and the second type of client can be clients using different operating systems. For example, the first type of client is a computer using a desktop operating system (such as the Windows operating system), and the second type of client is a mobile phone using a mobile operating system (such as the Android operating system); the first type of client and the second type of client can also be clients with different hardware configurations. For example, the first type of client is a computer using a solid-state drive, and the second type of client is a mobile phone using an embedded system; the first type of client and the second type of client can also be clients with different mobile communication functions. For example, the first type of client is a computer without mobile communication functions, and the second type of client is a mobile phone with mobile communication functions, etc. The specific classification of the client is not limited here.

[0134] In the embodiments of the present application, the first type of client is a client using a desktop operating system, and the second type of client is a client using a mobile operating system as an example for introduction.

[0135] On the first type of client, a virtual client environment of the second type of client can be created by running the client emulator to simulate the operating system of the second type of client, so that the usage process of the second type of client can be simulated in the virtual client environment. For example, running the client emulator on a computer using the Windows operating system can create a virtual client environment of a mobile phone, and this virtual client environment can simulate the Android operating system used by the mobile phone, so that the Android operating system can be used on the computer.

[0136] In the virtual client environment, at least one application can be installed, and all of the at least one application are applications developed based on the mobile operating system used by the second type of client, so they can only be installed and run in the virtual client environment.

[0137] After each application starts and runs in the virtual client environment, a window can be created on the first type of client as the application interface. By rendering the application interface, different interface display contents of the application can be presented in the application interface. The application layer can be used as a container to organize and arrange multiple display elements, and by synthesizing at least one application layer, the application interface can be rendered.

[0138] Taking an application as an example below, the display method of the application interface provided in the embodiments of the present application will be specifically introduced. The display processes of the application interfaces of other applications are similar and will not be elaborated here. Please refer to Figure 2 , which is a schematic flowchart of a display method of the application interface provided in the embodiments of the present application.

[0139] In S201, when a layer creation instruction for an application is detected, obtain the current interface display state of the application.

[0140] When an application responds to a trigger operation, a layer creation instruction can be generated for the application. The layer creation instruction is used to indicate the creation of at least one application layer for the application. The trigger operation can be an active trigger for the application by operating a first type of client, or a passive trigger for the application by operating other clients. The trigger operation can be an interaction operation triggered for the application. For example, in an instant messaging scenario, a content sending operation, in a question answering scenario, an option submission operation, in a video playback scenario, a video playback operation, in a short video playback scenario, a content browsing operation, etc., are not specifically limited; the trigger operation can also be a data update operation triggered for the application. For example, in an instant messaging scenario, a reply presentation operation, in a question answering scenario, a score presentation operation, in a real-time comment scenario, a comment presentation operation, etc., are not specifically limited.

[0141] Please refer to Figure 3A , present the application interface of application A of the reading category. In the application interface, there are thumbnail covers of multiple e-books respectively. When responding to a selection operation triggered for a thumbnail cover of an e-book, the application interface switches to present the e-book content of the corresponding e-book.

[0142] Please refer to Figure 3B , present the application interface of application B of the instant messaging category. In the application interface, there is the conversation content with a contact. When responding to a reply operation triggered by the contact, the application interface switches to present the updated conversation content to ensure that the latest conversation content is displayed in the application interface.

[0143] When a layer creation instruction for an application is detected, it is determined that an application layer needs to be created to re-render the application interface of the application. Then, the current interface display state of the application can be obtained, and the display process of the application interface can be selected through the current interface display state. For different interface display states, different display processes are executed to improve the display flexibility.

[0144] The layer creation instruction can be a call statement of a layer creation function, or a sending instruction of a layer creation signal, etc., which is not specifically limited. Different detection methods can be set for different layer creation instructions. For example, when the layer creation instruction is a call statement of a layer creation function, an interception function can be written in the layer creation function, and when the interception function is called, it is determined that the layer creation instruction is detected, etc.

[0145] As an example, the interface display state can characterize the visibility or viewability of the application interface. For example, the interface display state indicates at least one of the following states, and different states reflect the visibility or viewability of the application interface from different granularities, so as to realize the allocation process of cache space with different precisions, etc.

[0146] State 1: The application is running in the foreground or background.

[0147] Running in the foreground means that the window of the application interface is not set to minimized, closed but not exited, or transparently displayed, etc.; running in the background means that the window of the application interface has been set to minimized, closed but not exited, or transparently displayed, etc. Please refer to Figure 3C in (1), there are Application A, Application B, and Application C running in the virtual client environment. Among them, only the application interface of Application C is running in the foreground, and the application interfaces of Application A and Application B are both running in the background.

[0148] Through this interface display state, the display priority of the application interface can be reflected to a certain extent. The application interface running in the foreground has a higher display priority, so an application layer can be created for it preferentially; while the application interface running in the background has a lower display priority, so the creation of the application layer for it can be postponed. Thus, from the perspective of layer creation, resources can be flexibly allocated to ensure the stable operation of the client emulator.

[0149] State 2: The application interface of the application is not covered by other interfaces or is covered by other interfaces.

[0150] Not being covered by other interfaces means that there is no overlapping display area between the application interface and other interfaces on the first type of client; being covered by other interfaces means that there is an overlapping display area between the application interface and other interfaces on the first type of client. Please refer to Figure 3C in (2), there are Application A, Application B, and Application C running in the virtual client environment. Among them, the application interface of Application C is not covered by other interfaces, while the application interfaces of Application A and Application B are both completely covered by the application interface of Application C (shown by a dotted box in the figure, and different types of dotted lines represent different application interfaces).

[0151] With this interface display status, for the applications running in the foreground, the display priority of the application interface can be further subdivided. The application interface that is running in the foreground and not covered by other interfaces has a higher display priority, so an application layer can be created for it preferentially; while the application interface that is running in the foreground and covered by other interfaces has a lower display priority, so creating an application layer for it can be postponed. Thus, based on whether the application interface is visible, flexible allocation of resources can be achieved from the perspective of layer creation, effectively ensuring the stable operation of the client emulator.

[0152] Status three: There is an uncovered display area and the regional position of the display area in the application interface of the application program.

[0153] Please refer to Figure 3C In (3) of it, application program A, application program B, and application program C are running in the virtual client environment. Among them, there is an uncovered display area in the application interface of application program C, and the regional position of the display area is the position where the application interface is located; there is an uncovered display area in the application interface of application program A, and the regional position of the display area is the area position enclosed by the solid line frame; it is considered that there is no uncovered display area in the application interface of application program B.

[0154] With this interface display status, for the application interfaces covered by other interfaces, the display priority can be further subdivided. The application interface that is running in the foreground, covered by other interfaces, and has an uncovered display area has a higher display priority, so an application layer can be created for it preferentially; while the application interface that is running in the foreground, covered by other interfaces, and has no uncovered display area has a lower display priority, so creating an application layer for it can be postponed. Thus, further based on the visibility or visibility degree of the application interface, flexible allocation of resources can be achieved from the perspective of layer creation, effectively ensuring the stable operation of the client emulator.

[0155] There are various methods to obtain the interface display status. For example, obtaining the current task stack information to determine whether the application program is running in the foreground. The task stack information is used to record the response order of at least one application program currently running, and the application program corresponding to the response task at the top of the stack is the one running in the foreground; for another example, obtaining the display levels of each window presented by the first type of client to determine whether the application interface corresponding to each window is covered by other interfaces; for another example, obtaining the pixel coordinates of each window presented by the first type of client in the display direction in the display coordinate system. When the pixel coordinate at the same pixel position in each window is the maximum value, it means that this pixel position is an uncovered pixel position, and multiple consecutive uncovered pixel positions can form an uncovered display area. The regional position of the display area can be determined according to the pixel position, etc. The specific obtaining method is not limited.

[0156] S202. When the interface display state meets the preset layer creation conditions, allocate corresponding cache space for an application based on the memory allocation policy preset for the application.

[0157] After obtaining the interface display state, it can be determined whether the interface display state meets the preset layer creation conditions. Whether to create an application layer according to the layer creation instruction is determined by the layer creation conditions. When the interface display state meets the preset layer creation conditions, corresponding cache space can be allocated for an application based on the memory allocation policy preset for the application to create the application layer; when the interface display state does not meet the preset layer creation conditions, the application layer may not be created according to the layer creation instruction, or may not be directly created according to the layer creation instruction, which will be specifically introduced later.

[0158] There are various layer creation conditions. Here, several of them will be taken as examples for introduction, and other layer creation conditions will not be listed one by one here.

[0159] Layer creation condition one: Running in the foreground

[0160] When the interface display state can represent that the application is running in the foreground, it is determined that the interface display state meets the preset layer creation conditions. For example, when the interface display state directly indicates that the application is running in the foreground, it is determined that the interface display state meets the preset layer creation conditions; for another example, when the interface display state indicates that the application interface is not covered by other interfaces, it means that the application must be running in the foreground, so it can be determined that the interface display state meets the preset layer creation conditions; for another example, when the interface display state indicates that there is an uncovered display area in the application interface of the application, it means that the application must be running in the foreground, so it can be determined that the interface display state meets the preset layer creation conditions, etc.

[0161] Layer creation condition two: Not covered by other interfaces

[0162] When the interface display state can represent that the application interface of the application is not covered by other interfaces, it is determined that the interface display state meets the preset layer creation conditions. For example, when the interface display state directly indicates that the application interface is not covered by other interfaces, it is determined that the interface display state meets the preset layer creation conditions; for another example, when the interface display state indicates that there is an uncovered display area in the application interface, and the area position of the display area is the position where the application interface is located, it means that the application interface is not covered by other interfaces, so it can be determined that the interface display state meets the preset layer creation conditions, etc.

[0163] Layer creation condition three: There is an uncovered display area

[0164] When the interface display state can characterize that there is an unobscured display area in the application interface of the application, it is determined that the interface display state meets the preset layer creation conditions. For example, when the interface display state directly indicates that there is an unobscured display area in the application interface of the application, it is determined that the interface display state meets the preset layer creation conditions; for another example, when the interface display state indicates that the application interface of the application is not obscured by other interfaces, it means that there must be an unobscured display area in the application interface, so it can be determined that the interface display state meets the preset layer creation conditions, etc.

[0165] As an embodiment, when the interface display state meets the preset layer creation conditions, the preset memory allocation policy corresponding to the application can be obtained, and the corresponding cache space can be allocated for the application based on the memory allocation policy for creating the application layer.

[0166] The memory allocation policy can be preset by using a variety of methods. Two of them are introduced below as examples, and other preset methods are not listed one by one here.

[0167] Preset method one:

[0168] Obtain the historical operation data set generated when an application runs in the historical time. The historical operation data set generated by the historical time can reflect the state switching frequency, rendering requirements, etc., and can dynamically adjust the fixed preset resource amount, and set the matching memory allocation policy for the application in a targeted manner, so as to improve the resource utilization rate, reduce the rendering pressure, and improve the display efficiency of the application interface.

[0169] The historical time can be a time interval with the current moment as the end moment and a preset time period as the duration; it can also be a time interval between the specified start and end times; it can also be at least one cycle before the current moment when the preset duration is used as the cycle, etc., and no specific restrictions are made.

[0170] The historical operation data can include the historical display state, which characterizes the interface display state of the application at a historical moment; it can also include the interface display style, which characterizes the display style of the application interface of the application at a historical moment, such as texture, animation, pattern, color, etc.; it can also include the interface display content, which characterizes the display content of the application interface of the application at a historical moment, such as video, image, button, chart, text, etc.; it can also include the interface rendering data, which describes the start and end times and resource occupancy of each rendering of the application interface; it can also include the trigger operation corresponding to a historical moment, which is used to indicate to re-render the application interface.

[0171] Extract an interface feature set from the historical operation dataset. The interface feature set is used to: describe the interface changes of an application interface over historical time. The interface changes include at least one of state changes, display style changes, display content changes, rendering completion changes, etc.

[0172] Then, extracting the interface feature set may include at least one of the following operations:

[0173] Based on the historical display states of an application at various historical times in the historical operation dataset, extract the state transition features as interface features. For example, if the historical display state of the application is foreground running at the first historical moment, background running at the second historical moment, and foreground running at the third historical moment, etc., then the number of times of switching from background running to foreground running within a unit time can be counted to obtain the state transition features.

[0174] Based on the interface display styles of an application at various historical times in the historical operation dataset, extract the style rendering features as interface features. For example, if the interface display styles in the application interface at the first historical moment include the lyric scrolling style and the singer poster loop playback style when playing the first song, and the interface display style in the application interface at the second historical moment includes the comment list style when playing the first song, then the resource consumption when rendering the interface display style within a unit time can be counted to obtain the style rendering features.

[0175] Based on the interface display contents of an application at various historical times in the historical operation dataset, extract the content rendering features as interface features. For example, if the interface display content in the application interface at the first historical moment includes the text content of the first article, and the interface display content in the application interface at the second historical moment includes the attached drawing content of the first article, then the resource consumption when rendering the interface display content within a unit time can be counted to obtain the content rendering features.

[0176] Based on the interface rendering data of an application at various historical times in the historical operation dataset, extract the rendering rate features as interface features, etc. For example, the interface rendering data includes the data generated by the application within the time period starting from the moment when the application interface is triggered to be re-rendered and ending at the moment when the re-rendering of the application interface is completed. Then, the rendering rate within a unit time can be determined by combining the starting moment and the ending moment to obtain the rendering rate features.

[0177] Quantify the cache requirements from multiple interface change perspectives, so as to achieve more accurate cache space allocation, improve resource utilization, reduce rendering pressure, and improve the display efficiency of the application interface.

[0178] From a pre-stored set of allocation sub-strategies, at least one allocation sub-strategy that matches the interface feature set is selected for fusion to obtain a memory allocation strategy. For example, for each interface feature in the interface feature set, one matching allocation sub-strategy is selected; or for example, when there are multiple interface features with a specified quantity or specified proportion in the interface feature set that match one allocation sub-strategy, that allocation sub-strategy is selected. Thus, the selected allocation sub-strategies are fused to obtain a memory allocation strategy. The fusion can be taking the union or intersection of each allocation sub-strategy, etc., and there is no specific limitation.

[0179] The set of allocation sub-strategies can include various allocation sub-strategies. Several of them will be introduced below as examples, and other allocation sub-strategies will not be listed one by one here.

[0180] Allocation sub-strategy one: State switching frequency

[0181] Within a unit of time, when the number of times the application interface of an application switches from other states to the target state reaches a threshold number of times, the preset resource quantity is adjusted based on a preset first adjustment amount to obtain a first resource allocation amount.

[0182] The switching from other states to the target state indicates that the application interface switches from invisible to fully visible, or from invisible to partially visible, or from partially visible to fully visible, etc. For example, the target state is an interface display state not covered by other interfaces, and other states are interface display states other than the target state.

[0183] Allocation sub-strategy two: Style rendering requirement

[0184] Within a unit of time, when the occupancy of style resources consumed by rendering the interface display style of an application interface of an application reaches a style resource threshold, the preset resource quantity is adjusted based on a preset second adjustment amount to obtain a second resource allocation amount.

[0185] Allocation sub-strategy three: Content rendering requirement

[0186] Within a unit of time, when the occupancy of content resources consumed by rendering the interface display content of an application interface of an application reaches a content resource threshold, the preset resource quantity is adjusted based on a preset third adjustment amount to obtain a third resource allocation amount.

[0187] Allocation sub-strategy three: Rendering rate requirement

[0188] When the average rendering rate of rendering the application interface of an application reaches a rate threshold, the preset resource quantity is adjusted based on a preset fourth adjustment amount to obtain a fourth resource allocation amount.

[0189] Preset method two:

[0190] After the client emulator starts running, obtain the configuration information of each of at least one application installed in the virtual client environment, distinguish each configuration information by the package name of the installation package of each of the at least one application, and the configuration information includes a memory allocation policy.

[0191] For example, whenever a configuration update instruction is received from the cloud, based on the package name of the installation package of the application indicated by the configuration update instruction, find the configuration information of the application, and based on the update content indicated by the configuration update instruction, update the memory allocation policy to implement a personalized preset memory allocation policy.

[0192] For another example, whenever the update cycle arrives, send a configuration update request to the cloud, receive the update content named by the package name of the installation package of the application returned by the cloud based on the configuration update request, find the configuration information of the application based on the package name of the installation package of the application, and update the memory allocation policy based on the update content to implement a personalized preset memory allocation policy.

[0193] As an embodiment, there are various methods for allocating a corresponding cache space for an application based on the preset memory allocation policy for the application. Several of them are introduced below as examples, and other allocation methods are not listed one by one. Multiple allocation methods can also be combined for use, and specific limitations are not imposed.

[0194] Allocation method one:

[0195] When the number of times the application interface of an application switches from other states to the target state where it is not covered by other interfaces within the unit time of historical time reaches the number threshold, allocate a corresponding cache space for the application based on the preset first adjustment amount and preset resource amount.

[0196] For example, allocate a corresponding cache space for the application according to the sum of the first adjustment amount and the preset resource amount; for another example, allocate a corresponding cache space for the application according to the product of the first adjustment amount and the preset resource amount; for another example, allocate a corresponding cache space for the application according to the sum of the above product and the preset resource amount, etc., and specific limitations are not imposed.

[0197] Allocation method two:

[0198] When the occupied amount of style resources consumed by rendering the interface display style of the application interface of an application reaches the style resource threshold within the unit time of historical time, allocate a corresponding cache space for the application based on the preset second adjustment amount and preset resource amount.

[0199] Allocating cache space based on a preset second adjustment amount and a preset resource amount is similar to allocating cache space based on a preset first adjustment amount and a preset resource amount, which will not be elaborated here. When combining Allocation Method 1 and 2, cache space can be allocated based on the first adjustment amount, the second adjustment amount, and the preset resource amount. For example, corresponding cache space can be allocated to an application according to the sum of the first adjustment amount, the second adjustment amount, and the preset resource amount, etc., without specific limitation.

[0200] Allocation Method 3:

[0201] When the occupancy of content resources consumed by the interface display content for rendering the application interface of an application within a unit time of historical time reaches the content resource threshold, corresponding cache space is allocated to an application based on a preset third adjustment amount and a preset resource amount.

[0202] Allocating cache space based on a preset third adjustment amount and a preset resource amount is similar to allocating cache space based on a preset first adjustment amount and a preset resource amount. Combining multiple allocation methods is similar to the above combination of Allocation Method 1 and 2, which will not be elaborated here.

[0203] Allocation Method 4:

[0204] When the average rendering rate for rendering the application interface of an application reaches the rate threshold, corresponding cache space is allocated to an application based on a preset fourth adjustment amount and a preset resource amount.

[0205] Allocating cache space based on a preset fourth adjustment amount and a preset resource amount is similar to allocating cache space based on a preset first adjustment amount and a preset resource amount. Combining multiple allocation methods is similar to the above combination of Allocation Method 1 and 2, which will not be elaborated here.

[0206] Quantifying cache requirements from multiple perspectives can thus achieve more accurate cache space allocation, improve resource utilization, reduce rendering pressure, and improve the display efficiency of the application interface.

[0207] Please refer to Figure 4A , when layer creation instructions for Application A, Application B, and Application C are detected respectively, obtain the interface display states of Application A, Application B, and Application C respectively. If the layer creation condition is not covered by other interfaces, then only the interface display state of Application C meets the layer creation condition. Based on the preset memory allocation strategy for corresponding Application C, allocate corresponding cache space to Application C, and do not allocate cache space to Application A and Application B.

[0208] As an example, when allocating corresponding cache space for an application, if the interface display state meets the preset condition for delayed creation, the allocation of cache space can be delayed. For example, when the condition for delayed creation is that there is an unobscured display area, it indicates that the application interface is not displayed on the top layer, but there is still a visible display area. At this time, it can be determined whether to delay the allocation of cache space according to the current client resource occupancy of the first type of client. When the client resource occupancy reaches the client resource threshold, starting from the current moment, after delaying a preset delay, allocate corresponding cache space for an application; otherwise, directly allocate corresponding cache space for an application.

[0209] When the interface display state does not meet the preset condition for layer creation, in addition to not allocating cache space, the allocation of cache space can also be delayed to avoid increasing the operating pressure of the virtual client environment and improve the display efficiency of the application interface. For example, when the interface display state is covered by other interfaces and the layer creation condition is not covered by other interfaces, the current client resource occupancy of the first type of client can be counted. When the client resource occupancy reaches the client resource threshold, starting from the current moment, after delaying a preset delay, allocate corresponding cache space for an application; otherwise, associate an application with a preset memory pool and use the memory pool to manage layer resources. Thus, when the interface display state of the application switches to not being covered by other interfaces, the layer resources can be directly obtained from the memory pool without the need to re-allocate cache space, avoiding the performance overhead caused by frequent cache allocation and release.

[0210] Based on Figure 4A please refer to Figure 4B , only when the interface display state of application C meets the layer creation condition, based on the preset memory allocation strategy corresponding to application C, allocate corresponding cache space for application C. At the same time, count the current client resource occupancy of the first type of client. When the client resource occupancy reaches the client resource threshold, starting from the current moment, after delaying a preset delay, allocate corresponding cache space for application A. After delaying a preset delay, re-count the current client resource occupancy of the first type of client. When the re-counted client resource occupancy still reaches the client resource threshold, continue to delay a preset delay starting from the current moment, that is, after delaying two preset delays, allocate corresponding cache space for application B.

[0211] As an example, when the interface display state does not meet the preset condition for layer creation, associate an application with a preset storage space. In the preset storage space, create at least one application layer according to the layer attribute data and application running data carried by the layer creation instruction. Based on the at least one application layer, render the application interface of an application.

[0212] When the preset layer creation conditions are not met, instead of separately allocating cache space for the application interface of the application, a shared preset storage space can be used, such as a preset cache space or a memory pool, etc., to reduce the performance overhead caused by memory allocation and release.

[0213] Based on Figure 4A , please refer to Figure 5A , only when the interface display state of application C meets the layer creation conditions, based on the preset memory allocation policy corresponding to application C, allocate the corresponding cache space for application C. At the same time, associate application A with the preset storage space and associate application B with the preset storage space, and no longer allocate separate cache space for application A and application B.

[0214] As an embodiment, when the interface display state does not meet the preset layer creation conditions, obtain the historical operation data set generated when an application runs in historical time, and use the historical operation data set to reflect whether the application has been invisible for a long time or has displayed similar display content for a long time, etc. For applications that have been invisible for a long time or have displayed similar display content for a long time, associate them with the preset storage space to avoid unnecessary resource occupation caused by redundant content.

[0215] At the same time, when the preset layer creation conditions are not met, the cache space used to render the application interface will not be immediately released. Instead, first store the resources involved in the cache space in the preset storage space (such as a memory pool), and then release the cache space. Thus, when the interface display state switches to meet the preset layer creation conditions, the resources involved in the cache space can be quickly used from the preset storage space without the need to re-allocate cache space, avoiding the performance overhead caused by frequent memory allocation and release.

[0216] Then, based on the historical display states of an application within historical time in the historical operation data set, with the current moment as the end moment, count the continuous time intervals that do not meet the layer creation conditions to obtain the occlusion duration; it is also possible to determine the content change amount of the interface display content of the application interface of an application between every two adjacent addition times based on the addition times of the historical operation data in the historical operation data set. Based on the occlusion duration or the content change amount, associate an application with the preset storage space. For example, when the occlusion duration is greater than the occlusion duration threshold, associate an application with the preset storage space; for another example, when the content change amount is lower than the change amount threshold, associate an application with the preset storage space; for another example, when the occlusion duration is greater than the occlusion duration threshold and the content change amount is lower than the change amount threshold, associate an application with the preset storage space, etc., without specific limitations.

[0217] Based onFigure 4A , please refer to Figure 5B , only when the interface display state of application C meets the layer creation condition, based on the preset memory allocation policy of corresponding application C, allocate corresponding cache space for application C. If it is determined based on the historical operation dataset that the covering duration of the application interface of application B in the historical time is greater than the covering duration threshold, then associate application B with the preset storage space. Since there is an uncovered display area in application A, then starting from the current moment, after delaying a preset delay, allocate corresponding cache space for application A.

[0218] S203. In the cache space, create at least one application layer according to the layer attribute data and application operation data carried by the layer creation instruction.

[0219] The layer attribute data is used to describe the layer size, the organization and arrangement method of each display element, and the display styles of each display element, such as texture, animation, pattern, color, etc.; the application operation data may include the current interface display state; it may also include the current display content of the application interface of the application, such as video, image, button, chart, text, etc.; it may also include the currently responded trigger operation, and this trigger operation is used to indicate re-rendering the application interface, etc.

[0220] As an embodiment, when creating at least one application layer, the switching frequency from invisible to visible can be quantified according to the number of times of switching from other states to the target state of not being covered by other interfaces in the historical time. When it is determined that the switching is frequent in the historical time, at least one basic layer can be created based on the preset layer template. Whenever switching to the target state of not being covered by other interfaces, then load the display elements in at least one basic layer to obtain at least one application layer, improving the layer creation efficiency, and thus the display efficiency of the application interface can be improved.

[0221] Obtain a historical operation dataset generated when an application runs in the historical time, and based on the historical operation dataset, the number of times of switching of an application from other states to the target state of not being covered by other interfaces in the historical time. When the number of switching times reaches the switching times threshold, based on the preset layer template, create at least one basic layer according to the layer attribute data carried by the layer creation instruction.

[0222] When the interface display state is in the target state, load the display elements in at least one basic layer based on the application operation data carried by the layer creation instruction to obtain at least one application layer.

[0223] As an embodiment, when the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, at least one application layer can be created only based on the display area, reducing resource consumption and improving the layer creation efficiency, thereby improving the display efficiency of the application interface.

[0224] Based on the regional position of the display area, extract the attribute sub-data corresponding to the display area from the layer attribute data carried by the layer creation instruction. In the cache space, based on the attribute sub-data and a preset layer template, establish at least one basic layer. Based on the regional position of the display area, extract the operation sub-data corresponding to the display area from the application operation data carried by the layer creation instruction. In the cache space, load display elements in at least one basic layer based on the operation sub-data to obtain at least one application layer. By reducing invalid memory reads and data transmissions, the bottleneck in the rendering process is reduced.

[0225] S204, render the application interface of an application based on at least one application layer.

[0226] After obtaining at least one application layer, the application interface of an application can be rendered based on at least one application layer. For example, synthesize at least one application layer into a frame image and update the application interface of an application using the frame image, etc.

[0227] Please refer to Figure 6A , when rendering the application interface of an application, only based on at least one application layer, filter out the environmental layers provided by the virtual client environment, such as wallpapers, status bars, and navigation bars, etc., highlighting the application interface itself. This not only reduces the rendering complexity but also does not need to store the environmental layers in the buffer space, avoiding unnecessary resource occupation and display area occupation, and improving the display efficiency and display simplicity of the application interface.

[0228] Please refer to Figure 6B , when rendering the application interface of an application, only based on at least one application layer, filter out the fixed layers such as the emulator layer and the launcher layer used to carry the application interface, where the fixed layers have a standard transparency of 100%, an unchanged display style, or unchanged display content. This not only reduces the rendering complexity but also does not need to store the environmental layers in the buffer space, avoiding unnecessary resource occupation and display area occupation, and improving the display efficiency of the application interface.

[0229] As an embodiment, when rendering the application interface of an application, layer composition instructions can be generated for composing at least one application layer. Then, when detecting the layer composition instructions for an application, update the current interface display state of the application. Determine whether the current interface display state meets the preset layer composition conditions. When the interface display state meets the preset layer composition conditions, it indicates that the application interface needs to be rendered preferentially. Therefore, based on at least one application layer, the application interface of an application can be rendered; when the interface display state does not meet the preset layer composition conditions, it indicates that the application interface can be postponed for rendering. Through the layer composition conditions, the application interfaces can be selectively rendered, avoiding abnormal situations such as preferentially rendering the covered application interfaces and causing the visible application interfaces not to be rendered for a long time, and improving the display efficiency of the application interfaces.

[0230] As an embodiment, when rendering the application interface of an application, based on the historical operation dataset generated by historical time, the interaction frequency and content importance of the application can be statistically analyzed, etc. Thus, based on the interaction frequency and content importance, the rendering priority of an application can be determined, realizing an orderly layer composition process and improving the display efficiency of the application interface.

[0231] Obtain the historical operation dataset generated when an application runs at historical time. Based on each trigger operation responded by an application within historical time in the historical operation dataset, determine the interaction frequency of the application. Based on each interface display content of an application within historical time in the historical operation dataset, determine the content importance of the application. The content importance can be quantified by at least one of the number of times the interface display content is triggered, the duration in the target state of not being covered by other interfaces, and the content volume, etc. For example, the higher the number of times triggered, the higher the content importance; the longer the duration in the target state of not being covered by other interfaces, the higher the content importance; the larger the content volume, the higher the content importance, etc.

[0232] Based on the interaction frequency and content importance, determine the rendering priority of an application. The interaction frequency is positively correlated with the rendering priority, and the content importance is positively correlated with the rendering priority. Based on at least one application layer, render the application interface of an application according to the rendering priority.

[0233] As an embodiment, when the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, the synthesis process can be simplified. Based on the regional position of the display area, at least one layer area is extracted from at least one application layer. Based on at least one layer area, the application interface of an application is rendered, without the need to synthesize the entire application layer, thereby reducing the resources occupied during layer synthesis and improving the rendering efficiency, and thus improving the display efficiency of the application interface.

[0234] As an embodiment, when the interface display state does not meet the preset layer synthesis conditions, rendering can be performed in an inefficient and low-precision manner, reducing the amount of calculation, calculation frequency, rendering frequency, etc. involved in layer synthesis, avoiding occupying too many resources, and improving the display efficiency of the application interface to a certain extent.

[0235] Starting from the current moment and postponing for a specified duration, at a pre-configured rate, based on at least one application layer, and according to a pre-configured resolution, the application interface of an application is rendered; wherein, the pre-configured rate is lower than the average rendering rate of the client simulator, and the pre-configured resolution is lower than the interface resolution of an application.

[0236] Taking a client simulator software as an example below, the display method of the application interface provided by the embodiments of the present application is introduced by way of example. Please refer to Figure 7 .

[0237] S701, In the first type of client, start the client simulator software.

[0238] The client simulator software can include a simulator function and other functions. The simulator function is used to provide a virtual client environment to simulate the operating system of the second type of client; other functions are, for example, the application management function when installing an application in the first type of client, etc.

[0239] S702, Obtain the memory allocation strategy of each of the at least one installed application in the virtual client environment.

[0240] After starting the client simulator software, the client simulator pulls the configuration (config) information of each of the at least one installed application. Each configuration information includes the memory allocation strategy and switch settings preset for the corresponding application. The switch settings are used to indicate the on or off of the setting options included in the application. The configuration information can be distinguished by the package name of the installation package of the corresponding application to implement the display process of the differentiated application interface.

[0241] S703, Start the simulator function in the client simulator software.

[0242] The emulator function can be implemented using the Android Open Source Project (AOSP) emulator. Through the emulator function, relevant settings such as the wallpaper, SystemUI, and Launcher of the second type of client can be loaded.

[0243] S704, when a layer creation instruction for an application is detected, obtain the current interface display state of the application.

[0244] Initialize the layer creation interceptor. Through the layer creation interceptor, the layer creation instruction for an application can be intercepted, so that the layer creation instruction for an application can be detected.

[0245] S705, determine whether the interface display state meets the preset layer creation conditions.

[0246] S706, when the interface display state meets the preset layer creation conditions, load the preset memory allocation policy for an application, and allocate the corresponding cache space for the application based on the loaded memory allocation policy.

[0247] The emulator function can dynamically adjust the cache space according to the resource usage and memory requirements of different processes.

[0248] S707, in the cache space, create at least one application layer according to the layer attribute data and application running data carried by the layer creation instruction.

[0249] When a certain process has occupied a large amount of cache space, the emulator function can optimize the use of the cache space by adjusting the size of the application layer, ensuring that the memory allocation in the in-layer buffer is optimized. This process can adjust the resource allocation in real time according to the actual load, improve the performance and response speed of the client emulator, especially in the case of memory shortage, it can effectively avoid memory waste or crash problems. After creating at least one application layer, continue to execute S709 - S712.

[0250] S708, when the interface display state does not meet the preset layer creation conditions, associate an application with the preset storage space, continuously update the interface display state until the interface display state meets the preset layer creation conditions, and in the preset storage space, create at least one application layer according to the layer attribute data and application running data carried by the layer creation instruction. After creating at least one application layer, continue to execute S709 - S712.

[0251] S709. When a layer composition instruction for an application is detected, update the current interface display state of the application.

[0252] Initialize a layer composition interceptor. Through the layer composition interceptor, layer composition instructions for an application can be intercepted, so that layer composition instructions for an application can be detected.

[0253] S710. Determine whether the interface display state meets the preset layer composition conditions.

[0254] S711. When the interface display state meets the preset layer composition conditions, render the application interface of an application based on at least one application layer.

[0255] The simulator function can filter the environment layers according to the relevant settings such as loading the wallpaper, SystemUI, and Launcher of the second type of client, ensuring that these environment layers do not participate in the layer composition process, avoiding unnecessary resource consumption, optimizing the composition efficiency, reducing the unnecessary rendering burden, and excluding unimportant or unnecessary layers, ensuring the efficient progress of the rendering process.

[0256] S712. When the interface display state does not meet the preset layer composition conditions, postpone the layer composition process.

[0257] For example, starting from the current moment, after postponing for a specified duration, at a preconfigured rate, based on at least one application layer, and according to the preconfigured resolution, render the application interface of an application.

[0258] In the embodiments of the present application, the occupation of unnecessary cache resources is intelligently reduced through layer creation conditions and memory allocation strategies, greatly reducing the occupation of the running resources of the client simulator. Especially in the high-resolution mode, it can effectively relieve the storage pressure. By reducing the composition and memory allocation of some layers or layer regions, the rendering pressure of the client simulator is reduced, the rendering efficiency is improved, and the lag phenomenon of the client simulator is reduced. For application interfaces that are covered for a long time or display similar content, resources that are no longer needed can be released in time, reducing problems such as frequent memory recycling or memory overflow caused by memory tension, and improving the stability of the client simulator. For high-resolution environments (such as 4K and above resolutions), the performance bottleneck of the client simulator in high resolutions can be effectively avoided.

[0259] Based on the same inventive concept, the embodiments of the present application provide a display device for an application interface, which can implement the functions corresponding to the foregoing method for displaying an application interface. Please refer to Figure 8, the device includes a first processing module 801 and a second processing module 802, where:

[0260] The first processing module 801: is configured to obtain the current interface display state of an application when a layer creation instruction for one of at least one application is detected; wherein, at least one application is installed in a virtual client environment; the virtual client environment is a client environment of a second type of client provided on a first type of client; the first type of client and the second type of client are different;

[0261] The second processing module 802: is configured to allocate corresponding cache space for an application based on a preset memory allocation policy for the corresponding application when the interface display state meets the preset layer creation condition;

[0262] The second processing module 802 is further configured to: create at least one application layer in the cache space according to the layer attribute data and application operation data carried by the layer creation instruction;

[0263] The second processing module 802 is further configured to: render the application interface of an application based on at least one application layer.

[0264] In a possible embodiment, the memory allocation policy is obtained in the following manner, and the second processing module 802 is further configured to:

[0265] Obtain a historical operation dataset generated when an application runs in historical time;

[0266] Extract an interface feature set of an application from the historical operation dataset; wherein, the interface feature set is used to: describe the interface changes of the application interface of an application within historical time;

[0267] Select at least one allocation sub-policy that matches the interface feature set from a pre-stored set of allocation sub-policies for fusion to obtain the memory allocation policy.

[0268] In a possible embodiment, the second processing module 802 is specifically configured to perform at least one of the following operations:

[0269] Extract the state transition feature as an interface feature and add it to the interface feature set based on the respective historical display states of an application within historical time in the historical operation dataset;

[0270] Extract the style rendering feature as an interface feature and add it to the interface feature set based on the respective interface display styles of an application within historical time in the historical operation dataset;

[0271] Based on the display content of each interface of an application within historical running data over a historical period of time, extract content rendering features as interface features and add them to the interface feature set;

[0272] Based on the interface rendering data of an application within historical running data over a historical period of time, extract the rendering rate feature as an interface feature and add it to the interface feature set.

[0273] In a possible embodiment, the interface display state indicates at least one of the following states:

[0274] An application is running in the foreground or background;

[0275] The application interface of an application is not covered by other interfaces or is covered by other interfaces;

[0276] There is an uncovered display area in the application interface of an application, and the regional location of the display area.

[0277] In a possible embodiment, the second processing module 802 is specifically configured to perform at least one of the following operations:

[0278] When the number of times the application interface of an application switches from other states to the target state of not being covered by other interfaces within a unit time of historical time reaches the number threshold, allocate a corresponding cache space for the application based on a preset first adjustment amount and preset resource amount;

[0279] When the occupied amount of style resources consumed by rendering the interface display style of an application interface within a unit time of historical time reaches the style resource threshold, allocate a corresponding cache space for the application based on a preset second adjustment amount and preset resource amount;

[0280] When the occupied amount of content resources consumed by rendering the interface display content of an application interface within a unit time of historical time reaches the content resource threshold, allocate a corresponding cache space for the application based on a preset third adjustment amount and preset resource amount;

[0281] When the average rendering rate of rendering the application interface of an application reaches the rate threshold, allocate a corresponding cache space for the application based on a preset fourth adjustment amount and preset resource amount.

[0282] In a possible embodiment, the second processing module 802 is further configured to:

[0283] When the interface display state does not meet the preset layer creation condition, count the current client resource occupancy of the first type of client;

[0284] When the client resource occupancy reaches the client resource threshold, after delaying a preset delay with the current moment as the starting moment, allocate corresponding cache space for an application.

[0285] In a possible embodiment, the second processing module 802 is further configured to:

[0286] When the interface display state does not meet the preset layer creation condition, associate an application with a preset storage space;

[0287] In the preset storage space, create at least one application layer according to the layer attribute data and application running data carried by the layer creation instruction;

[0288] Render the application interface of an application based on at least one application layer.

[0289] In a possible embodiment, the second processing module 802 is specifically configured to:

[0290] When the interface display state does not meet the preset layer creation condition, obtain the historical running data set generated when an application runs in historical time;

[0291] Based on the historical display states of an application in the historical running data set within the historical time, with the current moment as the end moment, count the continuous time intervals that do not meet the layer creation condition to obtain the covering duration;

[0292] Based on the addition moments of the historical running data in the historical running data set, determine the content change amount of the interface display content between every two adjacent addition moments of the application interface of an application;

[0293] Associate an application with a preset storage space based on the covering duration or the content change amount.

[0294] In a possible embodiment, the second processing module 802 is specifically configured to:

[0295] Obtain the historical running data set generated when an application runs in historical time;

[0296] Based on the number of times of switching from other states to the target state where an application is not covered by other interfaces within the historical time in the historical running data set;

[0297] When the number of switching times reaches the switching times threshold, create at least one basic layer according to the layer attribute data carried by the layer creation instruction based on the preset layer template;

[0298] When the interface display state is in the target state, display elements are loaded in at least one basic layer based on the application running data carried by the layer creation instruction, and at least one application layer is obtained.

[0299] In a possible embodiment, the second processing module 802 is specifically configured to:

[0300] When the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, based on the area position of the display area, extract the attribute sub-data corresponding to the display area from the layer attribute data carried by the layer creation instruction;

[0301] In the cache space, establish at least one basic layer based on the attribute sub-data and a preset layer template;

[0302] Based on the area position of the display area, extract the running sub-data corresponding to the display area from the application running data carried by the layer creation instruction;

[0303] In the cache space, load display elements in at least one basic layer based on the running sub-data, and obtain at least one application layer.

[0304] In a possible embodiment, the first processing module 801 is further configured to:

[0305] When a layer composition instruction for an application is detected, update the current interface display state of the application;

[0306] The second processing module 802 is specifically configured to:

[0307] When the interface display state meets the preset layer composition conditions, render the application interface of an application based on at least one application layer.

[0308] In a possible embodiment, the second processing module 802 is specifically configured to:

[0309] Obtain the historical operation data set generated when an application runs at a historical time;

[0310] Based on each trigger operation responded by an application within a historical time in the historical operation data set, determine the interaction frequency of the application;

[0311] Based on each interface display content of an application within a historical time in the historical operation data set, determine the content importance of the application;

[0312] Based on the interaction frequency and the content importance, determine the rendering priority of an application; wherein, the interaction frequency is positively correlated with the rendering priority, and the content importance is positively correlated with the rendering priority;

[0313] Render the application interface of an application based on at least one application layer according to the rendering priority.

[0314] In a possible embodiment, the second processing module 802 is specifically configured to:

[0315] When the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, extract at least one layer area from at least one application layer based on the area position of the display area;

[0316] Render the application interface of an application based on at least one layer area.

[0317] In a possible embodiment, the virtual client environment is provided by a client simulator, and the second processing module 802 is further configured to:

[0318] When the interface display state does not meet the preset layer composition condition, after delaying for a specified duration starting from the current moment, render the application interface of an application based on at least one application layer at a preconfigured rate and according to a preconfigured resolution; wherein, the preconfigured rate is lower than the average rendering rate of the client simulator, and the preconfigured resolution is lower than the interface resolution of an application.

[0319] Please refer to Figure 9 , which is a computer device 900 provided by an embodiment of the present application. The computer device 900 may be, for example, Figure 1C the simulator server 102 of the client simulator in. The current version and historical versions of the data storage program and the application software corresponding to the data storage program may be installed on the computer device 900. The computer device 900 includes a processor 980 and a memory 920.

[0320] In some embodiments, the computer device 900 may include a display unit 940. The display unit 940 includes a display panel 941 for displaying a user interaction operation interface, etc.

[0321] In a possible embodiment, the display panel 941 may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED), etc.

[0322] The processor 980 is configured to read a computer program and then execute the method defined by the computer program. For example, the processor 980 reads a data storage program or file, etc., so as to run the data storage program on the computer device 900 and display a corresponding interface on the display unit 940. The processor 980 may include one or more general-purpose processors and may also include one or more DSPs (Digital Signal Processors) for performing related operations to implement the technical solutions provided in the embodiments of the present application.

[0323] The memory 920 generally includes internal memory and external memory. The internal memory may be a random access memory (RAM), a read-only memory (ROM), a cache (CACHE), etc. The external memory may be a hard disk, an optical disc, a USB flash drive, a floppy disk, or a tape drive, etc. The memory 920 is used to store computer programs and other data. The computer programs include application programs corresponding to each client, etc. The other data may include an operating system or data generated after the application program is run. The data includes system data (such as configuration parameters of the operating system) and user data. In the embodiments of the present application, the computer programs are stored in the memory 920, and the processor 980 executes the computer programs in the memory 920 to implement any of the methods described in the foregoing figures.

[0324] The processor 980 may receive a task processing request, and the task processing request carries resource configuration data of a target offline task. The processor 980 obtains a mapping relationship from the memory 920 and selects, based on the mapping relationship, idle resources in the node resources of corresponding second scheduling nodes from multiple first scheduling nodes, and at least one target scheduling node that matches the resource configuration data. The processor 980 uses the at least one target scheduling node to separately schedule the idle resources of the corresponding second scheduling nodes to process the target offline task and obtains a task processing result.

[0325] The above-mentioned display unit 940 is configured to receive input digital information, character information, or contact touch operations / non-contact gestures, and generate signal inputs related to user settings and function controls of the computer device 900, etc. Specifically, in the embodiments of the present application, the display unit 940 may include a display panel 941. The display panel 941, such as a touch screen, can collect touch operations of a user on or near it (such as a user using a finger, a stylus, or any suitable object or accessory to operate on the display panel 941 or near the display panel 941), and drive corresponding connection devices according to a preset program.

[0326] In a possible embodiment, the display panel 941 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the player, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 980, and can also receive and execute the commands sent by the processor 980.

[0327] Among them, the display panel 941 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the display unit 940, in some embodiments, the computer device 900 may further include an input unit 930. The input unit 930 may include an image input device 931 and other input devices 932. The other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), trackball, mouse, joystick, etc.

[0328] In addition to the above, the computer device 900 may further include a power supply 990 for powering other modules, an audio circuit 960, a near field communication module 970, and an RF circuit 910. The computer device 900 may further include one or more sensors 950, such as an acceleration sensor, a light sensor, a pressure sensor, etc. The audio circuit 960 specifically includes a speaker 961 and a microphone 962, etc. For example, the computer device 900 can collect the user's voice through the microphone 962 and perform corresponding operations.

[0329] As an embodiment, the number of processors 980 may be one or more. The processor 980 and the memory 920 may be coupled or relatively independent.

[0330] As an embodiment, Figure 9 the processor 980 in Figure 8 may be used to implement the functions of the first processing module 801 and the second processing module 802 in

[0331] As an embodiment, Figure 9 the processor 980 in

[0332] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by a computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the computer program is executed, it performs the steps including those of the above method embodiments. The aforementioned storage medium includes various media that can store program codes, such as removable storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0333] Alternatively, if the above integrated units of the present invention are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. For example, it is embodied through a computer program product that is stored in a storage medium and includes a computer program for causing a computer device to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media that can store program codes, such as removable storage devices, ROM, RAM, magnetic disks, or optical discs.

[0334] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these changes and modifications.

Claims

1. A method for displaying an application interface, characterized in that: include: When a layer creation instruction for one of at least one application is detected, a current interface display state of the one application is obtained; wherein the at least one application is installed in a virtual client environment; the virtual client environment is a client environment of a second type of client provided on a first type of client; the first type of client and the second type of client are different; When the interface display state meets the preset layer creation condition, based on the preset memory allocation strategy corresponding to the one application, a corresponding cache space is allocated to the one application; In the cache space, at least one application layer is created according to the layer attribute data and application running data carried by the layer creation instruction; Based on the at least one application layer, an application interface of the application program is rendered.

2. The method according to claim 1, characterized in that: The memory allocation strategy is obtained in the following way: Obtain a historical operation data set generated when the application is run at a historical time; Extracting an interface feature set of the application program from the historical operation data set; wherein the interface feature set is used to: describe the interface changes of the application interface of the application program during the historical time; In the pre-stored allocation sub-strategy set, at least one allocation sub-strategy matching the interface feature set is selected for fusion to obtain the memory allocation strategy.

3. The method according to claim 2, characterized in that The extracting the interface feature set of the application from the historical operation data set includes at least one of the following operations: Based on the historical operation data set, the historical display states of the application program in the historical time are extracted, and the state switching features are added as interface features to the interface feature set; Based on the historical operation data set, the display styles of each interface of the application program in the historical time are extracted, and the style rendering features are added as interface features to the interface feature set; Based on the historical operation data set, the display content of each interface of the application program in the historical time, extracting content rendering features as interface features and adding them into the interface feature set; Based on the historical running data set, the interface rendering data of the application within the historical time period, the rendering rate feature is extracted as the interface feature and added into the interface feature set.

4. The method according to claim 1, characterized in that The interface display status indicates at least one of the following states: The one application is running in the foreground or in the background; The application interface of the application program is not covered by other interfaces or is covered by other interfaces; There is an uncovered display area in the application interface of the one application program, and the area position of the display area.

5. The method according to claim 1, characterized in that The allocating corresponding cache space to the one application based on the memory allocation policy preset for the one application includes at least one of the following operations: When the number of times that the application interface of the one application program switches from other states to the target state that is not covered by other interfaces within a unit time of the historical time reaches a number threshold, a corresponding cache space is allocated to the one application program based on a preset first adjustment amount and a preset resource amount; When the amount of style resources consumed by rendering the interface display style of the application interface of the one application in the unit time of the historical time reaches the style resource threshold, allocating corresponding cache space for the one application based on the preset second adjustment amount and the preset resource amount; When the content resource usage consumed by rendering the interface display content of the application interface of the one application within the unit time of the historical time reaches the content resource threshold, allocating corresponding cache space for the one application based on the preset third adjustment amount and the preset resource amount; When the average rendering rate of rendering the application interface of the one application reaches the rate threshold, a corresponding cache space is allocated to the one application based on a preset fourth adjustment amount and a preset resource amount.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the interface display state does not meet the preset layer creation condition, counting the current client resource usage of the first type of client; When the client resource usage reaches the client resource threshold, a corresponding cache space is allocated to the application after a preset delay with the current time as the starting time.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the interface display state does not meet the preset layer creation condition, associating the one application with the preset storage space; In the preset storage space, at least one application layer is created according to the layer attribute data and application running data carried by the layer creation instruction; Based on the at least one application layer, an application interface of the application program is rendered.

8. The method according to claim 7, characterized in that When the interface display state does not meet the preset layer creation condition, associating the one application with the preset storage space includes: When the interface display state does not meet the preset layer creation condition, obtaining a historical operation data set generated by the application program when it was running at a historical time; Based on the historical running data set, each historical display state of the application program in the historical time period is counted, with the current time being the end time, for continuous time intervals that do not meet the layer creation conditions, to obtain the covering duration; Based on the adding time of each historical operation data in the historical operation data set, determining the content change amount of the interface display content of the application interface of the one application between every two adjacent adding time points; Based on the covering time or the content change amount, the one application is associated with a preset storage space.

9. The method according to any one of claims 1 to 5, characterized in that: The step of creating at least one application layer in the cache space according to the layer attribute data and the application running data carried by the layer creation instruction includes: Obtain a historical operation data set generated when the application is run at a historical time; The number of times the application program switches from other states to a target state that is not covered by other interfaces during the historical time period based on the historical operation data set; When the switching number reaches the switching number threshold, at least one basic layer is created based on a preset layer template and according to the layer attribute data carried by the layer creation instruction; When the interface display state is in the target state, display elements are loaded in at least one basic layer based on the application running data carried by the layer creation instruction to obtain at least one application layer.

10. The method according to any one of claims 1 to 5, characterized in that: The step of creating at least one application layer in the cache space according to the layer attribute data and the application running data carried by the layer creation instruction includes: When the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, based on the area position of the display area, extracting attribute sub-data corresponding to the display area from the layer attribute data carried by the layer creation instruction; In the cache space, at least one basic layer is established based on the attribute sub-data and a preset layer template; Based on the area position of the display area, extracting the operation sub-data corresponding to the display area from the application operation data carried by the layer creation instruction; In the cache space, display elements are loaded in at least one basic layer based on the running sub-data to obtain at least one application layer.

11. The method according to any one of claims 1 to 5, characterized in that: The rendering of the application interface of the application program based on the at least one application layer includes: When a layer composition instruction for an application is detected, the current interface display state of the application is updated; When the interface display state meets the preset layer synthesis condition, the application interface of the application program is rendered based on the at least one application layer.

12. The method according to claim 11, characterized in that The rendering of the application interface of the application program based on the at least one application layer includes: Obtain a historical operation data set generated when the application is run at a historical time; Determine the interaction frequency of the application program based on each trigger operation to which the application program responds within the historical time in the historical operation data set; Determining the importance of the content of the application program based on the content displayed on each interface of the application program during the historical time in the historical operation data set; Determining a rendering priority of the one application based on the interaction frequency and the content importance; wherein the interaction frequency is positively correlated with the rendering priority, and the content importance is positively correlated with the rendering priority; Based on the at least one application layer, an application interface of the application program is rendered according to the rendering priority.

13. The method according to claim 11, characterized in that The rendering of the application interface of the application program based on the at least one application layer includes: When the interface display state indicates that the application interface is not covered by other interfaces and there is an uncovered display area, extracting at least one layer area from the at least one application layer based on the area position of the display area; Based on the at least one layer area, an application interface of the application is rendered.

14. The method according to claim 11, characterized in that The virtual client environment is provided by a client simulator, and the method further comprises: When the interface display state does not meet the preset layer synthesis conditions, the application interface of the one application is rendered at a preconfigured rate, based on the at least one application layer, and at a preconfigured resolution after a specified period of time with the current time as the starting time; wherein the preconfigured rate is lower than the average rendering rate of the client simulator, and the preconfigured resolution is lower than the interface resolution of the one application.

15. A display device for an application interface, characterized in that: include: A first processing module: configured to obtain a current interface display state of one of at least one application program when a layer creation instruction for the one application program is detected; wherein the at least one application program is installed in a virtual client environment; The virtual client environment is a client environment of a second type of client provided on a first type of client; the first type of client and the second type of client are different; The second processing module is used for allocating corresponding cache space to the one application based on the preset memory allocation strategy corresponding to the one application when the interface display state meets the preset layer creation condition; The second processing module is further used to: create at least one application layer in the cache space according to the layer attribute data and application running data carried by the layer creation instruction; The second processing module is further used to render an application interface of the application program based on the at least one application layer.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.

17. A computer device, characterized in that: include: Memory for storing computer programs; A processor is used to call the computer program stored in the memory, and execute the method according to any one of claims 1 to 14 according to the obtained computer program.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to make a computer execute the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Resource allocation method, device, terminal, and storage medium

    CN109408223A

  • Graphic display method and device based on screen layering

    CN110517184A

  • Interface rendering method and device, terminal equipment and computer readable storage medium

    CN113655880A

  • Page processing method and device, computer equipment and computer readable storage medium

    CN118093083A