A display method and device of an application interface, an apparatus, and a storage medium

By detecting the interface display status and allocating cache space in a virtual client environment, the problem of wasted storage resources caused by indiscriminate allocation is solved, and the display efficiency and running efficiency of the application interface are improved.

CN120066653BActive Publication Date: 2025-11-04TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, cache space is allocated indiscriminately to each application launched and running in a virtual client environment, resulting in excessive storage resource consumption and reduced display efficiency of the application interface.

Method used

When a layer creation command is detected, the application's interface display status is obtained. Only when the preset conditions are met is cache space allocated to it. The application layer is created based on the memory allocation strategy to avoid indiscriminate allocation and optimize memory usage.

Benefits of technology

By allocating memory strategically, the rendering pressure on the virtual client environment is reduced, improving the display and running efficiency of the application interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066653B_ABST
    Figure CN120066653B_ABST
Patent Text Reader

Abstract

The application provides a display method and device of an application interface, equipment and a storage medium, and is used for solving the problem of low display efficiency of an application interface of an application program. In the method, when a layer creation instruction for an application program is detected, the current interface display state of the application program is acquired; when the interface display state meets a preset layer creation condition, a corresponding cache space is allocated for the application program based on a preset memory allocation strategy corresponding to the application program; at least one application layer is created in the cache space according to layer attribute data and application running data carried by the layer creation instruction; and the application interface of the application program is rendered based on the at least one application layer. By setting the layer creation condition and the memory allocation strategy, a 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] The present application relates to the technical field of computer, and particularly relates to a display method and device of an application interface, an apparatus and a storage medium. BACKGROUND

[0002] With the continuous development of technology, more and more first-type clients can be installed with a client simulator, the client simulator can provide a virtual client environment in the first-type client, the virtual client environment can simulate a client environment of a second-type client to run an application program, so that the application interface presented when the application program runs on the second-type client can be displayed on the first-type client.

[0003] For example, in the development scenario of a mobile phone-side application program, a mobile phone-side simulator can be installed on a computer side, the mobile phone-side simulator can provide a virtual mobile phone-side environment, the mobile phone-side application program can be installed in the virtual mobile phone-side environment to simulate the running process of the mobile phone-side application program on the mobile phone side.

[0004] Therefore, after the mobile phone-side application program is developed, the mobile phone-side application program can be run in the virtual client environment for running test to find and fix the development bugs of the developed mobile phone-side application program when presenting each application interface on the mobile phone side.

[0005] In the related art, after at least one application program is started and runs in the virtual client environment, the following operations can be performed on the at least one application program respectively:

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

[0007] However, this indiscriminate allocation of cache space to each started and run application program will occupy a large amount of storage resources, increase the rendering pressure in the virtual client environment, reduce the application running efficiency in the virtual client environment, and make the display efficiency of the application interface of the application program low. SUMMARY

[0008] The embodiments of the present application provide a display method and device of an application interface, an apparatus and a storage medium, which are used to solve the problem of low display efficiency of the application interface of the application program.

[0009] In a first aspect, a display method of an application interface is provided, comprising:

[0010] when a layer creation instruction for one of the at least one application program is detected, obtaining a current interface display state of the one application program; 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;

[0011] when the interface display state meets a preset layer creation condition, allocating a corresponding cache space for the one application program based on a preset memory allocation strategy corresponding to the one application program;

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

[0013] rendering an application interface of the one application program based on the at least one application layer.

[0014] In a second aspect, a display device of an application interface is provided, comprising:

[0015] a first processing module configured to, when a layer creation instruction for one of the at least one application program is detected, obtain a current interface display state of the one application program; 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;

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

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

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

[0019] Optionally, the memory allocation strategy 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 program runs at a historical time;

[0021] extract an interface feature set of the one application program from the historical running data set, wherein the interface feature set is used to describe interface changes of an application interface of the one application program in the historical time;

[0022] select at least one allocation sub-strategy that matches the interface feature set from the pre-stored allocation sub-strategies, and fuse the at least one allocation sub-strategy to obtain the memory allocation strategy.

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

[0024] extract a state switching feature as an interface feature into the interface feature set based on each historical display state of the one application program in the historical time in the historical running data set;

[0025] extract a style rendering feature as an interface feature into the interface feature set based on each interface display style of the one application program in the historical time in the historical running data set;

[0026] extract a content rendering feature as an interface feature into the interface feature set based on each interface display content of the one application program in the historical time in the historical running data set;

[0027] extract a rendering rate feature as an interface feature into the interface feature set based on interface rendering data of the one application program in the historical time in the historical running data set.

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

[0029] the one application program is in foreground running or background running;

[0030] the application interface of the one application program is not covered by other interfaces or is covered by other interfaces;

[0031] the application interface of the one application program has a display area that is not covered, and a region 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 that the application interface of the one application program is switched from other states to a target state that is not covered by other interfaces in a unit time of the historical time reaches a threshold number of times, allocate a corresponding cache space for the one application program based on a preset first adjustment amount and a preset resource amount;

[0034] When the interface display style of the application interface of the one application program consumes the style resource occupation amount reaching the style resource threshold value in the unit time of the historical time, the second adjustment amount and the preset resource amount are used to allocate the corresponding cache space for the one application program;

[0035] When the interface display content of the application interface of the one application program consumes the content resource occupation amount reaching the content resource threshold value in the unit time of the historical time, the third adjustment amount and the preset resource amount are used to allocate the corresponding cache space for the one application program;

[0036] When the average rendering rate of the application interface of the one application program reaches the rate threshold value, the fourth adjustment amount and the preset resource amount are used to allocate the corresponding cache space for the one application program.

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

[0038] When the interface display state does not meet the preset layer creation condition, the current client resource occupation amount of the first type of client is counted;

[0039] When the client resource occupation amount reaches the client resource threshold value, the one application program is allocated the corresponding cache space after a preset delay from the current time as a starting time.

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

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

[0042] At least one application layer is created in the preset storage space according to the layer attribute data and the application running data carried by the layer creation instruction;

[0043] The application interface of the one application program is rendered 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, a historical running data set generated by the one application program when running at a historical time is obtained;

[0046] Based on each historical display state of the one application program in the historical time in the historical running data set, a continuous time interval in which the interface display state does not meet the layer creation condition is counted with the current time as an ending time, and a covering time length is obtained.

[0047] determine, based on the adding time of each historical running data in the historical running data set, a content change amount of interface display content of the application interface of the one application program between every two adjacent adding times;

[0048] associate the one application program with the preset storage space based on the covering duration or the content change amount.

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

[0050] obtain a historical running data set generated by the one application program when running at a historical time;

[0051] based on the historical running data set, a switching number of the one application program from other states to a target state that is not covered by other interfaces within the historical time;

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

[0053] when the interface display state is in the target state, load and display elements in at least one basic layer based on application running data carried in the layer creation instruction, and 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 attribute sub-data corresponding to the display area from layer attribute data carried in the layer creation instruction based on the area position of the display area;

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

[0057] extract running sub-data corresponding to the display area from application running data carried in the layer creation instruction based on the area position of the display area;

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

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

[0060] when the layer synthesis instruction for the one application program is detected, update the current interface display state of the one application program;

