Resource loading method and device and terminal equipment
By obtaining the hardware level and FPS data of the terminal device, combining the operating status information, determining the display performance level and loading the corresponding resources, the problem of inaccurate loading of terminal device resources is solved, and the display fluency and user experience are improved.
Patent Information
- Application Number
- CN202510578929.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-08-19
AI Technical Summary
In the prior art, the resource loading method of terminal equipment cannot accurately judge terminal performance, resulting in lag when running complex animations and special effects of low-end machines, poor display effects of high-end machines, affecting user experience.
By obtaining the hardware level information of the terminal device and the FPS data within the preset time from the current time, combining the operating status information, the display performance level of the terminal device is determined, and data resources of the corresponding level are loaded.
Improve the accuracy of resource loading, enhance the display fluency and user experience of terminal devices, and reduce maintenance costs.
Smart Images

Figure CN120502103A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a resource loading method, a resource loading device, and a terminal device. Background Art
[0002] With the continuous advancement of science and technology, and the increasing interest in services, more and more companies are turning to interactive games to attract users. By participating in these games, users can earn corresponding service benefits, thereby increasing their interest in consuming these services. However, interactive games are a functional module that requires high terminal performance. The performance of hundreds of millions of users varies greatly. Low-end devices cannot smoothly run complex animations and special effects. Animations running on low-end devices need to be downgraded. However, determining the suitability of game effects and animations based on terminal type is not an accurate method. For example, if a high-end terminal is running a high-load background task, the current terminal performance often cannot support the expected animation and special effects. This can cause lag and poor performance when playing interactive games, affecting the user experience.
[0003] Therefore, it is urgent to provide a method for accurately determining resources suitable for a user terminal and loading the resources. Summary of the Invention
[0004] In view of this, embodiments of the present application provide a resource loading method, apparatus, and terminal device to solve the problem of inaccurate loaded resources in existing resource loading methods.
[0005] According to a first aspect of an embodiment of the present application, a resource loading method is provided, which is applied to a terminal device and includes:
[0006] Acquiring hardware level information of the terminal device; the hardware level information is information determined based on hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content;
[0007] Obtaining first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold;
[0008] Determining first operating status information of the terminal device according to the first FPS data;
[0009] determining a first display performance level of the terminal device based on the first operating state information and the hardware level information;
[0010] A first data resource corresponding to the first display performance level for displaying the dynamic page content is loaded.
[0011] According to a second aspect of an embodiment of the present application, a resource loading apparatus is provided, which is applied to a terminal device and includes:
[0012] A hardware level information acquisition module, configured to acquire hardware level information of the terminal device; the hardware level information is information determined based on hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content;
[0013] An FPS data acquisition module is used to obtain the first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold;
[0014] an operating status information determining module, configured to determine first operating status information of the terminal device according to the first FPS data;
[0015] a display performance level determining module, configured to determine a first display performance level of the terminal device based on the first operating state information and the hardware level information;
[0016] The data resource loading module is used to load a first data resource corresponding to the first display performance level for displaying the dynamic page content.
[0017] According to a third aspect of an embodiment of the present application, a terminal device is provided, including:
[0018] at least one processor; and,
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0021] Acquiring hardware level information of the terminal device; the hardware level information is information determined based on hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content;
[0022] Obtaining first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold;
[0023] Determining first operating status information of the terminal device according to the first FPS data;
[0024] determining a first display performance level of the terminal device based on the first operating state information and the hardware level information;
[0025] A first data resource corresponding to the first display performance level for displaying the dynamic page content is loaded.
[0026] One embodiment of the present specification can at least achieve the following beneficial effects: by obtaining the first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold, determining the first operating status information of the terminal device based on the first FPS data, and obtaining the hardware level information of the terminal device indicating the display performance of the terminal device for dynamic page content, and then determining the first display performance level of the terminal device based on the first operating status information and the hardware level information, and loading the first data resource corresponding to the first display performance level for displaying dynamic page content. Thus, based on the hardware level information of the terminal device, the current display performance of the terminal device for dynamic page content can be measured with reference to the FPS data generated during the operation of the terminal device. The display performance determined based on the hardware level information can be adjusted through the FPS data, thereby improving the accuracy of the first data resource finally loaded, enhancing the smoothness of the terminal device in displaying the first data resource, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0028] Figure 1 This is a schematic diagram of an application scenario of a resource loading method provided by an embodiment of the present application;
[0029] Figure 2 This is a flowchart of a resource loading method provided by an embodiment of the present application;
[0030] Figure 3 This is a schematic diagram of second FPS data during the running of dynamic page content provided by an embodiment of the present application;
[0031] Figure 4 This is a schematic diagram of second FPS data during the running of dynamic page content provided by an embodiment of the present application;
[0032] Figure 5This is a schematic diagram of second FPS data during the running of dynamic page content provided by an embodiment of the present application;
[0033] Figure 6 This is a schematic diagram of the process of initially loading resources provided by an embodiment of the present application;
[0034] Figure 7 This is a flowchart of processing dynamic page content provided by an embodiment of the present application;
[0035] Figure 8 This is a schematic diagram of a process for non-initial resource loading provided by an embodiment of the present application;
[0036] Figure 9 This is an embodiment of the present application corresponding to Figure 2 A schematic structural diagram of a resource loading device;
[0037] Figure 10 This is an embodiment of the present application corresponding to Figure 2 A structural diagram of a terminal device. DETAILED DESCRIPTION
[0038] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.
[0039] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0040] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0041] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0042] In related technologies, in order to enhance the fun of the content displayed on the page, animation effects and special effects can be displayed for users, and in actual application, different animation effects and special effects can be displayed for terminal devices of different hardware levels. The business team needs to collect hundreds of different types of models and their performance data in advance, and divide the model performance levels into three levels based on the performance data. When a user accesses the business's interactive game, it is determined whether it is a high-end, mid-range or low-end phone based on the current mobile phone model, and different levels of materials (animation and special effects) are used for different levels of models. However, due to the large number of models, the model performance level is divided into three levels, and the span between each level is large. It is easy to make inaccurate judgments on the model performance, resulting in the problem of misjudging low-end phones as mid-range phones, causing problems such as easy jamming of mid-range special effects and animations, or misjudging high-end phones as mid-range phones, resulting in the display of dynamic effects or static images with poorer effects.
[0043] In actual applications, in order to avoid the rough gear division that degrades the user experience, terminal devices can be divided into more fine-grained levels. However, due to the different hardware parameters emphasized by different businesses, terminal devices running different businesses can use materials corresponding to different gears for display. This results in the need for different business teams to set the performance gear corresponding to each model based on the hardware parameters that are more important in the business scenario when dividing the gears into more fine-grained levels. For example, a large-scale promotion requires a lot of interaction and animation, which consumes a lot of GPU. The business team corresponding to the large-scale promotion can pay more attention to the impact of the GPU parameters of the terminal device on the performance gear division of the model; for another example, a community forum has no requirements for the GPU, so the business team corresponding to the community forum can reduce the focus on GPU parameters in determining the performance gear corresponding to each model. As a result, different business teams need to maintain different performance gears for different models based on the business they are responsible for, which increases maintenance costs. In addition, whether the performance levels of the models are divided coarsely or finely, more reference is made to the static parameter information of the terminal device. When the user opens too many applications on the terminal device or runs too many program pages in the background, it will also affect the performance of the terminal device, resulting in inaccurate data resources loaded based on the performance of the model levels divided by the business team.
[0044] In order to solve the defects in the relevant technology, in the embodiments of this specification, the operating status information of the terminal device can be determined by obtaining FPS data within a period of time from the current time, and then based on the combination of the operating status information and the hardware level information of the terminal device, the display performance level that the terminal device can actually display for dynamic page content can be determined. In this way, the corresponding data resources can be loaded based on the actual real display performance level, which improves the accuracy of the loaded data resources, eliminates the need for the business team to excessively maintain the model configuration, and reduces maintenance costs.
[0045] The technical solutions provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0046] Figure 1 This is a schematic diagram of an application scenario of a resource loading method provided in an embodiment of this specification.
[0047] like Figure 1 As shown, the solution may include a user terminal 1, a first server 2, and a second server 3. The user terminal 1 may display an embedded web page in the application, and display an interactive game in the embedded web page in the application. The first server 2 may store gear information roughly divided based on the hardware model. The second server 3 may store more detailed gear information divided by each business team based on the requirements of the CPU, GPU, and other information used for each business operation. Specifically, when the user operates the user terminal 1, the user terminal 1 may send the hardware model information of the terminal device to the first server 2. The first server 2 may determine the first gear information corresponding to the hardware model based on the hardware model information and feedback it to the user terminal 1; the user terminal 1 may also determine the business that the user is about to perform based on the user operation, and send the hardware model information and business identification information to the second server 3. The second server 3 may determine the second gear information corresponding to the hardware model information divided in the business scenario based on the hardware model information and business identification information and feedback it to the user terminal 1. The user terminal 1 can determine the hardware level information of the terminal device based on the received first gear information and second gear information. The terminal device 1 can also continuously obtain FPS data within a certain period of time and determine the corresponding operating status information based on the FPS data. The terminal device 1 can determine the display performance level based on the operating status information and the hardware level information, and then load the data resources corresponding to the display performance level and render the data resources in the form of an embedded web page. In this way, the display performance of the terminal device can be considered in multiple dimensions based on the hardware level information and the FPS data, and the data resources that match the display performance of the terminal device can be accurately loaded.
[0048] In such Figure 1In the application scenario shown, the first server 2 can be connected to one or more terminal devices 1 via a local area network connection, a wide area network connection, an Internet connection, or other types of data networks. The second server 3 can be connected to one or more terminal devices 1 via a local area network connection, a wide area network connection, an Internet connection, or other types of data networks. Figure 1 The first server 2 and the second server 3 may include but are not limited to any device, equipment, platform, device cluster, etc. with computing and processing capabilities. The first server 2 and the second server 3 may be servers belonging to the same device cluster. Figure 1 The terminal device 1 may include but is not limited to a smart phone, a tablet computer, a laptop computer, a PDA, a personal computer, a smart home device, a vehicle-mounted device, etc.
[0049] In the present application, a resource loading method is provided. The present application also relates to a resource loading device and a terminal device, which are described in detail one by one in the following embodiments.
[0050] Figure 2 This is a flowchart of a resource loading method provided in an embodiment of this specification.
[0051] From a program perspective, the process can be executed by a program installed on an application terminal. It is understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities. From a hardware perspective, the process can be executed by a terminal device.
[0052] like Figure 2 As shown, the process may include the following steps:
[0053] Step 202: Obtain hardware level information of the terminal device.
[0054] The hardware level information is information determined according to hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content.
[0055] In the embodiments of this specification, the terminal device may be a mobile phone, a laptop computer, a desktop computer, an electronic watch, a wearable electronic device, a tablet computer, a vehicle-mounted device, etc. The hardware level information may be a plurality of levels divided based on hardware parameters, and is mainly used to determine the ability of the terminal device to play dynamic page content. For example, if the ability of the terminal device to play dynamic pages is extremely poor, the hardware level information may be determined to be the fifth level information, and the fifth level dynamic page content may be displayed to maintain the smoothness of the terminal device displaying the page; if the ability of the terminal device to play dynamic pages is relatively poor, the hardware level information may be determined to be the fourth level information, and the fourth level dynamic page content may be displayed, so that the display effect is stronger than the fifth level dynamic page content while maintaining the smoothness of the terminal device displaying the page. By analogy, the first level of hardware level information may correspond to the first level dynamic page content, and the first level page content has a better visual display effect than the second to fifth level page content.
[0056] In the embodiments of this specification, hardware parameters may include terminal device model, CPU, GPU, memory, storage, display, battery capacity, battery life, video capabilities, network connection status, operating system compatibility, cooling system and other parameters.
[0057] In the embodiments of this specification, dynamic page content can be content presented on a user interface with dynamic effects. Examples include web games, advertisements, special effects, interactive animations, and the like. In actual applications, dynamic page content can be rendered based on WebGL technology. Specifically, dynamic page content can be rendered in an embedded page within an application, or in a browser.
[0058] In the embodiments of this specification, the higher the hardware device level, the higher the display performance of the terminal device, which can mean that the terminal device can smoothly display dynamic page content that occupies more hardware resources; if the hardware device level is low, the display performance of the terminal device is low, and the terminal device will be more stuck in displaying dynamic page content that occupies more hardware resources.
[0059] Step 204: Acquire the first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold.
[0060] In the embodiments of this specification, FPS data, i.e., Frames Per Second, can refer to the number of frames transmitted per second, the frame rate per second, or the frame update frequency, and can refer to the number of images a terminal device can render and display per second. The frame rate per second is less than or equal to the screen refresh rate of the terminal device. In practical applications, FPS data can be updated every second, and the terminal device can obtain its own FPS data in real time.
[0061] In the embodiments of this specification, the preset duration threshold can be a duration value obtained based on expert experience, or it can be set by the business team based on actual needs, such as 30s, 10s, 1min, 10min or 20min, or it can be a duration during which the status of the terminal does not change significantly during the user's use of the terminal device, such as 1h, 30min, etc. The first FPS data can represent the FPS data continuously monitored by the terminal device within the range from the first moment obtained by subtracting the time interval from the current moment to the current moment. If the current moment is t0 and the preset duration threshold is △t, the FPS data generated by the terminal device within the time range of [t0-△t, t0] can be obtained. For example, the current moment is 11:39:05 on May 23, 2023, and the preset duration threshold is 10min, then the FPS data obtained from 11:20:05 on May 23, 2023 to 11:30:05 on May 23, 2023 is determined as the first FPS data.
[0062] As another embodiment, optionally, the terminal device can obtain the first FPS data of the terminal device within a target time period of a preset duration; the time interval between the end moment of the target time period and the current moment is less than a preset interval threshold, or the end moment of the target time period is the current moment. The preset duration can be set by the business team based on expert experience, or it can be determined based on the reference value of the FPS generated at each moment. For example, the preset duration is 10s, and the FPS data generated 11 seconds before the end moment does not affect the determination of the terminal device's performance in displaying dynamic pages. The preset duration can be 10s, 1min, 30s, 2min or 8s.
[0063] In actual applications, the first FPS data can be the FPS data generated in a recent time period during the operation of the terminal device, and the current time is not necessarily the statistical end point. Continuing the above example, the current time is 11:39:05 on May 23, 2023, and the preset duration is 1 minute. Then the FPS data obtained from 11:28:35 on May 23, 2023 to 11:29:35 on May 23, 2023 will be determined as the first FPS data.
[0064] Step 206: Determine first operating status information of the terminal device based on the first FPS data.
[0065] In an embodiment of the present specification, the first operating status information may include the average FPS value of the data within the time range; or, it may include the FPS fluctuation value within the time range; or, it may include the average FPS value and the FPS fluctuation value within the time range.
[0066] Step 208: Determine a first display performance level of the terminal device based on the first operating status information and the hardware level information.
[0067] In the embodiments of this specification, the first display performance level may represent the level of dynamic web page content that a terminal device can display. A higher first display performance level may indicate a stronger display performance of the terminal device in displaying dynamic web page content. The first display performance level may be determined after adjusting the hardware level information. The first display performance level may be more consistent with or more descriptive of the terminal device's ability to display dynamic web page content than the level represented by the hardware level information.
[0068] In actual applications, the process of the terminal device obtaining the first operating status information and the hardware level information can be carried out in parallel. For example, while the terminal device is obtaining the first FPS data within the time range and determining the first operating status, the terminal device can also obtain the hardware level information at the same time. Alternatively, the terminal device can first obtain the first FPS data within the time range and determine the first operating status information, and then obtain the hardware level information. Alternatively, the terminal device can first obtain the hardware level information, and then obtain the first FPS data within the time range and determine the first operating status information. The timing of the terminal device obtaining the first FPS data within the time range and determining the first operating status information and the hardware level information can be set based on actual needs and the performance of the terminal device, and is not specifically limited here.
[0069] Step 210: Load a first data resource corresponding to the first display performance level for displaying the dynamic page content.
[0070] In the embodiments of this specification, the first data resource may be a resource used to render dynamic page content on a terminal device. The first data resource may correspond to a first display performance level. The first data resource may include material information displayed in the dynamic page content, such as text information, interactive control information, static image element information, dynamic image element information, etc.
[0071] In the embodiments of this specification, data resources corresponding to lower display performance levels occupy fewer hardware resources of the terminal device when loaded. Data resources corresponding to higher display performance levels occupy more hardware resources of the terminal device when loaded. Specifically, the higher the first display performance level, the higher the corresponding resource level; terminal devices with higher display performance levels have stronger display performance for dynamic page content; data resources with higher resource levels have higher display performance requirements for the terminal device when loaded.
[0072] In the embodiments of this specification, the same dynamic page content may correspond to multiple different levels of dynamic resource information. When loaded, dynamic resource information of different levels occupies different hardware resources of the terminal device, and thus has different requirements for the display performance of the terminal device. Specifically, the higher the resource level of the data resource, the higher the display performance requirements of the terminal device when the data resource is loaded. The higher the resource level of the data resource, the better the visual display effect of the dynamic page content displayed by the terminal device based on the data resource, the cooler the motion effect, and the better visual experience it can bring to the user.
[0073] In actual applications, after determining the display performance level of the terminal device, dynamic resource data of the corresponding resource level can be obtained based on the display performance level of the terminal device. Specifically, if the display performance level of the terminal device is high, dynamic resource data of the higher level is obtained; if the display performance level of the terminal device is low, dynamic resource data of the lower level is obtained.
[0074] As an example, assume that the display performance levels of the terminal device include A, B, and C, and the order of levels from high to low is A>B>C; and assume that the resource levels of the dynamic resource data used to display dynamic page content include A, B, and C, and the order of levels from high to low is A>B>C. If it is determined that the display performance level of the terminal device is A, then the dynamic resource data of level A can be loaded to display the dynamic page content; if it is determined that the display performance level of the terminal device is B, then the dynamic resource data of level B can be loaded to display the dynamic page content corresponding to the dynamic resource data of level B; if it is determined that the display performance level of the terminal device is C, then the dynamic resource data of level C can be loaded to display the dynamic page content corresponding to the dynamic resource data of level C.
[0075] It should be understood that in the methods described in one or more embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0076] Figure 2The method obtains first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold, determines first operating status information of the terminal device based on the first FPS data, and obtains hardware level information of the terminal device indicating the display performance of the terminal device for dynamic page content, and then determines the first display performance level of the terminal device based on the first operating status information and the hardware level information, and loads the first data resource corresponding to the first display performance level for displaying dynamic page content. Thus, based on the hardware level information of the terminal device, the current display performance of the terminal device for dynamic page content can be measured with reference to the FPS data generated during the operation of the terminal device. The display performance determined based on the hardware level information can be adjusted through the FPS data, thereby improving the accuracy of the first data resource finally loaded, enhancing the smoothness of the terminal device in displaying the first data resource, and improving the user experience.
[0077] based on Figure 2 The present specification also provides some improved implementation methods of the method, which are described below.
[0078] In one or more embodiments of the present specification, optionally, before obtaining the hardware level information of the terminal device, it may also include: obtaining the user's access operation to the entry page of the dynamic page content; the entry page is used to obtain the trigger operation of the dynamic page content; the obtaining the hardware level information of the terminal device specifically includes: in response to the access operation, obtaining the hardware level information of the terminal device; the loading of the first data resource corresponding to the first display performance level for displaying the dynamic page content specifically includes: in response to the user's trigger operation on the dynamic page content, loading the first data resource corresponding to the first display performance level for displaying the dynamic page content.
[0079] In the embodiments of this specification, the access operation can be a user triggering operation on a first control for accessing the entry page in a page located on a layer above the entry page in an application running on a terminal device; or, it can be a user triggering operation on link information for accessing the entry page contained in a message interface for displaying messages on the terminal device. The entry page can include a second control for accessing the dynamic page content, so that the user can perform trigger operations such as clicking, long pressing, and sliding on the second control to achieve the purpose of accessing the dynamic page content; it can also include other material information related to the dynamic page content, for example, if the dynamic page content is a dynamic page for obtaining "ingots", the entry page can display "ingots" and the corresponding number of "ingots", etc.; it can also include information related to the business involved in the dynamic page content, such as the business name, business activity information, etc.
[0080] In an embodiment of the present specification, after the first data resource is loaded, a dynamic page can be rendered and displayed on the layer of the entry page; or, after the first data resource is loaded, the page is jumped from the entry page to a new page, and the dynamic page is rendered and displayed on the new page.
[0081] In actual applications, the hardware level information of the terminal device can be obtained from the server after accessing the portal page; or, it can be obtained from the server before accessing the portal page; or, it can be obtained from the server during the access to the portal page. If the terminal device has the hardware level information cached locally, it can be obtained directly from the local cache space of the terminal device without obtaining it from the server, thereby improving the efficiency of obtaining the hardware level information and further improving the efficiency of loading the first data resource.
[0082] In one or more embodiments of this specification, the server may store a correspondence between device information of a terminal device and hardware level information, so as to accurately obtain the hardware level information. Optionally, obtaining the hardware level information of the terminal device may include: obtaining the device information of the terminal device; and obtaining, from the server, pre-set hardware level information corresponding to the device information.
[0083] In the embodiments of this specification, device information may include device model information; and may also include configuration parameter information, such as GPU parameters, CPU parameters, memory parameters, screen refresh rate, etc. Device information may represent hardware parameter information of a terminal device.
[0084] In the embodiments of this specification, obtaining the pre-set hardware level information corresponding to the device information can specifically involve calling a level information acquisition interface to obtain high, medium, and low-level level information from a first server; or, alternatively, the terminal device can call a business team maintenance interface to obtain business-divided level information from a second server. This allows for rapid and accurate acquisition of hardware level information, thereby quickly determining the first data resource to be loaded.
[0085] In the embodiments of this specification, the terminal device can filter out low-end devices through the level information acquisition interface or the business team maintenance interface to prevent users from experiencing serious lag, crashes, and other problems.
[0086] In order to quickly obtain hardware level information when loading data resources again, optionally, in the embodiment of this specification, after obtaining the preset hardware level information corresponding to the device information from the server, the method may further include: storing the hardware level information in the cache of the terminal device.
[0087] In the embodiment of this specification, the terminal device can cache the hardware level information locally after obtaining the hardware level information. When the terminal device obtains the hardware level information next time, it can obtain it from the local cache, thereby improving the efficiency of obtaining the hardware level information.
[0088] In actual applications, the terminal device can set a validity period for the locally cached hardware level information and record the storage time of the stored hardware level information. If the terminal device determines that the locally cached hardware level information has expired based on the validity period and storage time, it can re-acquire the hardware level information from the server to improve the freshness of the acquired hardware level information and further improve the validity of the hardware level information. In one or more embodiments of the present specification, the first display performance level can be determined based on the hardware level information and the first FPS data to improve the accuracy of the obtained first display performance level. Optionally, determining the first display performance level of the terminal device based on the first operating state information and the hardware level information can specifically include: determining whether the first operating state information meets at least one of a first condition and a second condition; the first condition is that the first FPS mean determined based on the first FPS data is less than or equal to a first mean threshold; the second condition is that the fluctuation value of the first FPS data within a time width set in the preset time length is greater than or equal to a first fluctuation threshold; if the first operating state information does not meet the first condition and the second condition, then determining the hardware level information as the first display performance level.
[0089] In the embodiments of this specification, the first mean threshold can be used to represent the minimum FPS mean that the user's terminal device can accept. In actual application, if the actual FPS mean is less than or equal to the first mean threshold representing the minimum FPS mean that the terminal device can accept, the user will feel unsmooth and noticeable lag when using the terminal device, and the user experience is very poor. If the actual FPS mean is less than or equal to the first mean threshold representing the minimum FPS mean that the terminal device can accept, it is not suitable to run dynamic page content. The first mean threshold can be determined based on expert experience or based on the performance of the user's terminal device. The first mean threshold can be a value such as 30, 25, or 27. The first mean threshold used to judge terminal devices of different hardware models can be the same, or set to different values based on the performance of the terminal device. There is no specific limitation here, and it can be set based on actual needs.
[0090] In the embodiments of this specification, the set time width can be determined based on expert experience and can be a time width less than or equal to a preset time length, or a shorter time width. For example, if the preset time length is 2 minutes, the set time width can be a value such as 1 second or 2 seconds. The fluctuation value can represent the difference between the actual FPS value and the FPS mean corresponding to a certain moment within the set time width; or, it can also represent the difference between the maximum FPS value and the minimum FPS value within the set time width. The specific method used to determine the fluctuation value can be determined based on the actual settings of the R&D user.
[0091] In the embodiments of this specification, the first fluctuation threshold may be a relatively large fluctuation value, which may be determined based on expert experience or the actual performance of the terminal device, such as fluctuation values of 8, 5, or 6. If the first fluctuation threshold is reached within a set time width, it indicates a large fluctuation within a short period of time, indicating that the device performance is unstable and unsuitable for loading the first data resource, which may cause instability in the dynamic page content displayed based on the first data resource.
[0092] In an embodiment of the present specification, if the first operating status information does not meet the first condition and the second condition, it may indicate that when the first FPS mean is greater than the first mean threshold, the fluctuation value of the first FPS data within the time width set in the preset time length is less than the first fluctuation threshold, thereby determining that the user's terminal device can stably and smoothly display the dynamic page content corresponding to the first display performance level, and can load the first numerical resource corresponding to the first display performance level, thereby improving the accuracy of the loaded first data resource, improving the smoothness of the dynamic page content displayed by the terminal device, meeting the user's visual needs, and improving the user's perception and experience of interacting with the dynamic page content.
[0093] In one or more embodiments of the present specification, if the first operating status information satisfies at least one of the first and second conditions, a backup data resource may be loaded and displayed to avoid displaying a lag image for the user, thereby impacting the user's experience. Optionally, after determining whether the first operating status information satisfies at least one of the first and second conditions, the method may further include: if the first operating status information satisfies at least one of the first and second conditions, loading a backup data resource for displaying backup digital content; and when the backup data resource is loaded, the amount of hardware resources occupied by the terminal device is less than the amount of hardware resources occupied by the first data resource when the first data resource is loaded.
[0094] In an embodiment of the present specification, the first operating status information satisfies at least one of the first condition and the second condition, which may indicate that the first FPS mean is less than or equal to the first mean threshold; or, it may indicate that the fluctuation value of the first FPS data within the time width set in the preset time length is greater than or equal to the first fluctuation threshold; or, it may indicate that when the first FPS mean is less than or equal to the first mean threshold, the fluctuation value of the first FPS data within the time width set in the preset time length is greater than or equal to the first fluctuation threshold.
[0095] In the embodiments of this specification, the backup data resource may refer to a resource used to display dynamic effects at a lower level than the first data resource, or a static data resource. The display effect of the backup digital content is inferior to the display effect of the dynamic page content corresponding to the first data resource. Hardware resources may refer to resources such as the CPU, GPU, and memory of the terminal device.
[0096] In the embodiments of the present specification, the terminal device may, when determining that the first operating state is poor, use lower-end resources for displaying dynamic effects, and may display smooth and clear backup digital content for the user, thereby avoiding problems such as freezes and unsmoothness in displaying the dynamic page content corresponding to the original level of data resources, which may affect the user's experience and feelings of use.
[0097] In one or more embodiments of the present specification, in order to improve the accuracy of the loaded data resources, the first operating state can also be judged based on the third condition to determine the level corresponding to the data resources that need to be loaded. Optionally, if the first operating state information does not meet the first condition and the second condition, the hardware level information is determined to be the first display performance level, which can specifically include: if the first operating state information does not meet the first condition and the second condition, then judging whether the first operating state information meets the third condition; the third condition is that the first FPS mean is less than or equal to the second mean threshold, and the fluctuation value of the first FPS data in the preset time length is greater than or equal to the second fluctuation threshold; the second mean threshold is greater than the first mean threshold; the second fluctuation threshold is less than the first fluctuation threshold; if the first operating state information does not meet the third condition, then the hardware level information is determined to be the first display performance level.
[0098] In the embodiments of this specification, the second mean threshold is used to reflect the average performance status of smooth and non-stuttering operation of a terminal device under normal user usage. The second mean threshold can be a value greater than the first mean threshold. For example, if the first mean threshold is 30, the second mean threshold can be set to 50. The second mean threshold can be determined based on expert experience or the performance of the terminal device.
[0099] In an embodiment of the present specification, the fluctuation value of the first FPS data within a preset duration may represent the difference between the maximum FPS value of the first FPS data within the preset duration and the minimum FPS value within the preset duration; or, the difference between the maximum FPS value of the first FPS data within the preset duration and the first FPS average; or, the difference between the minimum FPS value of the first FPS data within the preset duration and the first FPS average. The second fluctuation threshold may be determined based on expert experience or terminal device performance, and the second fluctuation threshold may be smaller than the first fluctuation threshold. For example, if the first fluctuation threshold is 8, the second fluctuation threshold may be set to 5.
[0100] In an embodiment of the present specification, the first operating status information does not meet the third condition, which may indicate that the first FPS mean is greater than the second mean threshold; or, it may indicate that the fluctuation value of the first FPS data in the preset time length is less than the second fluctuation threshold; or, it may also indicate that when the first FPS mean is greater than the second mean threshold, the fluctuation value of the first FPS data in the preset time length is less than the second fluctuation threshold.
[0101] In an embodiment of the present specification, if the first operating status information does not meet the third condition, it may indicate that the terminal device is able to smoothly and stably display the dynamic page content corresponding to the hardware level information, and the hardware level information can be determined as the first display performance level, so that whether the terminal device is suitable for displaying the dynamic page content corresponding to the hardware level information can be determined based on the FPS data of the terminal device, and the accuracy of the hardware level information can be determined through the dynamically changing FPS data.
[0102] In one or more embodiments of this specification, the hardware level information may be downgraded so that the loaded data resources can meet the performance requirements of the terminal device. Optionally, after determining whether the first operating status information satisfies a third condition, the method may further include: if the first operating status information satisfies the third condition, determining a level lower than the hardware level information as the first display performance level; data resources corresponding to a lower display performance level occupy fewer hardware resources of the terminal device when loaded.
[0103] In this embodiment of the present specification, the first operating status information satisfies the third condition, which may indicate that the first FPS mean is less than or equal to the second mean threshold, and the fluctuation value of the first FPS data in the preset time length is greater than or equal to the second fluctuation threshold.
[0104] In the embodiment of this specification, if the first operating state information satisfies the third condition, a level one level lower than the hardware level information may be determined as the first display performance level. For example, if the display performance level corresponding to the hardware level information is level 5, the first display performance level may be lowered by one level to determine it as level 4. The data resources corresponding to the display performance level 4 occupy fewer hardware resources of the terminal device, such as the CPU, GPU, and memory, than the data resources corresponding to the display performance level 5.
[0105] In actual applications, if the first operating status information meets the third condition, the hardware level information can be downgraded by one level, and the downgraded level can be used as the first display performance level. Dynamic page information corresponding to data resources that occupy less hardware resources of the terminal device can be displayed, thereby improving the smoothness of the dynamic page information displayed on the terminal device, avoiding freezes, and improving user experience.
[0106] In one or more embodiments of the present specification, determining whether the first operating status information satisfies the third condition may specifically include: if the first operating status information does not satisfy the first condition and the second condition, and the dynamic page content is displayed in the form of a mask, then determining whether the first operating status information satisfies the third condition.
[0107] In the embodiments of this specification, an overlay generally refers to a semi-transparent layer superimposed on a page to display additional content or animation without leaving the current page. It can be understood that dynamic page content can be additional content or animation displayed superimposed on the entry page.
[0108] In the embodiment of the present specification, if the dynamic page content is displayed in the form of a mask, it can be determined that other page content, such as the entry page, needs to be displayed while the dynamic page content is displayed; thereby, the CPU, GPU and other hardware resources of the terminal device can be increased. However, due to excessive resource occupation, the displayed dynamic page content may be unstable, stuck, etc. Therefore, it is necessary to determine whether the first operating status information meets the third condition, and then determine whether the hardware level information needs to be downgraded, thereby improving the accuracy of the determined first display performance level and further improving the accuracy of the loaded data resources corresponding to the first display performance level.
[0109] As another embodiment, optionally, if the first operating status information does not meet the first condition and the second condition, the hardware level information is determined as the first display performance level, which may specifically include: if the first operating status information does not meet the first condition and the second condition, and the dynamic page content is displayed in the form of a jump page, then the hardware level information is determined as the first display performance level.
[0110] In the embodiments of this specification, a page transition can mean that after a user clicks, they leave the current page and jump to a new page, usually with a transition animation. In the presentation of page animation, overlay and page transition are two different interaction modes, and their core differences are reflected in user experience, technical implementation, and application scenarios.
[0111] In actual applications, if dynamic page content is displayed in the form of a jump page, it can represent the process of displaying the dynamic page content and closing the entry page. Specifically, it can be that the dynamic page content is displayed after closing the entry page; or, the dynamic page content is displayed during the process of closing the entry page. It can be understood that the method of displaying dynamic page content in the form of a jump page occupies fewer hardware resources of the terminal device and can provide more hardware resources for the dynamic page content. Therefore, there is no need to judge the third condition, and the hardware level information can be directly determined as the first display performance level, ensuring that the dynamic page content is not stuck and is smooth, and the display effect of the dynamic page content can also be guaranteed.
[0112] In one or more embodiments of this specification, the terminal device may also continuously monitor FPS data and promptly execute a degradation strategy to avoid freezing the user's terminal device. Optionally, after loading the first data resource corresponding to the first display performance level for displaying the dynamic page content, the method may further include: obtaining second FPS data of the terminal device during the execution of the dynamic page content; determining second operating status information of the terminal device based on the second FPS data; and if the second operating status information indicates that the terminal device meets a preset state, executing the resource loading strategy corresponding to the preset state.
[0113] In an embodiment of the present specification, the second FPS data may be FPS data within the running time continuously monitored by the terminal device during the running of the dynamic page content. The second running status information may include the FPS average of the second FPS data from the start time of the dynamic page content to the current monitoring time, and may also include the fluctuation value of the second FPS data from the start time of the dynamic page content to the current monitoring time. The starting running time may indicate the time when the dynamic page content starts to be displayed; the current monitoring time may indicate the time when the dynamic page content is currently being displayed.
[0114] In an embodiment of this specification, the preset state may indicate a state in which, under the second state information, running dynamic page content using a first data resource corresponding to a first display performance level is prone to causing issues such as lag and choppy dynamic page content. The resource loading strategy corresponding to the preset state may indicate rendering dynamic page content using data resources corresponding to a display performance level lower than the first display performance level. Thus, by continuously monitoring the second FPS data while running the dynamic page content, it is determined that a degradation strategy is implemented when the preset state is met, thereby avoiding lag on the user terminal device.
[0115] As an implementation mode, optionally, in one or more embodiments of the present specification, if the second operating status information indicates that the terminal device meets the preset state, then executing the resource loading strategy corresponding to the preset state may specifically include: determining whether the second operating status information meets the fourth condition; the fourth condition is that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold, and the fluctuation duration of the second FPS data accounts for a ratio of the duration of the running time of the dynamic page content that is less than the preset ratio threshold; if the second operating status information meets the fourth condition, then loading the second data resource corresponding to the second display performance level; the second display performance level is lower than the first display performance level; the data resources corresponding to the lower display performance level occupy fewer hardware resources of the terminal device when loaded.
[0116] In the embodiments of this specification, the fluctuation value of the second FPS data may represent the difference between the maximum FPS data and the minimum FPS data in the second FPS data; or, it may represent the difference between the average FPS corresponding to the second FPS data and the maximum FPS data; or, it may represent the difference between the average FPS corresponding to the second FPS data and the minimum FPS data. The third fluctuation threshold may be determined based on expert experience or terminal device performance, such as values such as 8 or 7; the third fluctuation threshold may be the same as or similar to the first fluctuation threshold, and the third fluctuation threshold may be greater than the second fluctuation threshold. For example, if the first fluctuation threshold is 8, the third fluctuation threshold may also be set to 8.
[0117] In the embodiments of this specification, the fluctuation duration may represent the duration of the fluctuation in the second FPS data. The running duration may represent the duration from the start running moment of the dynamic page content to the current monitoring moment. The preset ratio threshold may be determined based on expert experience or terminal device performance, for example, it may be set to a ratio of 5%, 10%, 8%, etc. In actual applications, the ratio of the fluctuation duration of the second FPS data to the running duration of the dynamic page content may be less than the preset ratio threshold, or the preset fluctuation duration threshold may be used to determine whether the fluctuation duration of the second FPS data is less than the preset fluctuation duration threshold; the preset fluctuation duration threshold may be a threshold such as 1s or 0.5s.
[0118] In the embodiment of this specification, if the second operating status information satisfies the fourth condition, it can indicate that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold, and the ratio of the fluctuation duration of the second FPS data to the running duration of the dynamic page content is less than the preset ratio threshold, then it can be determined that the second FPS data has a short-term large fluctuation, and further it can be determined that the terminal device is running the dynamic page content displayed based on the first data resource corresponding to the first display performance level. There is an unstable operation, and the data resource corresponding to the second display performance level lower than the first display performance level can be determined. The data resource corresponding to the second display performance level occupies fewer hardware resources than the first data resource, which can avoid the problem of the terminal device displaying the dynamic page content being stuck due to excessive resource occupation, thereby improving the smoothness of displaying the dynamic page content.
[0119] In one or more embodiments of the present specification, the game logic at a certain moment needs to create a large number of complex dynamic effects. These dynamic effect materials consume a lot of performance in a short period of time. The terminal device can determine the dynamic elements that cause the dynamic page content to freeze, and downgrade the dynamic elements to avoid freezing of the user terminal device. Optionally, the first data resource includes multiple first dynamic elements corresponding to the first display performance level; if the second operating status information meets the fourth condition, the second data resource corresponding to the second display performance level is loaded, which may specifically include: if the second operating status information meets the fourth condition, the first target dynamic element running within the fluctuation duration is identified from the first data resource; the second target dynamic element corresponding to the second display performance level is loaded; the second target dynamic element is used to display the dynamic page content by replacing the first target dynamic element.
[0120] In the embodiments of this specification, multiple first dynamic elements may represent multiple elements contained in a dynamic page content. For example, an animation for obtaining gold coins in the game "Year after Year of Abundance" may include a goldfish element, a gold coin element, and a bowl element containing the gold coins. The level of each first dynamic element corresponds to the first display performance level. For example, if the first display performance level is level 5, the level of each first dynamic element may also be a level 5 dynamic element.
[0121] In the embodiments of this specification, an animation page content may include multiple animation elements, and for each animation element, multiple levels of elements may be set based on the division of display performance levels. For example, the animation page content includes element A and element B, where element A includes specific elements of different gears A1<A2<A3<A4<A5, and element B includes specific elements of different gears B1<B2<B3<B4<B5. If the display performance level is 1, elements A1+B2 can be used; and so on, if the display performance level is 5, elements A5+B5 can be used.
[0122] In the embodiments of this specification, the first target dynamic element may represent a newly added dynamic element during a period of fluctuation during the execution of dynamic page content, compared to other periods of operation without fluctuation or with minimal fluctuation. The second target dynamic element corresponding to the second display performance level has a lower level than the first target dynamic element; the second target dynamic element occupies fewer hardware resources of the terminal device than the first target dynamic element. During the execution of the dynamic page content, the first target dynamic element of the first display performance level is replaced with the second target dynamic element of the second display performance level. Continuing with the above example, assuming the first display performance level is 5 and elements A5+B5 are used, if a lag occurs, the specific resource causing the lag can be determined based on the duration of the lag. Assuming it is A5, A5 can be downgraded to A4 of the second display performance level, i.e., elements A4+B5 can be used to implement the animation. The terminal device can reduce the hardware resource usage by only downgrading the level of a target dynamic element that affects the smoothness of the dynamic page content, without downgrading other first dynamic elements, thereby improving the smoothness of the dynamic page content. This ensures the smoothness of the dynamic page content while minimizing degradation of the dynamic page content display quality.
[0123] In actual applications, if the second operating status information does not meet the fourth condition, it can be determined that the second operating status information does not hit the fourth condition, and the dynamic page content can continue to be rendered and displayed according to the full data resources corresponding to the display performance level.
[0124] In one or more embodiments of the present specification, in order to facilitate direct downgrade during the next loading, the element identifier of the first target dynamic element can be cached in the terminal device. Optionally, after identifying the first target dynamic element running within the fluctuation duration from the first data resource, the method may further include: associating the element identifier of the first target dynamic element with the content identifier of the dynamic page content and storing the associated element identifier in the cache of the terminal device; the element identifier is used to indicate that when the dynamic page content is loaded, the target dynamic element corresponding to the element identifier in the dynamic page content is downgraded and loaded.
[0125] In the embodiments of this specification, an element identifier is used to uniquely identify a target dynamic element, and one element identifier uniquely corresponds to one dynamic element. A content identifier is used to uniquely identify dynamic page content, and one dynamic page content uniquely corresponds to one content identifier.
[0126] In an embodiment of the present specification, if it is necessary to load data resources corresponding to dynamic page content, the terminal device may obtain the corresponding data resources from the local cache, and the target dynamic element contained in the data resource may be a downgraded second target dynamic element. Alternatively, if it is necessary to load data resources corresponding to dynamic page content, the terminal device may, based on a locally cached element identifier associated with the content identifier of the dynamic page content, obtain from the server a target dynamic element identified by the element identifier that is lower than the display performance level; and obtain from the server other dynamic elements of the same level as the display performance level, thereby avoiding problems such as lag and stuttering during the display of the dynamic page content.
[0127] In actual applications, downgrade is done by listing the elements that have the greatest impact on performance. The element with the greatest impact can be downgraded. By downgrading only the target state elements that affect the second FPS data, there is no need to uniformly downgrade all elements corresponding to the dynamic page content. This can effectively solve the lag problem while avoiding affecting the user's visual experience.
[0128] In order to clearly illustrate the situation where the target dynamic element needs to be downgraded in the embodiments of this specification, Figure 3 This is a schematic diagram of a second FPS data during the running of dynamic page content provided by an embodiment of this specification. Figure 3 As shown, in the two time periods from 0 to t1 and from t2 to t3, the value of the continuously monitored second FPS data is relatively stable with small fluctuations; in the fluctuation period from t1 to t2, the fluctuation value of the continuously monitored second FPS data fluctuates greatly and lasts for a short time. The target dynamic element running within the fluctuation period can be identified from the data resource and degradation processing can be performed on the target state element. It can be understood that Figure 3 This is merely a diagram for understanding the circumstances under which downgrading of an element is appropriate, and is not intended to be a specific limitation.
[0129] In one or more embodiments of the present specification, if the average value of the second FPS data is low during the display of dynamic page content, it can be determined that the situation is not suitable for downgrading by using low-end data resources, and can be handled by turning off anti-aliasing or reducing the rendering resolution through the rendering engine. Optionally, if the second operating status information indicates that the terminal device meets the preset state, the resource loading strategy corresponding to the preset state is executed, which may specifically include: judging whether the second operating status information meets the fifth condition; the fifth condition is that the second FPS average determined based on the second FPS data is less than or equal to the third average threshold; if the second operating status information meets the fifth condition, when rendering the dynamic page content, turn off the anti-aliasing function, or reduce the rendering resolution of the dynamic page content, or turn off the anti-aliasing function and reduce the rendering resolution of the dynamic page content.
[0130] In an embodiment of the present specification, the second FPS mean may represent the average value of the second FPS data during the running of the dynamic page content. The third mean threshold is used to reflect the average performance state of smoothness and non-stuttering when the user normally uses the terminal device. The third mean threshold may be determined based on expert experience or the performance of the terminal device. The third mean threshold may be the same as the second mean threshold, or close to the second mean threshold, and the third mean threshold is greater than the first mean threshold. For example, assuming that the first mean threshold is 30 and the second mean threshold is 50, the third mean threshold may be set to 50.
[0131] In the embodiment of this specification, the second operating status information satisfies the fifth condition, which may indicate that the second FPS average is less than or equal to the third average threshold value. It can be further determined that the average performance status of the terminal device is affected by a certain function that is turned on during the display of dynamic page content. The anti-aliasing function or the rendering resolution function can be processed to reduce the problem of excessive hardware resource usage caused by turning on too many functions when rendering dynamic page content, thereby affecting the display effect of the dynamic page content.
[0132] In the embodiment of the present specification, if the second operating status information does not meet the fifth condition, it may indicate that the second FPS average is greater than the third average threshold, and there is no need to process the relevant rendering functions of the dynamic page content.
[0133] In one or more embodiments of the present specification, the processing of the anti-aliasing function or the rendering resolution function can be determined based on the type of dynamic page content. Optionally, when rendering the dynamic page content, disabling the anti-aliasing function, or reducing the rendering resolution of the dynamic page content, or disabling the anti-aliasing function and reducing the rendering resolution of the dynamic page content may specifically include:
[0134] If the dynamic page content is three-dimensional, when rendering the dynamic page content: turning off the anti-aliasing function, or reducing the rendering resolution of the dynamic page content, or turning off the anti-aliasing function and reducing the rendering resolution of the dynamic page content;
[0135] If the dynamic page content is a two-dimensional type of content, the rendering resolution of the dynamic page content is reduced when rendering the dynamic page content.
[0136] In the embodiments of this specification, three-dimensional content can represent dynamic page content with 3D effects, and anti-aliasing functions and rendering resolution functions are generally used when rendering 3D content. In order to avoid the average value of the second FPS data being too low, affecting the display smoothness of the dynamic page content, the anti-aliasing function can be turned off; or the rendering resolution can be lowered; or the anti-aliasing function can be turned off and the rendering resolution can be lowered.
[0137] In the embodiments of this specification, two-dimensional content can represent dynamic page content with a 2D effect, and the anti-aliasing function is generally not used when rendering 2D content. Therefore, in order to avoid the average value of the second FPS data being too low and affecting the display smoothness of the dynamic page content, the rendering resolution of the dynamic page content can be reduced.
[0138] In one or more embodiments of this specification, in order to avoid the problem of unclear dynamic page content caused by excessively reducing the rendering resolution, the rendering resolution can be adjusted using a second FPS average. Optionally, reducing the rendering resolution of the dynamic page content can specifically include: calculating a resolution adjustment coefficient based on the second FPS average and a desired target FPS average; the resolution adjustment coefficient is proportional to the second FPS average and inversely proportional to the target FPS average; the target FPS average is greater than the second FPS average; multiplying the current first rendering resolution by the resolution adjustment coefficient to obtain a second rendering resolution; and rendering the dynamic page content according to the second rendering resolution.
[0139] In the embodiment of this specification, the target FPS average may be greater than the third average threshold, which may be set based on user needs. For example, assuming the third average threshold is 50, the target FPS average may be 55. The second rendering resolution may be lower than the first rendering resolution.
[0140] In actual applications, the higher the resolution, the higher the performance consumption of the terminal device; the resolution is directly proportional to the performance consumption of the terminal device. The terminal device can be based on the formula: The second rendering resolution is calculated, and the dynamic page content can be rendered based on the calculated second rendering resolution, thereby reducing the performance consumption of the terminal device caused by the high rendering resolution and improving the display performance.
[0141] In order to clearly illustrate the situation where the second operating state described in the embodiment of this specification meets the fifth condition, Figure 4 This is a schematic diagram of a second FPS data during the running of dynamic page content provided by an embodiment of this specification. Figure 4 As shown, taking the third mean threshold value of 45 as an example, during the running of the dynamic page content, the value of the second FPS data is always less than 45, it can be determined that the second running state meets the fifth condition, and then the anti-aliasing function can be turned off, or the rendering resolution of the dynamic page content can be reduced, or the anti-aliasing function can be turned off and the rendering resolution of the dynamic page content can be reduced. It can be understood that Figure 4 This is merely a schematic diagram for understanding the circumstances under which the second operating state satisfies the fifth condition, and is not intended to be a specific limitation.
[0142] In one or more embodiments of the present specification, if the second FPS data always fluctuates up and down, a degradation strategy can be executed. Optionally, if the second operating status information indicates that the terminal device meets the preset state, the resource loading strategy corresponding to the preset state is executed, which may specifically include: judging whether the second operating status information meets the sixth condition; the sixth condition is that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold and less than or equal to the fourth fluctuation threshold, and the fluctuation duration of the second FPS data is greater than or equal to the fluctuation duration threshold; if the second operating status information meets the sixth condition, reducing the rendering refresh frequency of the dynamic page content.
[0143] In the embodiments of this specification, both the third and fourth fluctuation thresholds can be determined based on expert experience or the performance of the terminal device. The fourth fluctuation threshold can be smaller than the third fluctuation threshold, the third fluctuation threshold can be the same as the first fluctuation threshold, or the third fluctuation threshold can be similar to the first fluctuation threshold.
[0144] In the embodiment of the present specification, the fluctuation duration of the second FPS data may indicate the duration of continuous fluctuation of the FPS value in the second FPS data. The fluctuation duration threshold may be determined based on expert experience or the performance of the terminal device. If the second operating status information satisfies the sixth condition, it may indicate that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold and less than or equal to the fourth fluctuation threshold, and the fluctuation duration of the second FPS data is greater than or equal to the fluctuation duration threshold. Lowering the rendering refresh frequency may indicate lowering the number of times the dynamic page content is rendered within a preset time period, for example, the original rendering of the dynamic page content twice in 2 seconds is now changed to rendering the dynamic page content once in 2 seconds; or, it may indicate increasing the number of screen refreshes and the number of renderings of the dynamic page content, for example, the original screen refreshes once and the dynamic page content is rendered once, but is changed to: the screen refreshes 2 times and the dynamic page content is rendered once; rendering the dynamic page content once may indicate refreshing the dynamic page content once.
[0145] In order to clearly illustrate the situation where the second operating state described in the embodiment of this specification meets the sixth condition, Figure 5 This is a schematic diagram of a second FPS data during the running of dynamic page content provided by an embodiment of this specification. Figure 5 As shown, assuming that the fourth fluctuation threshold is 20 and the third fluctuation threshold is 10, it can be determined that the fluctuation value of the second FPS data is 16 and lasts throughout the entire operation period, then it can be further determined that the second operation status information meets the sixth condition, and the rendering refresh frequency of the dynamic page content can be reduced. It is understandable that Figure 5 It is only a schematic diagram for understanding the situation in which the second operating state satisfies the sixth condition, and is not a specific limitation.
[0146] In actual applications, if the second operating state information meets multiple conditions and causes lag, a combination of degradation strategies can be used to address it. For example, if the average FPS is low and there are periods of even lower FPS, the rendering resolution can be reduced, anti-aliasing can be disabled, and the dynamic elements corresponding to that period can be downgraded.
[0147] In real-world applications, if dynamic page content experiences lag due to the logic of periodically creating new dynamic elements and destroying old ones, you can reduce the rendering resolution or disable anti-aliasing. If this effect is still not noticeable, you can reduce the refresh rate to address this lag. Most screens refresh 60 times per second. Lowering the refresh rate means that the rendering logic for dynamic page content executes once per screen refresh, instead of executing once per screen refresh. When a game experiences lag at a FPS above 30, the lag is noticeable to the naked eye. This is because the rendering time for a single frame exceeds the preset duration, for example, 17 milliseconds (1 second / 60 = approximately 17 milliseconds), which doesn't match the screen refresh rate by a reasonable multiple. As a result, some images require two screen refreshes to update, followed by another refresh, causing the image to fluctuate between speeds and slowdowns at minute intervals, creating a sense of lag. Setting the rendering time to only occur once per screen refresh ensures that each frame update occurs at approximately the same interval, making the lag less noticeable to the naked eye.
[0148] In one or more embodiments of the present specification, the average FPS value of the dynamic page content during the last run can be cached and used as a basis for resource loading when the dynamic page content is run next time, so as to facilitate loading resources at a more appropriate resource level. Optionally, after obtaining the second FPS data of the terminal device during the run of the dynamic page content, the method may further include associating the second FPS data with the content identifier of the dynamic page content and storing it in the cache of the terminal device.
[0149] In the embodiments of this specification, the cached data may be an average of the second FPS data or the full amount of the second FPS data during the execution of the dynamic page content. In addition, if a degradation strategy is executed during the display of the dynamic page content, the executed degradation strategy may be associated with the content identifier of the dynamic page content and stored in the cache of the terminal device.
[0150] In practical applications, the single run status information of the animation run can be calculated based on the complete FPS data of the entire run period. This single run status information can then be used as a basis to determine more suitable data resources to load.
[0151] In one or more embodiments of this specification, if the device has previously obtained the hardware level information of the device and stored it in a cache, the hardware level information can be directly obtained from the cache. Optionally, obtaining the hardware level information of the terminal device can specifically include: obtaining the hardware level information of the terminal device from the cache; the hardware level information is obtained by the terminal device from a server based on the hardware parameters of the terminal device.
[0152] In the embodiment of this specification, the terminal device has already run the dynamic page content at least once, and can obtain the hardware level information associated with the content identifier of the dynamic page content from the cache. This can speed up the efficiency of obtaining the hardware level information and further speed up the time of loading data resources.
[0153] In one or more embodiments of the present specification, the operation status information can be determined based on the FPS data of the cached dynamic page content, and the display performance level can be further determined to improve the efficiency of obtaining the display performance level. Optionally, after obtaining the hardware level information of the terminal device, the method may further include: querying the third FPS data of the dynamic page content from the cache based on the content identifier of the dynamic page content to be rendered; the third FPS data is the FPS data during the last time the terminal device ran the dynamic page content; determining the third operation status information of the terminal device based on the third FPS data; determining the third display performance level of the terminal device based on the third operation status information and the hardware level information; and loading a third data resource corresponding to the third display performance level for displaying the dynamic page content.
[0154] In an embodiment of the present specification, the third FPS data may include the second FPS data described above. The third FPS data may include historical FPS data monitored during the display of dynamic page content in several different time periods. The third FPS data may be data with a validity period. If the third FPS data reaches the validity period, the third FPS data may be deleted from the cache of the terminal device, thereby ensuring the validity of the third FPS data obtained from the cache for reference.
[0155] In the embodiment of this specification, the third display performance level may be the same as or different from the first display performance level.
[0156] In one or more embodiments of the present specification, if the third FPS data determines that the last operation was not good, a degradation strategy can be implemented. Optionally, determining the third display performance level of the terminal device based on the third operation status information and the hardware level information can specifically include: judging whether the third operation status information meets the seventh condition; the seventh condition is that the third FPS mean determined based on the third FPS data is less than or equal to the fourth mean threshold, and the fluctuation value of the third FPS data is greater than or equal to the fifth fluctuation threshold; if the third operation status information meets the seventh condition, then determining the level lower than the hardware level information as the third display performance level; the data resources corresponding to the lower display performance level occupy fewer hardware resources of the terminal device when loaded.
[0157] In the embodiments of this specification, the fourth mean threshold is used to reflect the average performance state of smooth, non-stuttering operation during normal user use of the terminal device. The fourth mean threshold can be determined based on expert experience or the performance of the terminal device. The fourth mean threshold can be the same as the second mean threshold, or the fourth mean threshold can be similar to the second mean threshold. For example, if the second mean threshold is 50, the fourth mean threshold can be set to 50.
[0158] In the embodiments of this specification, the fluctuation value of the third FPS data may represent the difference between the maximum value and the minimum value in the third FPS data; or may represent the difference between the maximum value in the third FPS data and the third FPS mean; or may represent the difference between the minimum value in the third FPS data and the third FPS mean. The fifth fluctuation threshold may be determined based on expert experience or the performance of the terminal device. The fifth fluctuation threshold may be the same as the second fluctuation threshold, or the fifth fluctuation threshold may be similar to the second fluctuation threshold. For example, assuming the second fluctuation threshold is 5, the fifth fluctuation threshold may be set to 5.
[0159] In the embodiment of this specification, if the third operating state information satisfies the seventh condition, it may indicate that the third FPS mean determined by the third FPS data is less than or equal to the fourth mean threshold, and the fluctuation value of the third FPS data is greater than or equal to the fifth fluctuation threshold. Furthermore, it may be determined that the third operating state information indicates that lag or instability is likely to occur during the execution of the dynamic page content. Therefore, the hardware level information may be downgraded. For example, assuming the hardware level information is level 5, the third display performance level may be determined to be level 4. Thus, by lowering the display performance level, data resources that occupy less hardware resources of the terminal device can be loaded, thereby ensuring smooth and unstuck display of the dynamic page content.
[0160] In an embodiment of the present specification, if the third operating status information does not meet the seventh condition, it may indicate that the third FPS mean determined by the third FPS data is greater than the fourth mean threshold; or, it may indicate that the fluctuation value of the third FPS data is less than the fifth fluctuation threshold; or, it may indicate that the third FPS mean determined by the third FPS data is greater than the fourth mean threshold, and the fluctuation value of the third FPS data is less than the fifth fluctuation threshold. If the third operating status information does not meet the seventh condition, it may indicate that the dynamic page content rendered using the data resources of the display performance level corresponding to the hardware level information is suitable for the performance of the terminal device, and there will be no lag during the display process, and the hardware level information can be determined as the display performance level. The display performance level is determined by two dimensions, the hardware level information and the third FPS data, thereby improving the accuracy of the loaded data resources.
[0161] In one or more embodiments of this specification, if the last operating condition is determined to be very good based on the third operating state, an upgrade strategy is executed. Optionally, determining the third display performance level of the terminal device based on the third operating state information and the hardware level information may specifically include: determining whether the third operating state information satisfies an eighth condition; the eighth condition being that a third FPS mean determined based on the third FPS data is greater than or equal to a fifth mean threshold; if the third operating state information satisfies the eighth condition, determining a level higher than the hardware level information as the third display performance level; data resources corresponding to a higher display performance level occupy more hardware resources of the terminal device when loaded.
[0162] In the embodiments of this specification, the fifth mean threshold is used to reflect an excellent performance status of a terminal device under normal user usage. The fifth mean threshold can be determined based on expert experience or the performance of the terminal device. The fifth mean threshold can be a value greater than the second mean threshold. For example, if the second mean threshold is 50, the fifth mean threshold can be 55, 60, 57, and so on.
[0163] In the embodiment of this specification, if the third operating state information satisfies the eighth condition, it may indicate that the third FPS average determined by the third FPS data is greater than or equal to the fifth average threshold value, which may indicate that the performance of the terminal device was very good during the last execution of the dynamic page content. Therefore, the level of the first level of the high hardware level information may be determined as the third display performance level. For example, if the hardware level information is level 4.5, the third display performance level may be determined as level 5. This allows for displaying better dynamic page content to the user, providing the user with a better visual experience.
[0164] In actual applications, if the third operating state information satisfies the eighth condition, but the hardware level information has reached the highest level, the hardware level information may be determined as the third display performance level.
[0165] In the embodiments of this specification, the hardware level information may not only have three levels of high, medium and low, but may have finer granularity, for example, levels with multiple granularities of 1, 1.5, 2, 2.5..., or may be finer granularity, for example, levels with multiple granularities of 1, 1.1, 1.2, 1.3...; the granularity of the display performance level may correspond to the granularity of the hardware level information, for example, the hardware level information has 20 levels, and the display performance level also has 20 levels, and the higher the hardware level information, the better the hardware performance of the terminal device; the higher the display performance level, the better the effect and special effects of the displayed dynamic page content.
[0166] The various technical features in the above embodiments can be arbitrarily combined as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, the arbitrary combination of the various technical features in the above embodiments also falls within the scope of disclosure of this specification.
[0167] According to the above description, Figure 6 This is a flowchart of the initial resource loading process provided in the embodiment of this specification.
[0168] like Figure 6 As shown, step 602: obtaining the user's access operation to the entry page of the dynamic page content.
[0169] In the embodiments of this specification, dynamic page content may refer to a dynamic page that can be displayed in an APP and can interact with the user through WebGL technology, or a dynamic page that can be displayed in a browser and can interact with the user through WebGL technology, such as a game page.
[0170] Step 604: In response to the access operation, obtain device information of the terminal device.
[0171] Step 606: Obtain preset hardware level information corresponding to the device information from the server.
[0172] In the embodiments of this specification, the terminal device may cache the hardware level information in the terminal device so that the hardware level information can be directly obtained from the cache when loading resources next time, thereby improving the efficiency of obtaining the hardware level information.
[0173] Step 608: Acquire the first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold.
[0174] Step 610: Determine first operating status information of the terminal device according to the first FPS data.
[0175] Step 612: Determine whether the first operating status information satisfies at least one of a first condition and a second condition.
[0176] In an embodiment of this specification, the terminal device may determine the first FPS data based on the front-end interactive engine. The first FPS data is the FPS data generated by the terminal device for a period of time before displaying the dynamic page content. If a certain moment of the first FPS data corresponds to a user interaction operation and the FPS data drops significantly, such as when the user clicks to exit a pop-up window or enters a new page, the terminal device's resource usage will increase, thereby causing the FPS data to drop. This is a normal phenomenon.
[0177] In the embodiment of the present specification, the terminal device may determine whether the first operating state information satisfies at least one of the first condition and the second condition based on a stage in which no user interaction operation occurs.
[0178] In an embodiment of this specification, the first condition may indicate that the first FPS mean determined based on the first FPS data is less than or equal to a first mean threshold. The second condition may indicate that the fluctuation value of the first FPS data within a set time width within a preset duration is greater than or equal to a first fluctuation threshold. The first condition may indicate that the mean value of the first FPS data is low, and the second condition may indicate that there are large short-term fluctuations within the preset duration.
[0179] If the first operating state information satisfies at least one of the first condition and the second condition, step 614 may be executed: loading a backup data resource for displaying the backup digital content.
[0180] In the embodiment of this specification, if the first operating status information satisfies the first condition, it may indicate that the overall performance of the terminal device has always been poor; if the first operating status information satisfies the second condition, it may indicate that although some fluctuations can correspond to the user's interactive operations on the page, the performance of the terminal device is greatly affected by external factors, and the performance is mostly unstable due to the influence of external factors. In order to avoid displaying a stuck page or a blank page to the user, affecting the user experience, the user experience can be improved by loading backup data resources and displaying backup data content to the user.
[0181] If the first running status information does not satisfy the first condition and the second condition, step 616 may be executed: determining whether the dynamic page content is displayed in a masked form.
[0182] If the dynamic page content is not displayed in a masked form, step 622 may be executed: determining the hardware level information as the first display performance level.
[0183] In an embodiment of the present specification, if the dynamic page content is not displayed in the form of a mask, it can be displayed in the form of a jump page. Specifically, the entry page can be closed and a new page carrying the dynamic page content can be displayed. This can occupy fewer resources and have less impact on the FPS data. The hardware level information can then be determined as the first display performance level.
[0184] If the dynamic page content is displayed in a masked form, step 618 may be executed: determining whether the first running status information satisfies a third condition.
[0185] In an embodiment of the present specification, if the dynamic page content is displayed in the form of a mask, it can be determined that the page carrying the dynamic page content is displayed above the entry page. Since there are more pages opened, more resources will be occupied, which will have a greater impact on the FPS data, and thus will have a greater impact on the performance of the terminal device. Therefore, it is necessary to determine whether the first operating status information meets the third condition to determine whether the terminal device is suitable for using the hardware level information as the first display performance level when displaying the dynamic page content in a mask.
[0186] In this embodiment of the present specification, the third condition may indicate that the first FPS mean is less than or equal to the second mean threshold, and the fluctuation value of the first FPS data within the preset time period is greater than or equal to the second fluctuation threshold. The second mean threshold is greater than the first mean threshold; and the second fluctuation threshold is less than the first fluctuation threshold.
[0187] If the first operating status information does not meet the third condition, step 620 may be executed: determining a level lower than the hardware level information as the first display performance level.
[0188] If the first operating status information satisfies the third condition, step 622 may be executed: determining the hardware level information as the first display performance level.
[0189] Step 624: Load a first data resource corresponding to the first display performance level for displaying dynamic page content.
[0190] The above steps have similar or identical technical features to the aforementioned resource loading method, and can be referred to the aforementioned description, which will not be repeated here. It should be understood that in the embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0191] According to the above description, Figure 7 This is a flow chart of processing dynamic page content provided by the embodiment of this specification. Figure 7 shown.
[0192] Step 702: Acquire the second FPS data of the terminal device during the execution of the dynamic page content.
[0193] Step 704: Determine second operating status information of the terminal device according to the second FPS data.
[0194] Step 706: If the second operating status information satisfies the sixth condition, the rendering refresh frequency of the dynamic page content is reduced.
[0195] In an embodiment of the present specification, the sixth condition may indicate that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold and less than or equal to the fourth fluctuation threshold, and the fluctuation duration of the second FPS data is greater than or equal to the fluctuation duration threshold. Reducing the rendering refresh frequency may mean reducing the rendering frequency of dynamic page content without changing the screen refresh rate. For example, the screen originally refreshed twice and the dynamic page content was rendered twice within the preset refresh duration; now it is changed to refresh the screen twice and the dynamic page content is rendered once within the preset refresh duration.
[0196] Step 708: If the second operating state information satisfies the fifth condition, at least one of disabling the anti-aliasing function and reducing the rendering resolution of the dynamic page content is executed when rendering the dynamic page content.
[0197] In an embodiment of this specification, the fifth condition may indicate that the second FPS mean determined based on the second FPS data is less than or equal to the third mean threshold. If the dynamic page content is 3D content, at least one of disabling anti-aliasing and reducing the rendering resolution of the dynamic page content may be performed; if the dynamic page type is 2D content, the rendering resolution of the dynamic page content may be reduced.
[0198] Step 710: If the second running state information satisfies the fourth condition, a first target dynamic element running within the fluctuation duration is identified from the first data resource.
[0199] In an embodiment of the present specification, the fourth condition may indicate that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold, and the ratio of the fluctuation duration of the second FPS data to the running duration of the dynamic page content is less than a preset ratio threshold. The first target dynamic element may indicate a factor that causes the second running state information to meet the fourth condition. For example, if the logic for executing the dynamic page content at a certain moment requires the creation of a large number of complex dynamic effects, it will cause the fluctuation value of the second FPS data to be greater than or equal to the third fluctuation threshold, and the ratio of the fluctuation duration of the second FPS data to the running duration of the dynamic page content is less than a preset ratio threshold.
[0200] Step 712: Load a second target dynamic element corresponding to the second display performance level.
[0201] In the embodiment of this specification, the second display performance level may be lower than the first display performance level.
[0202] Step 714: associate the element identifier of the first target dynamic element with the content identifier of the dynamic page content and store them in the cache of the terminal device.
[0203] Step 716: Display the dynamic page content by replacing the first target dynamic element with the second target dynamic element.
[0204] In the embodiments of this specification, the terminal device may only downgrade the first target state element and store the element identifier of the first target state element in association with the content identifier, so that the next time the target page content is displayed, the downgraded second target state element can be directly obtained to avoid dynamic page lag. It is understood that other first elements in the dynamic page content are not downgraded and continue to be displayed according to the original first display performance level.
[0205] Step 718: associate the second FPS data with the content identifier of the dynamic page content and store them in the cache of the terminal device.
[0206] In actual applications, if the second operating state information during the execution of the dynamic page content meets all three or two of the above conditions, it can be processed based on the corresponding method. For example, if the second operating state information meets the fourth condition in addition to the sixth condition, the first target state element can be downgraded while also reducing the rendering refresh rate of the dynamic page content. If the second operating state information does not meet any of the above conditions, the dynamic page content can continue to be displayed based on the first data resource as normal.
[0207] The above steps have similar or identical technical features to the aforementioned resource loading method, and can be referred to the aforementioned description, which will not be repeated here. It should be understood that in the embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0208] According to the above description, Figure 8 This is a flowchart of a non-initial resource loading process provided by an embodiment of this specification, such as Figure 8 shown.
[0209] Step 802: Obtain the user's access operation to the entry page of the dynamic page content.
[0210] Step 804: In response to the access operation, obtain the hardware level information of the terminal device from the cache.
[0211] Step 806: query the third FPS data of the dynamic page content from the cache according to the content identifier of the dynamic page content to be rendered.
[0212] In the embodiment of this specification, the third FPS data may represent FPS data generated during the historical execution of dynamic page content by the terminal device.
[0213] Step 808: Determine third operating status information of the terminal device according to the third FPS data.
[0214] In the embodiment of this specification, the third operating state information may include an average value of the third FPS data, and may also include a fluctuation value in the third FPS data.
[0215] Step 810: Determine whether the third operating status information meets the seventh condition.
[0216] In this embodiment of the present specification, the seventh condition may indicate that the third FPS mean determined based on the third FPS data is less than or equal to the fourth mean threshold, and the fluctuation value of the third FPS data is greater than or equal to the fifth fluctuation threshold.
[0217] If the third operating state information satisfies the seventh condition, step 812 may be executed: determining a level lower than the hardware level information as the third display performance level.
[0218] If the third state information does not meet the seventh condition, step 814 may be executed: determining whether the third operating state information meets the eighth condition.
[0219] In the embodiments of this specification, the eighth condition may indicate that the third FPS mean determined based on the third FPS data is greater than or equal to the fifth mean threshold. The determination of the eighth condition and the determination of the seventh condition may be performed in parallel, or the determination of the eighth condition may be performed first and then the determination of the seventh condition, or the determination of the seventh condition may be performed first and then the determination of the eighth condition.
[0220] If the third operating state information satisfies the eighth condition, step 816 may be executed: determining a level higher than the hardware level information as the first display performance level.
[0221] If the third operating state information does not meet the eighth condition, step 818 may be executed: determining the hardware level information as the third display performance level.
[0222] Step 820: Load a third data resource corresponding to a third display performance level for displaying dynamic page content.
[0223] The above steps have similar or identical technical features to the aforementioned resource loading method, and can be referred to the aforementioned description, which will not be repeated here. It should be understood that in the embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0224] Through the embodiments of this specification, on the one hand, the data resources suitable for loading on the terminal device can be determined by combining hardware level information with FPS data, so as to facilitate the use of the loaded data resources to display smooth dynamic page content for the user. On the other hand, a variety of different methods can be used to process the dynamic page content, such as reducing the rendering resolution, turning off anti-aliasing, reducing the refresh rate, and reducing individual elements, etc., while ensuring that the dynamic page content does not change significantly, it can also ensure the smoothness of the display of the dynamic page content. On the third hand, if the terminal device is suitable for running dynamic page content with a higher display performance level, the display performance level of the dynamic page content can be upgraded through FPS data to improve the effect of the displayed dynamic page content and the coolness of the special effects.
[0225] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0226] Figure 9 The embodiments of this specification provide corresponding Figure 2 A schematic structural diagram of a resource loading device is provided. The device can be applied to a terminal device.
[0227] like Figure 9 As shown, the device may include:
[0228] The hardware level information acquisition module 902 is used to obtain the hardware level information of the terminal device; the hardware level information is information determined based on the hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content;
[0229] The FPS data acquisition module 904 is configured to acquire first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold;
[0230] An operating status information determining module 906 is configured to determine first operating status information of the terminal device based on the first FPS data;
[0231] a display performance level determining module 908, configured to determine a first display performance level of the terminal device based on the first operating state information and the hardware level information;
[0232] The data resource loading module 910 is configured to load a first data resource corresponding to the first display performance level for displaying the dynamic page content.
[0233] based on Figure 9 The present specification also provides some specific implementation plans of the method, which are described below.
[0234] Optionally, the device may further include an access module, which may be specifically configured to:
[0235] Obtaining a user's access operation to an entry page of dynamic page content; the entry page is used to obtain a trigger operation on the dynamic page content; the obtaining of the hardware level information of the terminal device specifically includes: in response to the access operation, obtaining the hardware level information of the terminal device; the loading of a first data resource corresponding to the first display performance level for displaying the dynamic page content specifically includes: in response to the user's trigger operation on the dynamic page content, loading a first data resource corresponding to the first display performance level for displaying the dynamic page content.
[0236] Optionally, the hardware level information acquisition module may be specifically used to:
[0237] Obtain device information of the terminal device; and obtain preset hardware level information corresponding to the device information from a server.
[0238] Optionally, the display performance level determination module may be specifically configured to:
[0239] Determine whether the first operating status information meets at least one of the first condition and the second condition; the first condition is that the first FPS mean determined based on the first FPS data is less than or equal to the first mean threshold; the second condition is that the fluctuation value of the first FPS data within the time width set in the preset time length is greater than or equal to the first fluctuation threshold; if the first operating status information does not meet the first condition and the second condition, the hardware level information is determined to be the first display performance level.
[0240] Optionally, the device can also be used for:
[0241] If the first operating status information satisfies at least one of the first condition and the second condition, a backup data resource for displaying backup digital content is loaded; the amount of hardware resources occupied by the terminal device when the backup data resource is loaded is less than the amount of hardware resources occupied by the terminal device when the first data resource is loaded.
[0242] Optionally, the device can also be used for:
[0243] If the first operating status information does not meet the first condition and the second condition, determine whether the first operating status information meets the third condition; the third condition is that the first FPS mean is less than or equal to the second mean threshold, and the fluctuation value of the first FPS data in the preset time length is greater than or equal to the second fluctuation threshold; the second mean threshold is greater than the first mean threshold; the second fluctuation threshold is less than the first fluctuation threshold; if the first operating status information does not meet the third condition, the hardware level information is determined to be the first display performance level.
[0244] Optionally, the device can also be used for:
[0245] If the first operating status information satisfies the third condition, a level lower than the hardware level information is determined as the first display performance level; data resources corresponding to a lower display performance level occupy fewer hardware resources of the terminal device when loaded.
[0246] Optionally, the device can also be used for:
[0247] If the first operating status information does not satisfy the first condition and the second condition, and the dynamic page content is displayed in a masked form, it is determined whether the first operating status information satisfies a third condition.
[0248] Optionally, the device can also be used for:
[0249] If the first operating status information does not satisfy the first condition and the second condition, and the dynamic page content is displayed in the form of a jump page, the hardware level information is determined to be the first display performance level.
[0250] Optionally, the device may further include a resource loading policy execution module, which may be specifically configured to:
[0251] Obtain the second FPS data of the terminal device during the operation of the dynamic page content; determine the second operating status information of the terminal device based on the second FPS data; if the second operating status information indicates that the terminal device meets the preset state, execute the resource loading strategy corresponding to the preset state.
[0252] Optionally, the device can also be used for:
[0253] Determine whether the second operating status information meets the fourth condition; the fourth condition is that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold, and the ratio of the fluctuation duration of the second FPS data to the running duration of the dynamic page content is less than the preset ratio threshold; if the second operating status information meets the fourth condition, load the second data resource corresponding to the second display performance level; the second display performance level is lower than the first display performance level; the data resources corresponding to the lower display performance level occupy fewer hardware resources of the terminal device when loaded.
[0254] Optionally, the first data resource includes a plurality of first dynamic elements corresponding to a first display performance level; the apparatus may further be configured to:
[0255] If the second operating status information meets the fourth condition, the first target dynamic element running within the fluctuation duration is identified from the first data resource; the second target dynamic element corresponding to the second display performance level is loaded; the second target dynamic element is used to display the dynamic page content by replacing the first target dynamic element.
[0256] Optionally, the device can also be used for:
[0257] The element identifier of the first target dynamic element is associated with the content identifier of the dynamic page content and stored in the cache of the terminal device; the element identifier is used to indicate that when the dynamic page content is loaded, the target dynamic element corresponding to the element identifier in the dynamic page content is downgraded and loaded.
[0258] Optionally, the device can also be used for:
[0259] Determine whether the second operating status information meets the fifth condition; the fifth condition is that the second FPS mean determined based on the second FPS data is less than or equal to a third mean threshold; if the second operating status information meets the fifth condition, then when rendering the dynamic page content, turn off the anti-aliasing function, or reduce the rendering resolution of the dynamic page content, or turn off the anti-aliasing function and reduce the rendering resolution of the dynamic page content.
[0260] Optionally, the device can also be used for:
[0261] Calculating a resolution adjustment coefficient based on the second FPS mean and a desired target FPS mean; the resolution adjustment coefficient is proportional to the second FPS mean and inversely proportional to the target FPS mean; the target FPS mean is greater than the second FPS mean; and multiplying the current first rendering resolution by the resolution adjustment coefficient to obtain a second rendering resolution.
[0262] Render the dynamic page content according to the second rendering resolution.
[0263] Optionally, the device can also be used for:
[0264] Determine whether the second operating status information meets the sixth condition; the sixth condition is that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold and less than or equal to the fourth fluctuation threshold, and the fluctuation duration of the second FPS data is greater than or equal to the fluctuation duration threshold; if the second operating status information meets the sixth condition, reduce the rendering refresh frequency of the dynamic page content.
[0265] Optionally, the hardware level information acquisition module may be specifically used to:
[0266] The hardware level information of the terminal device is obtained from a cache; the hardware level information is obtained by the terminal device from a server based on the hardware parameters of the terminal device.
[0267] Optionally, the device can be used to:
[0268] According to the content identifier of the dynamic page content to be rendered, the third FPS data of the dynamic page content is queried from the cache; the third FPS data is the FPS data during the last time the terminal device ran the dynamic page content; according to the third FPS data, the third operating status information of the terminal device is determined; based on the third operating status information and the hardware level information, the third display performance level of the terminal device is determined; and a third data resource corresponding to the third display performance level for displaying the dynamic page content is loaded.
[0269] Optionally, the device can be used to:
[0270] Determine whether the third operating status information meets the seventh condition; the seventh condition is that the third FPS mean determined based on the third FPS data is less than or equal to the fourth mean threshold, and the fluctuation value of the third FPS data is greater than or equal to the fifth fluctuation threshold; if the third operating status information meets the seventh condition, the level lower than the hardware level information is determined as the third display performance level; data resources corresponding to the lower display performance level occupy fewer hardware resources of the terminal device when loaded.
[0271] Optionally, the device can be used to:
[0272] Determine whether the third operating status information meets the eighth condition; the eighth condition is that the third FPS mean determined based on the third FPS data is greater than or equal to the fifth mean threshold; if the third operating status information meets the eighth condition, then the level higher than the hardware level information is determined as the third display performance level; data resources corresponding to higher display performance levels occupy more hardware resources of the terminal device when being loaded.
[0273] It is understood that the above modules refer to computer programs or program segments for performing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0274] The above is a schematic diagram of a resource loading device according to this embodiment. It should be noted that the technical solution of the resource loading device and the technical solution of the resource loading method described above are based on the same concept. For details not described in detail in the technical solution of the resource loading device, please refer to the description of the technical solution of the resource loading method described above.
[0275] Based on the same idea, the embodiments of this specification also provide devices corresponding to the above methods.
[0276] Figure 10 The embodiments of this specification provide corresponding Figure 2 A schematic diagram of the structure of a terminal device. Figure 10 As shown, the device 1000 may include:
[0277] at least one processor 1010; and,
[0278] A memory 1030 in communication with the at least one processor; wherein,
[0279] The memory 1030 stores instructions 1020 executable by the at least one processor 1010. The instructions are executed by the at least one processor 1010 to enable the at least one processor 1010 to:
[0280] Acquiring hardware level information of the terminal device; the hardware level information is information determined based on hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content;
[0281] Obtaining first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold;
[0282] Determining first operating status information of the terminal device according to the first FPS data;
[0283] determining a first display performance level of the terminal device based on the first operating state information and the hardware level information;
[0284] A first data resource corresponding to the first display performance level for displaying the dynamic page content is loaded.
[0285] The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the resource loading method described above are of the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the resource loading method described above.
[0286] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the resource loading method described above.
[0287] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the resource loading method described above are based on the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the resource loading method described above.
[0288] An embodiment of the present specification further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned resource loading method when executed by a processor.
[0289] The above is a schematic diagram of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the resource loading method described above are based on the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the resource loading method described above.
[0290] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device and terminal equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device, terminal equipment and method provided in the embodiments of this specification correspond to each other, so the device and terminal equipment also have beneficial technical effects similar to the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding device and terminal equipment will not be repeated here.
[0291] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0292] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures such as diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system onto a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
[0293] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
[0294] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0295] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0296] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0297] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0298] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0299] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0300] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0301] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0302] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0303] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0304] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0305] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A resource loading method, applied to a terminal device, comprising: Obtaining hardware level information of the terminal device; The hardware level information is information determined according to the hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content; Obtaining first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold; Determining first operating status information of the terminal device according to the first FPS data; determining a first display performance level of the terminal device based on the first operating state information and the hardware level information; A first data resource corresponding to the first display performance level for displaying the dynamic page content is loaded.
2. The method according to claim 1, before obtaining the hardware level information of the terminal device, further comprising: Obtain the user's access operation to the entry page of the dynamic page content; The entry page is used to obtain a triggering operation for the dynamic page content; The obtaining of the hardware level information of the terminal device specifically includes: In response to the access operation, obtaining hardware level information of the terminal device; The loading of the first data resource corresponding to the first display performance level for displaying the dynamic page content specifically includes: In response to a user triggering operation on the dynamic page content, a first data resource corresponding to the first display performance level for displaying the dynamic page content is loaded.
3. The method according to claim 1, wherein obtaining the hardware level information of the terminal device specifically comprises: Obtaining device information of the terminal device; The preset hardware level information corresponding to the device information is obtained from the server.
4. The method according to claim 1, wherein The determining, based on the first operating state information and the hardware level information, a first display performance level of the terminal device specifically includes: determining whether the first operating state information satisfies at least one of a first condition and a second condition; the first condition being that a first FPS mean determined based on the first FPS data is less than or equal to a first mean threshold; and the second condition being that a fluctuation value of the first FPS data within a time width set within the preset time length is greater than or equal to a first fluctuation threshold; If the first operating status information does not satisfy the first condition and the second condition, the hardware level information is determined to be the first display performance level.
5. The method according to claim 4, further comprising: after determining whether the first operating status information satisfies at least one of the first condition and the second condition: If the first operating status information satisfies at least one of the first condition and the second condition, a backup data resource for displaying backup digital content is loaded; the amount of hardware resources occupied by the terminal device when the backup data resource is loaded is less than the amount of hardware resources occupied by the terminal device when the first data resource is loaded.
6. The method according to claim 4, wherein if the first operating status information does not satisfy the first condition and the second condition, determining the hardware level information as the first display performance level, specifically comprises: If the first operating status information does not satisfy the first condition and the second condition, determining whether the first operating status information satisfies a third condition; The third condition is that the first FPS mean is less than or equal to a second mean threshold, and the fluctuation value of the first FPS data in the preset time length is greater than or equal to a second fluctuation threshold; The second mean threshold is greater than the first mean threshold; The second fluctuation threshold is smaller than the first fluctuation threshold; If the first operating status information does not satisfy the third condition, the hardware level information is determined to be the first display performance level.
7. The method according to claim 6, further comprising: after determining whether the first operating status information satisfies a third condition; If the first operating state information satisfies the third condition, determining a level lower than the hardware level information as the first display performance level; Data resources corresponding to lower display performance levels occupy fewer hardware resources of the terminal device when loaded.
8. The method according to claim 6, wherein determining whether the first operating status information satisfies a third condition comprises: If the first operating status information does not satisfy the first condition and the second condition, and the dynamic page content is displayed in a masked form, it is determined whether the first operating status information satisfies a third condition.
9. The method according to claim 4, wherein if the first operating status information does not satisfy the first condition and the second condition, determining the hardware level information as the first display performance level, specifically comprises: If the first operating status information does not satisfy the first condition and the second condition, and the dynamic page content is displayed in the form of a jump page, the hardware level information is determined to be the first display performance level.
10. The method according to claim 1, further comprising, after loading the first data resource corresponding to the first display performance level for displaying the dynamic page content: Obtaining second FPS data of the terminal device during the execution of the dynamic page content; Determining second operating status information of the terminal device according to the second FPS data; If the second operating status information indicates that the terminal device complies with a preset state, a resource loading strategy corresponding to the preset state is executed.
11. The method according to claim 10, wherein if the second operating state information indicates that the terminal device meets a preset state, executing a resource loading strategy corresponding to the preset state specifically comprises: Determining whether the second operating status information meets a fourth condition; The fourth condition is that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold, and the ratio of the fluctuation duration of the second FPS data to the running duration of the dynamic page content is less than a preset ratio threshold; If the second operating status information meets the fourth condition, the second data resource corresponding to the second display performance level is loaded; the second display performance level is lower than the first display performance level; the data resources corresponding to the lower display performance level occupy fewer hardware resources of the terminal device when loaded.
12. The method according to claim 11, wherein the first data resource includes a plurality of first dynamic elements corresponding to a first display performance level; and if the second operating state information satisfies the fourth condition, loading a second data resource corresponding to a second display performance level, specifically comprising: If the second running state information satisfies the fourth condition, identifying a first target dynamic element running within the fluctuation duration from the first data resource; loading a second target dynamic element corresponding to the second display performance level; The second target dynamic element is used to display the dynamic page content by replacing the first target dynamic element.
13. The method according to claim 12, further comprising, after identifying the first target dynamic element running within the fluctuation duration from the first data resource: Associating the element identifier of the first target dynamic element with the content identifier of the dynamic page content and storing the associated elements in the cache of the terminal device; The element identifier is used to indicate that when the dynamic page content is loaded, the target dynamic element corresponding to the element identifier in the dynamic page content is loaded in a downgraded manner.
14. The method according to claim 10, wherein if the second operating state information indicates that the terminal device meets a preset state, executing a resource loading strategy corresponding to the preset state specifically comprises: Determining whether the second operating status information meets a fifth condition; The fifth condition is that the second FPS mean determined based on the second FPS data is less than or equal to a third mean threshold; If the second operating status information meets the fifth condition, when rendering the dynamic page content, the anti-aliasing function is turned off, or the rendering resolution of the dynamic page content is reduced, or the anti-aliasing function is turned off and the rendering resolution of the dynamic page content is reduced.
15. The method according to claim 14, wherein reducing the rendering resolution of the dynamic page content comprises: Calculating a resolution adjustment coefficient based on the second FPS average and a desired target FPS average; The resolution adjustment coefficient is proportional to the second FPS mean and inversely proportional to the target FPS mean; The target FPS mean is greater than the second FPS mean; Multiplying the current first rendering resolution by the resolution adjustment coefficient to obtain a second rendering resolution; Render the dynamic page content according to the second rendering resolution.
16. The method according to claim 10, wherein if the second operating state information indicates that the terminal device meets a preset state, executing a resource loading strategy corresponding to the preset state specifically comprises: Determining whether the second operating status information meets a sixth condition; The sixth condition is that the fluctuation value of the second FPS data is greater than or equal to the third fluctuation threshold and less than or equal to the fourth fluctuation threshold, and the fluctuation duration of the second FPS data is greater than or equal to the fluctuation duration threshold; If the second operating status information satisfies the sixth condition, the rendering refresh frequency of the dynamic page content is reduced.
17. The method according to claim 1, wherein obtaining the hardware level information of the terminal device specifically comprises: Obtaining hardware level information of the terminal device from a cache; The hardware level information is obtained by the terminal device from a server based on the hardware parameters of the terminal device.
18. The method according to claim 17, further comprising, after obtaining the hardware level information of the terminal device: querying third FPS data of the dynamic page content from a cache according to the content identifier of the dynamic page content to be rendered; The third FPS data is the FPS data during the last time the terminal device ran the dynamic page content; determining third operating state information of the terminal device according to the third FPS data; determining a third display performance level of the terminal device based on the third operating state information and the hardware level information; A third data resource corresponding to the third display performance level for displaying the dynamic page content is loaded.
19. The method according to claim 18, wherein determining the third display performance level of the terminal device based on the third operating state information and the hardware level information comprises: Determining whether the third operating state information satisfies a seventh condition; The seventh condition is that a third FPS mean determined based on the third FPS data is less than or equal to a fourth mean threshold, and a fluctuation value of the third FPS data is greater than or equal to a fifth fluctuation threshold; If the third operating status information satisfies the seventh condition, a level lower than the hardware level information is determined as the third display performance level; data resources corresponding to a lower display performance level occupy fewer hardware resources of the terminal device when loaded.
20. The method according to claim 18, wherein determining the third display performance level of the terminal device based on the third operating state information and the hardware level information comprises: Determining whether the third operating state information satisfies an eighth condition; The eighth condition is that the third FPS mean determined based on the third FPS data is greater than or equal to a fifth mean threshold; If the third operating status information satisfies the eighth condition, a level higher than the hardware level information is determined as the third display performance level; data resources corresponding to a higher display performance level occupy more hardware resources of the terminal device when loaded.
21. A resource loading device, applied to a terminal device, comprising: A hardware level information acquisition module, used to obtain the hardware level information of the terminal device; The hardware level information is information determined according to the hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content; An FPS data acquisition module is used to obtain the first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold; an operating status information determining module, configured to determine first operating status information of the terminal device according to the first FPS data; a display performance level determining module, configured to determine a first display performance level of the terminal device based on the first operating state information and the hardware level information; The data resource loading module is used to load a first data resource corresponding to the first display performance level for displaying the dynamic page content.
22. A terminal device comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Acquiring hardware level information of the terminal device; the hardware level information is information determined based on hardware parameters of the terminal device and is used to indicate the display performance of the terminal device for dynamic page content; Obtaining first FPS data of the terminal device within a time range where the time interval from the current moment is less than or equal to a preset time threshold; Determining first operating status information of the terminal device according to the first FPS data; determining a first display performance level of the terminal device based on the first operating state information and the hardware level information; A first data resource corresponding to the first display performance level for displaying the dynamic page content is loaded.