[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 program based on the at least one application layer.

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

[0064] acquire a historical running data set generated when the one application program runs at a historical time;

[0065] determine an interaction frequency of the one application program based on each trigger operation responded by the one application program in the historical running data set within the historical time;

[0066] determine a content importance of the one application program based on each interface display content of the one application program in the historical running data set within the historical time;

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

[0068] render the application interface of the one application program based on the at least one application layer 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, extract at least one layer area from the at least one application layer based on a region position of the display area;

[0071] render the application interface of the one application program based on the at least one layer area.

[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, render the application interface of the one application program based on the at least one application layer according to a preset resolution at a preset rate after delaying for a specified time length from a current time as a starting time; the preset rate is lower than an average rendering rate of the client simulator, and the preset resolution is lower than an interface resolution of the one application program.

[0074] In a third aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method according to the first aspect.

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

[0076] a memory for storing a computer program;

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

[0078] In a fifth aspect, a computer readable storage medium is provided, which stores a computer program for causing a computer to execute the method according to the first aspect.

[0079] In the embodiments of the present application, for each application program installed in the virtual client environment, when the layer creation instruction is detected, the current interface display state of the application program is first obtained, and when the interface display state meets the preset layer creation condition, the corresponding cache space is allocated for the application program, thereby realizing the targeted memory allocation process, avoiding the unnecessary storage resource occupation caused by the indiscriminate allocation of cache space for each application program, so that unnecessary application interfaces can be rendered, the rendering pressure in the virtual client environment can be reduced, the application running efficiency in the virtual client environment can be improved, and the display efficiency of the application interface of the application program can be improved.

[0080] Further, when allocating the cache space for the application program, the memory allocation strategy preset for the corresponding application program can be used for allocation, so that different application programs can be configured with different memory allocation strategies, thereby further realizing the targeted memory allocation process, avoiding the problem of low storage resource utilization caused by the unified memory allocation strategy, and reducing the occupation of the application running space in the virtual client environment, thereby improving the application running efficiency in the virtual client environment, and improving the display efficiency of the application interface of the application program.

[0081] Further, the application interface of the application program can be rendered based on at least one application layer created for the application program, so that when no operation triggered for the virtual client environment is involved, the environment layer is not repeatedly created, thereby further reducing the unnecessary occupation of storage resources and the rendering pressure in the virtual client environment, and to some extent, the display efficiency of the application interface of the application program can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0082] Figure 1A An application field diagram of the display method of the application interface provided by the embodiments of the present application;

[0083] Figure 1B A principle diagram of a display method of an application interface in the related art;

[0084] Figure 1C An application scenario diagram of a display method of an application interface provided by an embodiment of the present application;

[0085] Figure 2 A flow diagram of a display method of an application interface provided by an embodiment of the present application;

[0086] Figure 3A A principle diagram of a display method of an application interface provided by an embodiment of the present application;

[0087] Figure 3B A principle diagram of a display method of an application interface provided by an embodiment of the present application Figure Two ;

[0088] Figure 3C A principle diagram of a display method of an application interface provided by an embodiment of the present application;

[0089] Figure 4A A principle diagram of a display method of an application interface provided by an embodiment of the present application;

[0090] Figure 4B A principle diagram of a display method of an application interface provided by an embodiment of the present application;

[0091] Figure 5A A principle diagram of a display method of an application interface provided by an embodiment of the present application;

[0092] Figure 5B A principle diagram of a display method of an application interface provided by an embodiment of the present application Figure Seven ;

[0093] Figure 6A A principle diagram of a display method of an application interface provided by an embodiment of the present application Figure Eight ;

[0094] Figure 6B A principle diagram of a display method of an application interface provided by an embodiment of the present application Figure Nine ;

[0095] Figure 7 A flow diagram of a display method of an application interface provided by an embodiment of the present application Figure Two ;

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

[0097] Figure 9 A structural schematic diagram of a display device of an application interface provided by an embodiment of the present application Figure Two . DETAILED DESCRIPTION

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

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

[0100] (1) Client emulator:

[0101] The client emulator can emulate the operating system of the second type of client on the first type of client on which the client emulator is installed, so that the application program developed for the second type of client can be downloaded and used on the first type of client.

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

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

[0104] The mobile phone emulator Guest end includes: the virtual client environment created by the mobile phone emulator Host end on the computer. In the virtual client environment, the application program 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 in which various application programs can be built. For example, the Android operating system is an open source operating system based on the Linux kernel, which is applied to mobile devices (such as smart phones and tablet computers) and other embedded devices.

[0107] (3) Layer:

[0108] The layer is a container containing a plurality of display elements, and can manage the display positions of the display elements. The application layer of an application can include interface display content of the application; and the environment layer of an operating system can include system display content such as a status bar and a navigation bar.

[0109] Embodiments of the present application relate to artificial intelligence (AI) technology and cloud computing, which can be applied to many fields, such as common smart home, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned vehicles, autonomous vehicles, intelligent transportation, intelligent maps, assisted driving, vehicle terminals, aircraft, digital twins, virtual humans, robots, artificial intelligence generated content (AIGC), conversational interaction, intelligent medical care, 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, the detection of the layer creation instruction, the operation of obtaining the interface display state, and the obtaining of the historical running data set are related to data. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related 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 or a part of a computer program with a predetermined function, and works with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) 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 an overall module or unit that includes the functions of the module or unit.

[0112] The application field of the display method of the application interface provided by the embodiments of the present application will be briefly introduced below.

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

[0114] For example, in the large-screen use scenario of a mobile phone application, please refer to Figure 1AIn the notebook computer, an Android emulator is installed, the Android emulator simulates an Android operating system of a mobile phone to provide a virtual client environment. A plurality of application programs are installed in the virtual client environment, including an application program A, an application program B, and an application program L. When an application program (for example, the application program C) is started, an application interface of the application program C can be presented on a display screen of the notebook computer. Through the notebook computer, an interactive operation can be triggered on the application interface for the application program C to present different display contents on the application interface and implement different application functions.

[0115] For another example, in a development scenario of a mobile phone-side application program, a mobile phone-side emulator can be installed on a computer side, the mobile phone-side emulator can simulate at least one operating system to provide at least one virtual mobile phone-side environment. A mobile phone-side application program can be installed in the virtual mobile phone-side environment to simulate a running process of the mobile phone-side application program on a mobile phone side. Thus, after the mobile phone-side application program is developed, the mobile phone-side application program can be tested in the virtual client environment to find and repair development vulnerabilities of the mobile phone-side application program when each application interface of the mobile phone-side application program is presented on the mobile phone side.

[0116] In the related art, after at least one application program is started and runs in the virtual client environment, the following operations can be performed on the at least one application program respectively:

[0117] After the application program is started, a cache space is allocated to the application program according to a preset resource amount, the cache space is used to store application running data of the application program. At least one application layer is created in the cache space based on the application running data stored in the cache space. The application interface of the application program is rendered based on the at least one created application layer, and at least one environment layer, an emulator layer, and a launcher layer involved in the virtual client environment, 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 1BFor example, in the case that only the application interface of application C is displayed in the foreground on a notebook computer, and the application interfaces of application A and application B are not displayed, the 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 related to the application interface of application A, and can also be used to store at least one environment layer (such as an environment status bar layer) related to the virtual client environment provided by the client simulator, and can also be used to store the simulator layer and the launcher layer provided by the client simulator for application A (both of which can be transparent layers) for carrying the application interface of application A, and the like.

[0119] This way of allocating the cache space to each application without distinction will occupy a large amount of storage resources, and the application interfaces of application A, application B and application C all need to be rendered in the corresponding cache space, which increases the rendering pressure of the client simulator, thereby reducing the running efficiency of the client simulator and making the display efficiency of the application interface of the application low.

[0120] In order to solve the problem of low display efficiency of the application interface of the application, the present application provides a display method of an application interface. In the method, when a layer creation instruction for one of the at least one application is detected, the current interface display state of the one application is obtained. When the interface display state meets the preset layer creation condition, the corresponding cache space is allocated to the one application based on the preset memory allocation strategy of the one application. In the cache space, at least one application layer is created according to the layer attribute data and the application running data carried by the layer creation instruction. The application interface of the one application is rendered based on the at least one application layer. 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.

[0121] In the embodiment of the present application, for each application installed in the virtual client environment, when the layer creation instruction is detected, the current interface display state of the application is obtained first, and then the corresponding cache space is allocated to the application when the interface display state meets the preset layer creation condition, so as to realize the targeted memory allocation process and avoid the unnecessary occupation of storage resources caused by the way of allocating the cache space to each application without distinction, thereby not needing to render unnecessary application interfaces, reducing the rendering pressure in the virtual client environment, 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.

[0122] Further, when allocating the cache space for the application program, the allocation can be based on a preset memory allocation strategy for the application program, so that different application programs can be configured with different memory allocation strategies, further realizing a targeted memory allocation process, avoiding the problem of low storage resource utilization caused by a unified memory allocation strategy, and thus improving the application running efficiency in the virtual client environment, 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 based on at least one application layer created for the application program, so that only at least one application layer needs to be stored in the cache space, so that when no operation triggered for the virtual client environment is involved, no environment layer needs to be repeatedly created, and no environment layer needs to be stored, further reducing unnecessary storage resource occupation and rendering pressure in the virtual client environment, and to some extent, achieving the purpose of improving the display efficiency of the application interface of the application program.

[0124] The virtual client environment can be provided by a client simulator, on a first type of client on which the client simulator is installed, or by calling an environment simulation function provided by the first type of client, without limitation. In the embodiments of the present application, the virtual client environment is provided by a client simulator.

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

[0126] Please refer to Figure 1C An application scenario of the display method of the application interface provided by the present application is shown in the figure. The application scenario includes a first type of client 101 installed with a client simulator and a simulator server 102 of the client simulator; the first type of client 101 and the simulator server 102 can communicate with each other; the communication mode can be wired communication technology, such as a network cable or a serial port cable, or wireless communication technology, such as Bluetooth or wireless fidelity (WIFI), without limitation.

[0127] The first type of client 101 generally refers to a device that can install a client simulator, such as a terminal device, a third-party application program accessible by the terminal device, or a webpage accessible by the terminal device. The simulator server 102 generally refers to a device that can provide a simulator function for a client simulator, such as a terminal device or a server.

[0128] The terminal device includes but is not limited to a mobile phone, a computer, a smart medical device, a smart home appliance, a vehicle-mounted terminal, an aircraft, and the like. The server includes but is not limited to a cloud server, a local server, or an associated third-party server, and the like. The first type of client 101 and the emulator server 102 can both use cloud computing to reduce the occupation of local computing resources; similarly, cloud storage can also be used to reduce the occupation of local storage resources.

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

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

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

[0132] The following is based on Figure 1C , the display method of the application interface provided by the embodiment of the application is specifically introduced. The method can be applied to a client emulator, a first type of client with environment simulation function, and the like, and the specific limitation is not made, and in the embodiment of the application, the application in the client emulator is taken as an example for introduction.

[0133] The client simulator can provide a virtual client environment of the second type of client on the first type of client where the client simulator is installed. The first type of client and the second type of client are different, where 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 a Windows operating system), and the second type of client is a mobile phone using a mobile operating system (such as an Android operating system); the first type of client and the second type of client can also be clients using different hardware configurations, for example, the first type of client is a computer using a solid state disk, 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 function, and the second type of client is a mobile phone with mobile communication function, and 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.

[0135] The virtual client environment of the second type of client can be created on the first type of client by running the client simulator to simulate the operating system of the second type of client, so that the use process of the second type of client can be simulated in the virtual client environment. For example, the client simulator can be run on a computer using a Windows operating system to create a virtual client environment of a mobile phone, which 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 program can be installed, and each of the at least one application program is an application program developed based on the mobile operating system used by the second type of client, and therefore can only be installed and run in the virtual client environment.

[0137] After each application program is started and run in the virtual client environment, a window can be created on the first type of client as an application interface, and by rendering the application interface, different interface display contents of the application program 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] The display method of the application interface provided by the embodiments of the present application will be described in detail below taking an application program as an example, and the display process of the application interface of other application programs is similar and will not be described here. Please refer to Figure 2 A flowchart of the display method of the application interface provided by the embodiments of the present application.

[0139] S201, in response to detecting the layer creation instruction for the application program, obtaining a current interface display state of the application program.

[0140] The application program can generate a layer creation instruction in response to a trigger operation. The layer creation instruction is used to instruct to create at least one application layer for the application program. The trigger operation can be an active trigger for the application program through operation of the first type of client, or a passive trigger for the application program through operation of other clients. The trigger operation can be an interactive operation triggered for the application program, such as a content sending operation in an instant messaging scenario, an option submission operation in a question answering scenario, a video playing operation in a video playing scenario, a content browsing operation in a short video playing scenario, and the like, without limitation. The trigger operation can also be a data update operation triggered for the application program, such as a reply presentation operation in an instant messaging scenario, a score presentation operation in a question answering scenario, a comment presentation operation in a real-time comment scenario, and the like, without limitation.

[0141] Please refer to Figure 3A , an application interface of a reading application program A is presented, and a plurality of electronic book cover thumbnails of respective electronic books are presented in the application interface. In response to a selection operation triggered for one electronic book cover thumbnail, the application interface is switched to present electronic book content of the corresponding electronic book.

[0142] Please refer to Figure 3B , an application interface of an instant messaging application program B is presented, and conversation content with one contact person is presented in the application interface. In response to a reply operation triggered for the contact person, the application interface is switched to present updated conversation content, so as to ensure that the latest conversation content is displayed in the application interface.

[0143] In response to detecting the layer creation instruction for the application program, it is determined that the application layer needs to be created to re-render the application interface of the application program. Then, the current interface display state of the application program can be obtained, and the display process of the application interface is selected through the current interface display state. Different display processes are executed for different interface display states, so as to improve the display flexibility.

[0144] The layer creation instruction can be a calling statement of a layer creation function, or a sending instruction of a layer creation signal, without limitation. Different detection methods can be set for different layer creation instructions. For example, when the layer creation instruction is a calling statement of a layer creation function, an interception function can be written in the layer creation function. When the interception function is called, it is determined that the layer creation instruction is detected.

[0145] As an embodiment, the interface display state can represent the visibility of the application interface, for example, the interface display state indicates at least one of the following states, different states reflect the visibility of the application interface from different granularity, so that the allocation process of the cache space with different precision can be realized, etc.

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

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

[0148] Through this interface display state, the display priority of the application interface can be reflected to a certain extent. The application interface in foreground running has a higher display priority, so the application layer can be created for it preferentially; and the application interface in background running has a lower display priority, so the application layer is temporarily created for it. From the perspective of layer creation, resources can be flexibly allocated to ensure the stable running of the client simulator.

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

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

[0151] Through the interface display state, the display priority of the application interface can be further subdivided for the application program running in the foreground. The application interface running in the foreground and not covered by other interfaces has a higher display priority, and thus an application layer can be created for the application interface. The application interface running in the foreground and covered by other interfaces has a lower display priority, and thus the creation of an application layer for the application interface is temporarily suspended. Thus, based on whether the application interface is visible, the resource is flexibly allocated from the perspective of layer creation, and the stable running of the client simulator is effectively ensured.

[0152] State three: the application interface of the application program has an uncovered display region, and the region position of the display region.

[0153] Please refer to (3) in Figure 3C , the application program A, the application program B and the application program C are running in the virtual client environment. The application interface of the application program C has an uncovered display region, and the region position of the display region is the position of the application interface. The application interface of the application program A has an uncovered display region, and the region position of the display region is the region position surrounded by the solid line. The application interface of the application program B is considered to have no uncovered display region.

[0154] Through the interface display state, the display priority of the application interface can be further subdivided for the application program running in the foreground. The application interface running in the foreground and not covered by other interfaces has a higher display priority, and thus an application layer can be created for the application interface. The application interface running in the foreground and covered by other interfaces has a lower display priority, and thus the creation of an application layer for the application interface is temporarily suspended. Thus, based on whether the application interface is visible, the resource is flexibly allocated from the perspective of layer creation, and the stable running of the client simulator is effectively ensured.

[0155] There are various methods for obtaining the interface display state. For example, current task stack information is obtained 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 currently running application program. The application program corresponding to the response task at the top of the stack is running in the foreground. For another example, the display levels of the windows presented by the first type of client are obtained to determine whether the application interfaces corresponding to the windows are covered by other interfaces. For another example, the pixel coordinates of the display direction of each window presented by the first type of client in the display coordinate system are obtained. When the pixel coordinates of the same pixel position in the windows are all maximum values, the pixel position is an uncovered pixel position. A plurality of consecutive uncovered pixel positions can constitute an uncovered display region. The region position of the display region can be determined according to the pixel position, and the specific obtaining method is not limited.

[0156] S202, when the interface display state meets the preset layer creation condition, an application program is allocated with corresponding cache space based on a preset memory allocation strategy corresponding to the application program.

[0157] After obtaining the interface display state, it can be determined whether the interface display state meets the preset layer creation condition. It is determined whether to create an application layer according to the layer creation instruction through the layer creation condition. When the interface display state meets the preset layer creation condition, corresponding cache space can be allocated for an application program based on a preset memory allocation strategy corresponding to the application program for creating an application layer. When the interface display state does not meet the preset layer creation condition, an application layer can not be created according to the layer creation instruction, or an application layer can not be directly created according to the layer creation instruction. Details are described below.

[0158] There are many layer creation conditions, and some of them are described below. Other layer creation conditions are not listed here.

[0159] Layer creation condition one: foreground running

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

[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 program is not covered by other interfaces, it is determined that the interface display state meets the preset layer creation condition. For example, when the interface display state directly indicates that the application interface of the application program is not covered by other interfaces, it is determined that the interface display state meets the preset layer creation condition. 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 of the application interface, it means that the application interface is not covered by other interfaces, and then it can be determined that the interface display state meets the preset layer creation condition.

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

[0164] In an embodiment, when the interface display state indicates that the application interface of the application program has an uncovered display region, it is determined that the interface display state meets the preset layer creation condition. For example, when the interface display state directly indicates that the application interface of the application program has an uncovered display region, it is determined that the interface display state meets the preset layer creation condition. For another example, when the interface display state indicates that the application interface of the application program is not covered by other interfaces, it is indicated that the application interface must have an uncovered display region, and then it can be determined that the interface display state meets the preset layer creation condition, and so on.

[0165] In an embodiment, when the interface display state meets the preset layer creation condition, a memory allocation strategy preset for the application program can be acquired, and the application program is allocated with a corresponding cache space based on the memory allocation strategy, which is used to create an application layer.

[0166] The memory allocation strategy can be preset by using various methods. Two of them are taken as examples for introduction, and other preset methods are not listed here.

[0167] Preset method one:

[0168] A historical running data set generated by an application program at a historical time is acquired. The historical running data set generated at the historical time reflects the state switching frequency, rendering demand, and the like, and can be used to dynamically adjust the fixed preset resource amount, set a matching memory allocation strategy for the application program, thereby improving the resource utilization rate, reducing the rendering pressure, and improving the display efficiency of the application interface.

[0169] The historical time can be a time interval with a preset time period as a length and a current time as an ending time, or a time interval between specified start and end times, or at least one period before the current time with a preset length as a period, and the like, and is not limited in particular.

[0170] The historical running data can include a historical display state, the historical display state representing the interface display state of the application program at a historical time, an interface display style, the interface display style representing the display style of the application interface of the application program at a historical time, such as texture, animation, pattern, color, and the like, interface display content, the interface display content representing the display content of the application interface of the application program at a historical time, such as video, image, key, chart, text, and the like, interface rendering data, the interface rendering data describing the start and end time of each rendering of the application interface, resource occupation amount, and the like, and a trigger operation responsive to a historical time, the trigger operation being used to instruct to re-render the application interface.

[0171] From the historical running data set, an interface feature set of an application is extracted. The interface feature set is used to: describe the interface changes of an application interface of an application in a historical time. The interface changes include at least one of state changes, display style changes, display content changes, rendering completion degree changes, etc.

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

[0173] Based on the historical display states of an application in the historical running data set, the state switching features are extracted as interface features. For example, the historical display state of an application at a first historical time is foreground running, the historical display state of an application at a second historical time is background running, and the historical display state of an application at a third historical time is foreground running, etc. Then, the number of times of switching from background running to foreground running in a unit of time can be counted to obtain the state switching feature.

[0174] Based on the interface display styles of an application in the historical running data set, the style rendering features are extracted as interface features. For example, the interface display styles in the application interface of an application at a first historical time include a lyric scrolling style and a singer poster cyclic playing style when playing a first song, and the interface display styles in the application interface of an application at a second historical time include a comment list style when playing the first song. Then, the resource consumption amount when rendering the interface display styles in a unit of time can be counted to obtain the style rendering feature.

[0175] Based on the interface display contents of an application in the historical running data set, the content rendering features are extracted as interface features. For example, the interface display contents in the application interface of an application at a first historical time include text contents of a first article, and the interface display contents in the application interface of an application at a second historical time include figure contents of the first article. Then, the resource consumption amount when rendering the interface display contents in a unit of time can be counted to obtain the content rendering feature.

[0176] Based on the interface rendering data of an application in the historical running data set, the rendering rate features are extracted as interface features, etc. For example, the interface rendering data includes data generated by an application in a time period starting from a time when an application interface is triggered to be re-rendered to a time when the re-rendering of the application interface is completed. Then, the rendering rate in a unit of time can be determined in combination with the starting time and the ending time to obtain the rendering rate feature.

[0177] From the perspective of multiple interface changes, the cache demand is quantified, so that more accurate cache space allocation can be achieved, resource utilization can be improved, rendering pressure can be reduced, and display efficiency of an application interface can be improved.

[0178] 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. For example, for each interface feature in the interface feature set, one matching allocation sub-strategy is selected; for another example, in the interface feature set, a specified number or a specified proportion of multiple interface features match one allocation sub-strategy, and the allocation sub-strategy is selected. Thus, the selected allocation sub-strategies are fused to obtain the memory allocation strategy, and the fusion can be a union or an intersection of the allocation sub-strategies, and the specific implementation is not limited.

[0179] The allocation sub-strategy set can include multiple allocation sub-strategies, and the following will be introduced by taking several of them as examples, and other allocation sub-strategies will not be listed here.

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

[0181] The number of times that an application interface of an application program is switched from other states to a target state per unit time reaches a number threshold, a preset resource amount is adjusted based on a preset first adjustment amount to obtain a first resource allocation amount.

[0182] Switching from other states to a target state represents that the application interface is switched 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 that is not covered by other interfaces, and the other state is an interface display state other than the target state.

[0183] Allocation sub-strategy two: style rendering demand

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

[0185] Allocation sub-strategy three: content rendering demand

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

[0187] Allocation sub-strategy three: rendering rate demand

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

[0189] Preset method two:

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

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

[0192] For another example, when the update period 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, update the memory allocation strategy based on the update content, and implement a personalized preset memory allocation strategy.

[0193] As an embodiment, there are various allocation methods for allocating a corresponding cache space for an application based on the preset memory allocation strategy of the corresponding application. Hereinafter, several of them will be introduced as examples, and other allocation methods will not be listed one by one. Various allocation methods can also be used in combination, and the specifics are not limited.

[0194] Allocation method one:

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

[0196] For example, allocate a corresponding cache space for an application according to the sum of the first adjustment amount and the preset resource amount; for another example, allocate a corresponding cache space for an application according to the product of the first adjustment amount and the preset resource amount; for another example, allocate a corresponding cache space for an application according to the sum of the product and the preset resource amount, and the specifics are not limited.

[0197] Allocation method two:

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

[0199] The allocation of the cache space based on the preset second adjustment amount and the preset resource amount is similar to the allocation of the cache space based on the preset first adjustment amount and the preset resource amount, and details are not repeated herein. When the allocation methods one and two are combined, the cache space can be allocated based on the first adjustment amount, the second adjustment amount and the preset resource amount, for example, the sum of the first adjustment amount, the second adjustment amount and the preset resource amount is used to allocate the corresponding cache space for an application program, and details are not limited.

[0200] The allocation method three is:

[0201] When the content resource occupation amount consumed by the interface display content of the application interface of the application program rendered in a unit time of a historical time reaches a content resource threshold value, the corresponding cache space is allocated for the application program based on a preset third adjustment amount and a preset resource amount.

[0202] The allocation of the cache space based on the preset third adjustment amount and the preset resource amount is similar to the allocation of the cache space based on the preset first adjustment amount and the preset resource amount, and details are not repeated herein when the allocation methods are combined.

[0203] The allocation method four is:

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

[0205] The allocation of the cache space based on the preset fourth adjustment amount and the preset resource amount is similar to the allocation of the cache space based on the preset first adjustment amount and the preset resource amount, and details are not repeated herein when the allocation methods are combined.

[0206] From multiple perspectives, the cache demand is quantified, so that more accurate allocation of cache space can be achieved, resource utilization is improved, rendering pressure is reduced, and display efficiency of the application interface is improved.

[0207] Please refer to Figure 4A When the layer creation instruction for the application program A, the application program B and the application program C is detected, the interface display state of the application program A, the application program B and the application program C is respectively acquired. If the layer creation condition is not covered by other interfaces, only the interface display state of the application program C meets the layer creation condition, and the corresponding cache space is allocated for the application program C based on the preset memory allocation strategy of the application program C, and the cache space is not allocated for the application program A and the application program B.

[0208] As an embodiment, when the interface display state meets the preset layer creation condition, the corresponding cache space is allocated to the application program. When the interface display state does not meet the preset layer creation condition, the corresponding cache space is allocated to the application program in a delayed manner. 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 occupation of the first type of client is counted. When the client resource occupation reaches the client resource threshold, the corresponding cache space is allocated to the application program after delaying a preset delay time from the current time. Otherwise, the application program is associated with a preset memory pool, and the memory pool is used to manage the layer resources. Thus, when the interface display state of the application program is not covered by other interfaces, the layer resources can be directly obtained from the memory pool without allocating the cache space again, thereby avoiding the performance overhead caused by frequent cache allocation and release.

[0209] When the interface display state does not meet the preset layer creation condition, the corresponding cache space is allocated to the application program in a delayed manner. 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 occupation of the first type of client is counted. When the client resource occupation reaches the client resource threshold, the corresponding cache space is allocated to the application program after delaying a preset delay time from the current time. Otherwise, the application program is associated with a preset memory pool, and the memory pool is used to manage the layer resources. Thus, when the interface display state of the application program is not covered by other interfaces, the layer resources can be directly obtained from the memory pool without allocating the cache space again, thereby avoiding the performance overhead caused by frequent cache allocation and release.

[0210] Based on the above Figure 4A Please refer to Figure 4B Only the interface display state of the application program C meets the layer creation condition, the corresponding cache space is allocated to the application program C based on the preset memory allocation strategy of the corresponding application program C. Meanwhile, the current client resource occupation of the first type of client is counted. When the client resource occupation reaches the client resource threshold, the corresponding cache space is allocated to the application program A after delaying a preset delay time from the current time. After delaying a preset delay time, the current client resource occupation of the first type of client is counted again. When the counted client resource occupation still reaches the client resource threshold, the corresponding cache space is allocated to the application program B after delaying a preset delay time from the current time, i.e., after delaying two preset delay times.

[0211] As an embodiment, when the interface display state does not meet the preset layer creation condition, an application program is associated with a preset storage space. In the preset storage space, at least one application layer is created according to the layer attribute data and the application running data carried by the layer creation instruction. Based on the at least one application layer, the application interface of the application program is rendered.

[0212] When the layer creation condition is not met, the application interface of the application program can not be allocated a separate cache space, but a common preset storage space, such as a preset cache space or a memory pool, is used to reduce the performance overhead caused by memory allocation and release.

[0213] Based on Figure 4A Please refer to Figure 5A Only the interface display state of the application program C meets the layer creation condition, the corresponding cache space is allocated to the application program C based on the preset memory allocation strategy of the application program C. At the same time, the application program A is associated with the preset storage space, and the application program B is associated with the preset storage space, and the application program A and the application program B are no longer allocated a separate cache space.

[0214] As an embodiment, when the interface display state does not meet the preset layer creation condition, a historical running data set generated by an application program at a historical time is obtained, and whether the application program is in a long-time invisible state or a long-time display similar display content is reflected through the historical running data set. For the application program in a long-time invisible state or a long-time display similar display content, the application program is associated with the preset storage space to avoid unnecessary resource occupation caused by redundant content.

[0215] At the same time, when the layer creation condition is not met, the cache space used for rendering the application interface will not be released immediately, but the resources involved in the cache space will be stored in the preset storage space (such as a memory pool) first, and then the cache space is released. Therefore, when the interface display state is switched to meet the preset layer creation condition, the resources involved in the cache space can be quickly used from the preset storage space without the need to allocate the cache space again, thereby avoiding the performance overhead caused by frequent memory allocation and release.

[0216] Therefore, based on each historical display state of an application program in a historical time in the historical running data set, the continuous time interval that does not meet the layer creation condition can be counted with the current time as the end time to obtain the covering duration. Based on the addition time of each historical running data in the historical running data set, the content change amount of the interface display content of the application interface of an application program between two adjacent addition times can be determined. Based on the covering duration or the content change amount, the application program is associated with the preset storage space, for example, the application program is associated with the preset storage space when the covering duration is greater than a covering duration threshold; for example, the application program is associated with the preset storage space when the content change amount is less than a change amount threshold; for example, the application program is associated with the preset storage space when the covering duration is greater than the covering duration threshold and the content change amount is less than the change amount threshold, and the specific implementation is not limited.

[0217] Based onFigure 4A Please refer to Figure 5B Only the interface display state of the application program C meets the layer creation condition, the corresponding cache space is allocated for the application program C based on the preset memory allocation strategy of the corresponding application program C. Based on the historical running data set, it is determined that the application interface of the application program B has a covering time length greater than a covering time length threshold value at a historical time, and then the application program B is associated with a preset storage space. Since the application program A has an unoccluded display area, the application program A can be allocated with a corresponding cache space after a preset delay from the current time as a starting time.

[0218] S203, in the cache space, at least one application layer is created according to the layer attribute data carried by the layer creation instruction and the application running data.

[0219] The layer attribute data is used to describe the layer size, the organization and arrangement mode of each display element, and the display style of each display element, such as texture, animation, pattern, color, etc. The application running data can include the current interface display state; It can also include the current display content of the application interface of the application program, such as video, image, key, chart, text, etc. It can also include the current response trigger operation, which 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 that the target state is switched from other states to a state that is not covered by other interfaces at a historical time. When the historical time is frequently switched, at least one basic layer can be created based on a preset layer template, and display elements can be loaded in the at least one basic layer whenever the target state is switched to a state that is not covered by other interfaces, to obtain at least one application layer, thereby improving the layer creation efficiency and improving the display efficiency of the application interface.

[0221] A historical running data set generated when an application program runs at a historical time is obtained, and based on the historical running data set, the number of times that an application program is switched from other states to a target state that is not covered by other interfaces at a historical time. When the number of times reaches a switching number threshold, at least one basic layer is created based on a preset layer template according to the layer attribute data carried by the layer creation instruction.

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

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

[0224] Based on the region position of the display area, attribute sub-data corresponding to the display area is extracted 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 region position of the display area, running sub-data corresponding to the display area is extracted from the application running data carried by the layer creation instruction. In the cache space, display elements are loaded in the at least one basic layer based on the running sub-data, and at least one application layer is obtained. By reducing invalid memory reading and data transmission, the bottleneck in the rendering process is reduced.

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

[0226] After obtaining the at least one application layer, the application interface of the application program can be rendered based on the at least one application layer. For example, the at least one application layer is combined into a frame image, and the frame image is used to update the application interface of the application program.

[0227] Please refer to Figure 6A When rendering the application interface of the application program, only the at least one application layer is used to filter out the environment layers provided by the virtual client environment, such as wallpaper, status bar (statusBar) and gesture bar (navigationBar), etc., highlighting the application interface itself. Not only does it reduce the rendering complexity, but it also avoids unnecessary resource occupation and display area occupation by not storing the environment layers in the buffer space, thereby improving the display efficiency and display simplicity of the application interface.

[0228] Please refer to Figure 6B When rendering the application interface of the application program, only the at least one application layer is used to filter out the emulator layer and the launcher layer, etc. The fixed layer is used to carry the application interface, and the fixed layer has a standard transparency of 100%, a display style that does not change or a display content that does not change. Not only does it reduce the rendering complexity, but it also avoids unnecessary resource occupation and display area occupation by not storing the environment layers in the buffer space, thereby improving the display efficiency of the application interface.

[0229] As an embodiment, when rendering an application interface of an application program, a layer composition instruction can be generated for compositing at least one application layer. Then, when the layer composition instruction for the application program is detected, the current interface display state of the application program is updated. It is determined whether the current interface display state meets a preset layer composition condition. When the interface display state meets the preset layer composition condition, it indicates that the application interface needs to be rendered preferentially, and therefore the application interface of the application program can be rendered based on the at least one application layer. When the interface display state does not meet the preset layer composition condition, it indicates that the application interface can be rendered temporarily, and the application interface can be selectively rendered through the layer composition condition, so as to avoid abnormal situations such as that the application interface that is visible is not rendered for a long time, and the display efficiency of the application interface is improved.

[0230] As an embodiment, when rendering an application interface of an application program, the interaction frequency and the content importance of the application program can be counted based on a historical running data set generated at a historical time, so that the rendering priority of the application program can be determined based on the interaction frequency and the content importance, and an ordered layer composition process is realized, and the display efficiency of the application interface is improved.

[0231] A historical running data set generated when an application program runs at a historical time is acquired. Based on the historical running data set, the interaction frequency of an application program is determined based on each trigger operation responded by the application program at the historical time. Based on the historical running data set, the content importance of an application program is determined based on each interface display content of the application program at the historical time. The content importance can be quantified by at least one of the number of times of being triggered by the operation, the time length in the target state that is not covered by other interfaces, and the content amount, for example, the higher the number of times of being triggered by the operation, the longer the time length in the target state that is not covered by other interfaces, and the greater the content amount, the higher the content importance.

[0232] Based on the interaction frequency and the content importance, the rendering priority of an application program is determined, 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, the application interface of the application program is rendered 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 a display area not covered, the composition process can be simplified, at least one layer area is extracted from at least one application layer based on the area position of the display area. Based on the at least one layer area, the application interface of the application program is rendered, and the entire application layer does not need to be composed, thereby reducing the resources occupied during layer composition and improving the rendering efficiency, thereby improving the display efficiency of the application interface.

[0234] As an embodiment, when the interface display state does not meet the preset layer composition condition, a low-efficiency and low-precision method can be used for rendering, reducing the calculation amount, calculation frequency, and rendering frequency involved in layer composition, avoiding occupying more resources, and to a certain extent, the display efficiency of the application interface can be improved.

[0235] At the starting time of the current time, the application interface of the application program is rendered at a preconfigured rate based on at least one application layer at a preconfigured resolution after a specified time period is delayed; 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 application program.

[0236] Next, taking a client simulator software as an example, the display method of the application interface provided by the embodiments of the application is introduced, please refer to Figure 7 .

[0237] S701, in the first type of client, starting the client simulator software.

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

[0239] S702, obtaining the memory allocation strategy of each of the at least one installed application program 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 program, each configuration information includes the memory allocation strategy and the switch setting preset for the corresponding application program, and the switch setting is used to indicate the opening or closing of the setting options included in the application program. The configuration information can be distinguished by the package name of the installation package of the corresponding application program to realize the display process of the differentiated application interface.

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

[0242] The emulator function can be implemented by an Android Open Source Project Emulator (AOSP) emulator, and through the emulator function, a wallpaper, a SystemUI, a Launcher, and other related settings of the second type of client can be loaded.

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

[0244] The layer creation interceptor is initialized, and the layer creation instruction for the application program can be intercepted through the layer creation interceptor, so that the layer creation instruction for the application program can be detected.

[0245] S705, it is determined whether the interface display state meets the preset layer creation condition.

[0246] S706, when the interface display state meets the preset layer creation condition, a preset memory allocation strategy corresponding to the application program is loaded, and the corresponding cache space is allocated for the application program based on the loaded memory allocation strategy.

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

[0248] S707, 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.

[0249] When a process has occupied a large amount of cache space, the emulator function can optimize the use of cache space by adjusting the size of the application layer, to ensure that the memory allocation of the buffer in the layer reaches the optimum. 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, and effectively avoid memory waste or crash problems, especially in the case of memory shortage. After at least one application layer is created, S709-S712 are continued to be executed.

[0250] S708, when the interface display state does not meet the preset layer creation condition, the application program is associated with the preset storage space, the interface display state is continuously updated until the interface display state meets the preset layer creation condition, and 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. After at least one application layer is created, S709-S712 are continued to be executed.

[0251] S709, when the layer composition instruction for the application program is detected, updating the current interface display state of the application program.

[0252] The layer composition interceptor is initialized, and the layer composition instruction for the application program can be intercepted through the layer composition interceptor, so that the layer composition instruction for the application program can be detected.

[0253] S710, determining whether the interface display state meets the preset layer composition condition.

[0254] S711, when the interface display state meets the preset layer composition condition, rendering the application interface of the application program based on the at least one application layer.

[0255] The emulator function can filter the environment layer according to the loading of the wallpaper, the system interface (SystemUI), the desktop launcher (Launcher) and other related settings of the second type of client, ensure that these environment layers do not participate in the layer composition process, avoid unnecessary resource consumption, optimize the composition efficiency, reduce unnecessary rendering burden, and exclude unimportant or unnecessary layers to ensure efficient rendering process.

[0256] S712, when the interface display state does not meet the preset layer composition condition, postponing the layer composition process.

[0257] For example, after postponing for a specified time period from the current time as the starting time, the application interface of the application program is rendered at a preconfigured rate based on the at least one application layer and at a preconfigured resolution.

[0258] In the embodiments of the application, the occupation of unnecessary cache resources is intelligently reduced through the layer creation condition and the memory allocation strategy, the occupation of the running resources of the client emulator is greatly reduced, and in particular, in the high-resolution mode, the storage pressure can be effectively relieved. By reducing the composition and memory allocation of some layers or layer regions, the rendering pressure of the client emulator is reduced, the rendering efficiency is improved, and the client emulator is less likely to lag. For the application interface that is covered for a long time or displays similar content, the resources that are no longer needed can be released in time, the problems such as frequent memory recycling or memory overflow caused by memory shortage are reduced, and the stability of the client emulator is improved. For a high-resolution environment (such as 4K or above), the performance bottleneck of the client emulator in the high-resolution mode can be effectively avoided.

[0259] Based on the same inventive concept, the embodiments of the application provide a display device of an application interface, which can realize the functions corresponding to the display method of the application interface. Please refer to Figure 8The apparatus comprises a first processing module 801 and a second processing module 802, wherein:

[0260] The first processing module 801 is configured to acquire a current interface display state of one application when a layer creation instruction for one of the 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;

[0261] The second processing module 802 is configured to allocate a corresponding cache space for one application based on a preset memory allocation strategy corresponding to one application when the interface display state meets a 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 layer attribute data and application running data carried by the layer creation instruction;

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

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

[0265] acquire a historical running data set generated by one application when running at a historical time;

[0266] extract an interface feature set of one application from the historical running data set; wherein the interface feature set is configured to describe interface changes of an application interface of one application within the historical time;

[0267] select at least one allocation sub-strategy matched with the interface feature set from a pre-stored allocation sub-strategy set to obtain the memory allocation strategy.

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

[0269] extract a state switching feature as an interface feature and add the state switching feature to the interface feature set based on each historical display state of one application within the historical time in the historical running data set;

[0270] extract a style rendering feature as an interface feature and add the style rendering feature to the interface feature set based on each interface display style of one application within the historical time in the historical running data set;

[0271] Based on the historical running data set, the content rendering features of the interface display content of an application program in the historical time are extracted as interface features and added to the interface feature set.

[0272] Based on the historical running data set, the rendering rate features of the interface rendering data of an application program in the historical time are extracted as interface features and added 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 program is in foreground operation or background operation;

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

[0276] An application interface of an application program has a display area that is not covered, and the area position 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 that the application interface of an application program is switched from other states to the target state of not being covered by other interfaces in a unit time of the historical time reaches a number threshold, a corresponding cache space is allocated for the application program based on a preset first adjustment amount and a preset resource amount;

[0279] When the style resource occupation amount consumed by the interface display style for rendering the application interface of an application program in a unit time of the historical time reaches a style resource threshold, a corresponding cache space is allocated for the application program based on a preset second adjustment amount and a preset resource amount;

[0280] When the content resource occupation amount consumed by the interface display content for rendering the application interface of an application program in a unit time of the historical time reaches a content resource threshold, a corresponding cache space is allocated for the application program based on a preset third adjustment amount and a preset resource amount;

[0281] When the average rendering rate of the application interface of an application program reaches a rate threshold, a corresponding cache space is allocated for the application program based on a preset fourth adjustment amount and a 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, the current client resource occupation amount of the first type of client is counted;

[0284] When the client resource occupation reaches the client resource threshold, the current time is taken as a starting time, and a preset delay is postponed to allocate the corresponding cache space for an application program.

[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 program with the preset storage space;

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

[0288] Based on the at least one application layer, render an application interface of an application program.

[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 a historical running data set generated when an application program runs at a historical time;

[0291] Based on each historical display state of the application program in the historical time in the historical running data set, take the current time as an ending time, and statistically obtain a continuous time interval that does not meet the layer creation condition, to obtain a covering time length;

[0292] Based on the adding time of each historical running data in the historical running data set, determine a content change amount of the interface display content between every two adjacent adding times of the application interface of an application program;

[0293] Based on the covering time length or the content change amount, associate the application program with the preset storage space.

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

[0295] Obtain a historical running data set generated when an application program runs at a historical time;

[0296] Based on the historical running data set, obtain a switching number of the application program from other states to a target state that is not covered by other interfaces within the historical time;

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

[0298] When the interface display state is in the target state, the display elements are loaded in the at least one basic layer based on the application running data carried in the layer creation instruction, and the 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 a display area that is not covered, attribute sub-data corresponding to the display area is extracted from the layer attribute data carried in the layer creation instruction based on the area position of the display area.

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

[0302] Based on the area position of the display area, running sub-data corresponding to the display area is extracted from the application running data carried in the layer creation instruction.

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

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

[0305] When the layer synthesis instruction for one application program is detected, the current interface display state of the one application program is updated.

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

[0307] When the interface display state meets the preset layer synthesis condition, the application interface of one application program is rendered based on the at least one application layer.

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

[0309] A historical running data set generated when one application program runs at a historical time is obtained.

[0310] Based on each trigger operation responded by one application program in the historical running data set within the historical time, an interaction frequency of one application program is determined.

[0311] Based on each interface display content of one application program in the historical running data set within the historical time, a content importance of one application program is determined.

[0312] Based on the interaction frequency and the content importance, a rendering priority of one application program is determined; 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 the application program according to the rendering priority based on the at least one application layer.

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

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

[0316] render the application interface of the application program based on the 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, render the application interface of the application program at a preset rate based on the at least one application layer according to a preset resolution after delaying for a specified time length from the current time as a starting time; wherein the preset rate is lower than the average rendering rate of the client simulator, and the preset resolution is lower than the interface resolution of the application program.

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

[0320] In some embodiments, the computer device 900 can include a display unit 940, which includes a display panel 941 for displaying a user interaction operation interface and the like.

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

[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 a file, and thus runs the data storage program on the computer device 900, and displays a corresponding interface on the display unit 940. The processor 980 can include one or more general-purpose processors, and can further 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 an internal memory and an external memory. The internal memory can be a RAM (Random Access Memory), a ROM (Read-Only Memory), a CACHE, and the like. The external memory can be a hard disk, an optical disk, a USB disk, a floppy disk, a tape drive, and the like. The memory 920 is configured to store computer programs and other data. The computer programs include application programs corresponding to respective clients, and the like. The other data can include data generated after the operating system or the application programs are run, including system data (for example, 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 one of the methods discussed in the foregoing figures.

[0324] The processor 980 can 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 at least one target scheduling node that matches the resource configuration data from idle resources in node resources of a corresponding second scheduling node based on the mapping relationship and from the plurality of first scheduling nodes. The processor 980 uses the at least one target scheduling node to respectively schedule the idle resources of the corresponding second scheduling node to process the target offline task, and obtains a task processing result.

[0325] The display unit 940 is configured to receive input digital information, character information, or contact touch operation / non-contact gesture, and generate a signal input related to user settings and function control of the computer device 900, and the like. Specifically, in the embodiments of the present application, the display unit 940 can include a display panel 941. The display panel 941, for example, a touch screen, can collect a touch operation (such as a user using a finger, a stylus, or any suitable object or accessory on or near the display panel 941) of the user on or near the display panel 941, and drive a corresponding connection device according to a pre-set program.

[0326] In a possible implementation, the display panel 941 can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the player, detects the signal caused 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 the touch information into touch coordinates, and sends the touch coordinates to the processor 980. The touch controller can also receive the command from the processor 980 and execute the command.

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

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

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

[0330] As an embodiment, Figure 9 The processor 980 in the computer device 900 can be configured to implement functions of the first processing module 801 and the second processing module 802. Figure 8

[0331] As an embodiment, Figure 9 The processor 980 in the computer device 900 can be configured to implement the functions of the server or the terminal device as discussed above.

[0332] ​Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by a computer program. The computer program can be stored in a computer readable storage medium. When the computer program is executed, the steps of the above-mentioned method embodiments are executed. The storage medium includes a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage media that can store program codes.

[0333] Alternatively, the integrated unit of the present application can be stored in a computer readable storage medium if it is realized in the form of a software function module and sold or used as an independent product. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, for example, through a computer program product, which 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 embodiments of the present application. The storage medium includes a mobile storage device, a ROM, a RAM, a magnetic disk or an optical disk, and various storage media that can store program codes.

[0334] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the claims of the present application and their equivalents, the present application also intends to include these modifications and variations.

Claims

1. A display method of an application interface, characterized by, The method comprises the following steps: when a layer creation instruction for one of at least one application program is detected, obtaining a current interface display state of the one application program; 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; when the interface display state meets a preset layer creation condition, allocating a corresponding cache space for the one application program based on a preset memory allocation strategy corresponding to the one application program; in the cache space, creating at least one application layer according to layer attribute data and application running data carried by the layer creation instruction; based on the at least one application layer, rendering an application interface of the one application program; the step of allocating a corresponding cache space for the one application program based on a preset memory allocation strategy corresponding to the one application program comprises at least one of the following operations: when the number of times that the application interface of the one application program is switched from other states to a target state that is not covered by other interfaces in a unit time of a historical time reaches a threshold value, allocating a corresponding cache space for the one application program based on a preset first adjustment amount and a preset resource amount; when the amount of style resource occupied by the interface display style of the application interface of the one application program in a unit time of a historical time reaches a style resource threshold value, allocating a corresponding cache space for the one application program based on a preset second adjustment amount and a preset resource amount; when the amount of content resource occupied by the interface display content of the application interface of the one application program in a unit time of a historical time reaches a content resource threshold value, allocating a corresponding cache space for the one application program based on a preset third adjustment amount and a preset resource amount; when the average rendering rate of the application interface of the one application program reaches a rate threshold value, allocating a corresponding cache space for the one application program based on a preset fourth adjustment amount and a preset resource amount.

2. The method of claim 1, wherein, The memory allocation strategy is obtained in the following way: obtaining a historical running data set generated by the one application program when running in a historical time; from the historical running data set, extracting an interface feature set of the one application program; wherein the interface feature set is used to describe the interface change of the application interface of the one application program in the historical time; in a pre-stored allocation sub-strategy set, selecting at least one allocation sub-strategy matching the interface feature set for fusion to obtain the memory allocation strategy.

3. The method of claim 2, wherein, The step of extracting an interface feature set of the one application program from the historical running data set comprises at least one of the following operations: based on each historical display state of the one application program in the historical running data set, extracting a state switching feature as an interface feature to add to the interface feature set; Based on each interface display style of the one application program in the historical time in the historical running data set, a style rendering feature is extracted as an interface feature and added to the interface feature set; Based on each interface display content of the one application program in the historical time in the historical running data set, a content rendering feature is extracted as an interface feature and added to the interface feature set; Based on the interface rendering data of the one application program in the historical time in the historical running data set, a rendering rate feature is extracted as an interface feature and added to the interface feature set.

4. The method of claim 1, wherein, The interface display state indicates at least one of the following states: The one application program is in foreground operation or background operation; The application interface of the one application program is not covered by other interfaces or is covered by other interfaces; There is a display area that is not covered in the application interface of the one application program, and the area position of the display area.

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

6. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: When the interface display state does not meet the preset layer creation condition, the one application program is associated with a preset storage space; At least one application layer is created in the preset storage space 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 one application program is rendered.

7. The method of claim 6, wherein, When the interface display state does not meet the preset layer creation condition, the one application program is associated with a preset storage space, comprising: When the interface display state does not meet the preset layer creation condition, the historical running data set generated by the one application program when running at a historical time is obtained; Based on each historical display state of the one application program in the historical time in the historical running data set, the continuous time interval that does not meet the layer creation condition is counted with the current time as the end time, and the covering duration is obtained; Based on the addition time of each historical running data in the historical running data set, the content change amount of the interface display content of the application interface of the one application program between every two adjacent addition times is determined; Based on the covering duration or the content change amount, the one application program is associated with a preset storage space.

8. The method according to any one of claims 1 to 4, characterized in that, 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, comprising: Obtain the historical running data set generated by the one application program when running at a historical time; Based on the number of times that the one application program switches from other states to the target state of not being covered by other interfaces within the historical time in the historical running data set; When the switching times reaches a switching times threshold, at least one basic layer is created based on a preset layer template and layer attribute data carried by the layer creation instruction; When the interface display state is in the target state, display elements are loaded and displayed in at least one basic layer based on application running data carried by the layer creation instruction, and at least one application layer is obtained.

9. The method according to any one of claims 1 to 4, characterized in that, The creating, in the cache space, at least one application layer based on the layer attribute data and the application running data carried by the layer creation instruction comprises: When the interface display state indicates that the application interface is not covered by other interfaces and there is a display area that is not covered, attribute sub-data corresponding to the display area is extracted from the layer attribute data carried by the layer creation instruction based on a region position of the display area; In the cache space, at least one basic layer is established based on the attribute sub-data and a preset layer template; Running sub-data corresponding to the display area is extracted from the application running data carried by the layer creation instruction based on the region position of the display area; In the cache space, at least one application layer is obtained by loading and displaying display elements in at least one basic layer based on the running sub-data.

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

11. The method of claim 10, wherein, The rendering of the application interface of the one application program based on the at least one application layer comprises: A historical running data set generated when the one application program runs at a historical time is obtained; An interaction frequency of the one application program is determined based on each trigger operation responded by the one application program in the historical running data set within the historical time; A content importance of the one application program is determined based on each interface display content of the one application program within the historical time in the historical running data set; A rendering priority of the one application program is determined based on the interaction frequency and the content importance; the interaction frequency and the rendering priority are positively correlated, and the content importance and the rendering priority are positively correlated; The application interface of the one application program is rendered based on the at least one application layer and the rendering priority.

12. The method of claim 10, wherein, The rendering of the application interface of the one application program based on the at least one application layer comprises: When the interface display state indicates that the application interface is not covered by other interfaces and there is a display area that is not covered, at least one layer region is extracted from the at least one application layer based on a region position of the display area; The application interface of the one application program is rendered based on the at least one layer region.

13. The method of claim 10, wherein, 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 composition condition, the application interface of the one application program is rendered based on the at least one application layer at a preset rate and at a preset resolution after a specified time period is delayed from a current time as a starting time; the preset rate is lower than an average rendering rate of the client simulator, and the preset resolution is lower than an interface resolution of the one application program.

14. A display device of an application interface, characterized by, The method comprises: The first processing module is configured to obtain a current interface display state of one application program in at least one application program when a layer creation instruction for the one application program is detected; 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 configured to allocate a corresponding cache space for the one application program based on a preset memory allocation strategy corresponding to the one application program when the interface display state meets a preset layer creation condition; The second processing module is further configured to create at least one application layer in the cache space according to layer attribute data and application running data carried in the layer creation instruction; The second processing module is further configured to render an application interface of the one application program based on the at least one application layer; The second processing module is specifically configured to perform at least one of the following operations: When the number of times that the application interface of the one application program is switched from other states to a target state that is not covered by other interfaces in a unit time of a historical time reaches a threshold value, the corresponding cache space is allocated for the one application program based on a preset first adjustment amount and a preset resource amount; When the content resource occupation amount consumed by the interface display content of the application interface of the one application program in a unit time of a historical time reaches a content resource threshold value, the corresponding cache space is allocated for the one application program based on a preset third adjustment amount and a preset resource amount; When the average rendering rate of the application interface of the one application program reaches a rate threshold value, the corresponding cache space is allocated for the one application program based on a preset fourth adjustment amount and a preset resource amount. The computer program is executed by the processor to implement the method of any one of claims 1-13.

15. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method of any one of claims 1-13.

16. A computer device, comprising: The computer program is executed by the processor to implement the method of any one of claims 1-13. The computer program is executed by the processor to implement the method of any one of claims 1-13. ​ 17. A computer-readable storage medium, characterized in that, ​

Citation Information

Patent Citations

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

    CN109408223A

  • Graphic display method and device based on screen layering

    CN110517184A