CN116820658B - Cloud application page rendering method, device, equipment and storage medium - Google Patents
Cloud application page rendering method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116820658B CN116820658B CN202311109096.0A CN202311109096A CN116820658B CN 116820658 B CN116820658 B CN 116820658B CN 202311109096 A CN202311109096 A CN 202311109096A CN 116820658 B CN116820658 B CN 116820658B
- Authority
- CN
- China
- Prior art keywords
- target
- cloud application
- processor
- pool
- graphic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 116
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000012216 screening Methods 0.000 claims abstract description 14
- 238000009434 installation Methods 0.000 claims description 39
- 238000004590 computer program Methods 0.000 claims description 16
- 230000004044 response Effects 0.000 claims description 2
- 230000001960 triggered effect Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000012795 verification Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/308—Details of the user interface
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a cloud application page rendering method, a device, equipment and a storage medium, which comprise the following steps: after detecting that the target cloud application triggers a page rendering request, screening a target graphic processor in a pre-constructed resource pre-opening pool; the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of the application resource and each candidate graphic processor is a starting state; performing page rendering on the target cloud application according to the application resources by the target graphic processor; after detecting that the target graphic processor completes the rendering operation, releasing the target graphic processor into a common resource pool; the common resource pool includes a plurality of idle graphics processors. According to the technical scheme, the page rendering efficiency of the cloud application can be improved, the use cost of the cloud application is reduced, and the use experience of a user on the cloud application is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a cloud application page rendering method, device, equipment, and storage medium.
Background
The cloud application (such as a cloud game) is an application mode based on cloud computing, and in an operation mode of the cloud application, all applications are operated at a server side, and rendered application pictures are compressed and then transmitted to a user client through a network.
When the existing cloud application realizes page rendering, application resources are generally loaded after a user request is received, and then a graphics processor (Graphics Processing Unit, GPU) is adopted to realize page rendering of the cloud application according to the application resources.
However, the existing rendering method needs to load application resources after each user request, which results in the problems of overlong application opening time, poor user experience, increased cloud application use cost and resource waste if the GPU is not effectively utilized.
Disclosure of Invention
The invention provides a cloud application page rendering method, device, equipment and storage medium, which can improve the page rendering efficiency of cloud application, reduce the use cost of cloud application and improve the use experience of a user on cloud application.
According to an aspect of the present invention, there is provided a cloud application page rendering method, including:
After detecting that the target cloud application triggers a page rendering request, screening a target graphic processor in a pre-constructed resource pre-opening pool;
the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of the application resource and each alternative graphic processor is the starting state
Performing page rendering on the target cloud application according to the application resources by the target graphic processor;
after detecting that the target graphic processor completes the rendering operation, releasing the target graphic processor into a common resource pool; the common resource pool includes a plurality of idle graphics processors.
Optionally, before detecting that the target cloud application triggers the page rendering request, the method further includes:
responding to a target cloud application selected by a user in a cloud application list, and acquiring a target installation package matched with the target cloud application from an installation package storage library;
copying the target installation package into a resource pre-opening pool, and acquiring a target archive file matched with the target cloud application from an application archive library;
copying the target archive file to the resource pre-opened pool.
Optionally, performing, by the target graphics processor, page rendering on the target cloud application according to the application resource, including:
And rendering the page of the target cloud application according to the target installation package and the target archive file stored in the resource pre-opening pool by the target graphic processor.
Optionally, after detecting that the target graphics processor completes the rendering operation, releasing the target graphics processor into the common resource pool includes:
and after detecting that the target cloud application is closed, updating the working state of the target graphics processor into an idle state, and storing the target graphics processor in a public resource pool.
Optionally, the method further comprises:
counting the number of the alternative graphic processors stored in the resource pre-opened pool at the current time in real time;
judging whether the number of the alternative graphic processors is smaller than a first threshold value;
if yes, at least one idle graphic processor is obtained from the public resource pool, the working state of each idle graphic processor is updated to be the starting state, and then each updated graphic processor is stored in the resource pre-opening pool.
Optionally, the method further comprises:
counting the number of idle graphic processors stored in a public resource pool at the current time in real time;
judging whether the number of the idle graphic processors is smaller than a second threshold value;
if yes, triggering early warning information corresponding to the public resource pool.
Optionally, before the target installation package matched with the target cloud application is acquired in the installation package storage library in response to the target cloud application selected by the user in the cloud application list, the method further comprises:
responding to the identity information input by the user, and verifying the identity information;
and if the identity information is successfully verified, feeding back the cloud application list to the user so that the user can select a target cloud application in the cloud application list.
According to another aspect of the present invention, there is provided a cloud application page rendering apparatus, including:
the processor screening module is used for screening the target graphic processor in the pre-constructed resource pre-opening pool after detecting that the target cloud application triggers the page rendering request; the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of the application resource and each alternative graphic processor is a starting state;
the page rendering module is used for rendering the page of the target cloud application according to the application resource through the target graphic processor;
the processor releasing module is used for releasing the target graphic processor into the public resource pool after detecting that the target graphic processor completes the rendering operation; the common resource pool includes a plurality of idle graphics processors.
According to another aspect of the present invention, there is provided an electronic apparatus, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the cloud application page rendering method of any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the cloud application page rendering method of any of the embodiments of the present invention when executed.
According to the technical scheme provided by the embodiment of the invention, after the target cloud application is detected to trigger the page rendering request, the target graphic processor is screened from the pre-constructed resource pre-opening pool; the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of the application resource and each alternative graphic processor is a starting state; performing page rendering on the target cloud application according to the application resources by the target graphic processor; after detecting that the target graphic processor completes the rendering operation, releasing the target graphic processor into a common resource pool; the technical means of the plurality of idle graphic processors in the public resource pool can improve the page rendering efficiency of the cloud application, reduce the use cost of the cloud application and improve the use experience of a user on the cloud application.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a cloud application page rendering method according to a first embodiment of the present invention;
fig. 2 is a flowchart of another cloud application page rendering method according to the second embodiment of the present invention;
FIG. 3 is a flowchart of another cloud application page rendering method according to a third embodiment of the present invention;
fig. 4 is a flowchart of another cloud application page rendering method according to the fourth embodiment of the present invention;
FIG. 5 is a schematic view of a cloud game page rendering method according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a cloud application page rendering device according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device for implementing a cloud application page rendering method according to a sixth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a cloud application page rendering method according to an embodiment of the present invention, where the method may be performed by a cloud application page rendering device, and the cloud application page rendering device may be implemented in hardware and/or software, and the cloud application page rendering device may be configured in an electronic device such as a computer. As shown in fig. 1, the method includes:
and 110, after detecting that the target cloud application triggers the page rendering request, screening target graphic processors in a pre-constructed resource pre-opening pool.
In this embodiment, the electronic device may be an application platform for providing multiple cloud services to a user, and the target cloud application may be any cloud application in the application platform. After detecting that the target cloud application triggers the page rendering request, the target graphics processor can be screened from the resource pre-opening pool according to a preset rule. Specifically, the preset rule may be that the candidate graphics processor with the longest waiting time in the resource pre-pool is used as the target graphics processor; or an alternative graphics processor may be randomly selected from the resource pre-opened pool as the target graphics processor, which is not limited in this embodiment.
In a specific embodiment, the resource pre-opening pool stores a plurality of candidate graphics processors in advance, and application resources corresponding to the target cloud application. And the working state of the application resource and each alternative graphic processor is a starting state. Wherein the alternative graphics processor may be a processor waiting to execute a cloud application page rendering request. The application resource may be a resource used when rendering the target cloud application.
In this embodiment, specifically, before detecting that the target cloud application triggers the page rendering request, the common resource pool and the resource pre-opening pool corresponding to the graphics processor may be pre-constructed. The common resource pool comprises a plurality of idle graphic processors. After the public resource pool is constructed, a preset number of idle graphic processors in the public resource pool can be selected to be stored in a resource pre-opening pool, and the working state of each graphic processor in the resource pre-opening pool is changed into a starting state.
And 120, performing page rendering on the target cloud application according to the application resources by the target graphic processor.
And 130, after detecting that the target graphics processor completes the rendering operation, releasing the target graphics processor into a public resource pool.
The method has the advantages that the target graphic processor ending the rendering task is released into the public resource pool, so that the graphic processor can be repeatedly utilized, resource waste is avoided, and the use cost of cloud application is reduced.
In this embodiment, by dividing the resource pool storing the graphics processor into the common resource pool and the resource pre-opening pool, the graphics processor executing the rendering request and the application resource can be loaded before the cloud application triggers the page rendering request.
According to the technical scheme provided by the embodiment of the invention, after the target cloud application is detected to trigger the page rendering request, the target graphic processor is screened from the pre-constructed resource pre-opening pool; performing page rendering on the target cloud application according to the application resources by the target graphic processor; after detecting that the target graphic processor completes the rendering operation, releasing the target graphic processor into a common resource pool; the technical means of the plurality of idle graphic processors in the public resource pool can improve the page rendering efficiency of the cloud application, reduce the use cost of the cloud application and improve the use experience of a user on the cloud application.
Example two
Fig. 2 is a flowchart of a cloud application page rendering method according to a second embodiment of the present invention, where the embodiment is further refined. As shown in fig. 2, the method includes:
and 210, responding to a target cloud application selected by a user in a cloud application list, and acquiring a target installation package matched with the target cloud application from an installation package storage library.
In this embodiment, the cloud application list may be a list including a plurality of cloud applications. The installation package storage library can be used for storing installation packages respectively corresponding to a plurality of cloud applications. The target installation package may be an installation package of the target cloud application.
In this step, optionally, after detecting that the user selects the target cloud application, a target installation package storage address matched with the target cloud application may be obtained, and then, according to the target installation package storage address, a target installation package matched with the target cloud application may be obtained.
In an optional implementation manner of the embodiment of the present invention, before obtaining, in an installation package repository, a target installation package matched with a target cloud application selected by a user in a cloud application list, the method further includes: responding to identity information input by a user, and verifying the identity information; and if the identity information is successfully verified, feeding back a cloud application list to the user, so that the user selects a target cloud application in the cloud application list.
In this embodiment, the identity information may include a user nickname, password, cell phone number, authentication code, fingerprint, etc. There are a variety of ways to verify identity information, for example, identity verification may be based on a nickname and a password. Alternatively, the authentication may be performed according to the mobile phone number and the authentication code of the user. Alternatively still, the authentication may be based on a user fingerprint.
For example, the user identity may be verified after receiving the mobile phone number and the verification code input by the user. And if the verification is successful, the cloud application list is displayed to the user. If the authentication is unsuccessful, the authentication failure can be prompted, and an authentication page is returned for the user to carry out authentication again.
And 220, copying the target installation package into a resource pre-opening pool, and acquiring a target archive file matched with the target cloud application from an application archive library.
In this embodiment, the application archive repository may be used to store archive files corresponding to a plurality of cloud applications respectively. The target archive may be an archive of the target cloud application for the current user. The target archive file may include historical operational data of current user execution on the target cloud application, and the like.
In a specific embodiment, a target archive file matched with the target cloud application can be obtained from an application archive base according to the application identifier of the target cloud application and the identity information of the current user.
And step 230, copying the target archive file to a resource pre-opened pool.
The method has the advantages that the target installation package and the target archive file are copied to the resource pre-opening pool before the page rendering request is received, time for loading application resources subsequently is saved, and page rendering efficiency is improved.
And 240, after detecting that the target cloud application triggers the page rendering request, screening target graphic processors in a pre-constructed resource pre-opening pool.
And 250, performing page rendering on the target cloud application by the target graphics processor according to the target installation package and the target archive file stored in the resource pre-opening pool.
And 260, after the target cloud application is detected to be closed, updating the working state of the target graphics processor into an idle state, and storing the target graphics processor in a public resource pool.
The advantage of this arrangement is that by releasing the target graphics processor in time, resource waste can be avoided, and thus the largest-scale user can be served with the smallest resource cost.
According to the technical scheme provided by the embodiment of the invention, the target installation package matched with the target cloud application is obtained from the installation package storage library by responding to the target cloud application selected by the user in the cloud application list; copying the target installation package into a resource pre-opening pool, and acquiring a target archive file matched with the target cloud application from an application archive library; copying the target archive file to a resource pre-opening pool; after detecting that the target cloud application triggers a page rendering request, screening a target graphic processor in a pre-constructed resource pre-opening pool; performing page rendering on the target cloud application according to the target installation package and the target archive file stored in the resource pre-opening pool by the target graphic processor; after the target cloud application is detected to be closed, the working state of the target graphics processor is updated to be in an idle state, and the target graphics processor is stored in the public resource pool, so that the page rendering efficiency of the cloud application can be improved, the use cost of the cloud application can be reduced, and the use experience of a user on the cloud application can be improved.
It should be noted that, in the present embodiment, the operations of collecting and processing personal information follow relevant national laws and regulations concerning personal information security.
Example III
Fig. 3 is a flowchart of another cloud application page rendering method according to the third embodiment of the present invention, which is a further refinement of the foregoing embodiment. As shown in fig. 3, the method includes:
and 310, after detecting that the target cloud application triggers the page rendering request, screening target graphic processors in a pre-constructed resource pre-opening pool.
And 320, performing page rendering on the target cloud application according to the application resources by the target graphic processor.
And 330, after detecting that the target graphics processor completes the rendering operation, releasing the target graphics processor into the common resource pool.
Step 340, counting the number of the alternative graphic processors stored in the resource pre-opened pool at the current time in real time.
Step 350, determining whether the number of the candidate graphics processors is smaller than a first threshold, if yes, executing step 360, and if not, returning to execute step 340.
In this embodiment, if the number of candidate graphics processors stored in the resource pre-open pool at the current time is smaller than the first threshold, it may be considered that the number of current candidate graphics processors does not satisfy the preset number condition, and the graphics processors need to be continuously acquired from the common resource pool and stored into the resource pre-open pool.
If the number of candidate graphics processors stored in the pre-opened pool at the current time is greater than or equal to the first threshold, the current number of candidate graphics processors may be considered to satisfy the preset number condition, and step 340 is performed back to continue to perform subsequent statistics on the candidate graphics processor data in the pre-opened pool.
Step 360, at least one idle graphic processor is obtained from the public resource pool, the working state of each idle graphic processor is updated to be in a starting state, and then each updated graphic processor is stored in the resource pre-opening pool.
According to the technical scheme provided by the embodiment of the invention, after the target cloud application is detected to trigger the page rendering request, the target graphic processor is screened from the pre-constructed resource pre-opening pool; performing page rendering on the target cloud application according to the application resources by the target graphic processor, and releasing the target graphic processor into a public resource pool; counting the number of the alternative graphic processors stored in the resource pre-opened pool at the current time in real time; judging whether the number of the alternative graphic processors is smaller than a first threshold value, if so, acquiring at least one idle graphic processor from a public resource pool, updating the working state of each idle graphic processor into a starting state, and then storing each updated graphic processor in a resource pre-opening pool; if not, returning to the technical means for continuously counting the number of the alternative graphic processors stored in the resource pre-opening pool, so that the page rendering efficiency of the cloud application can be improved, the use cost of the cloud application can be reduced, and the use experience of the user on the cloud application can be improved.
It should be noted that, the steps 310-330 may be executed in parallel with the steps 340-360, that is, the technical solution of this embodiment may implement real-time monitoring of the number of the candidate graphics processors in the resource pre-pool, and not only monitoring after the target graphics processor is released.
Example IV
Fig. 4 is a flowchart of another cloud application page rendering method according to a fourth embodiment of the present invention, where the present embodiment is further elaborated on the foregoing embodiment. As shown in fig. 4, the method includes:
and step 410, after detecting that the target cloud application triggers the page rendering request, screening target graphic processors in a pre-constructed resource pre-opening pool.
And 420, performing page rendering on the target cloud application according to the application resources by the target graphic processor.
Step 430, after detecting that the target graphics processor completes the rendering operation, releasing the target graphics processor into the common resource pool.
Step 440, counting the number of idle graphic processors stored in the public resource pool at the current time in real time.
Step 450, judging whether the number of idle graphics processors is smaller than the second threshold, if yes, executing step 460, otherwise, returning to execute step 440.
In this embodiment, if the number of idle graphics processors stored in the common resource pool at the current time is smaller than the second threshold, it may be considered that the number of idle graphics processors does not meet the preset number condition, and then the early warning information corresponding to the common resource pool needs to be triggered.
If the number of idle graphics processors stored in the common resource pool at the current time is greater than or equal to the second threshold, then the current number of idle graphics processors may be considered to satisfy the preset number condition, and step 440 is performed back to continue the subsequent statistics of idle graphics processor data in the common resource pool.
Step 460, triggering early warning information corresponding to the public resource pool.
In a specific embodiment, the early warning information may be an early warning log, or an audio warning information, which is not limited in this embodiment.
According to the technical scheme provided by the embodiment of the invention, after the target cloud application is detected to trigger the page rendering request, the target graphic processor is screened from the pre-constructed resource pre-opening pool; performing page rendering on the target cloud application according to the application resources by the target graphic processor, and releasing the target graphic processor into a public resource pool; counting the number of idle graphic processors stored in a public resource pool at the current time in real time; judging whether the number of the idle graphic processors is smaller than a second threshold value, if so, triggering early warning information corresponding to a public resource pool; if not, returning to the technical means of continuously counting the number of the idle graphic processors stored in the public resource pool, so that the page rendering efficiency of the cloud application can be improved, the use cost of the cloud application is reduced, and the use experience of a user on the cloud application is improved.
It should be noted that, the steps 410-430 may be executed in parallel with the steps 440-460, that is, the technical solution of this embodiment may realize real-time monitoring of the number of graphics processors in the common resource pool, and not only after the target graphics processor is released, but also after the target graphics processor is released.
In a preferred embodiment, taking cloud application as a cloud game as an example, fig. 5 is a schematic view of a scenario of a cloud game page rendering method according to an embodiment of the present invention.
As shown in fig. 5, first, a user may input identity information at a client to perform identity authentication. If the identity authentication is passed, the client feeds back the cloud game list to the user so that the user can select a target cloud game in the cloud game list. Then, the server responds to a target cloud game selected by a user in a cloud game list, and a target installation package matched with the target cloud game is obtained from an installation package storage library; the server copies the target installation package into a resource pre-opening pool, and obtains a target archive file matched with the target cloud game from an application archive library; the target archive file is also copied to the resource pre-opening pool by the server side, and the progress, achievement, collected equipment and the like of the last running of the target cloud game are recorded by the target archive file.
And after detecting that the target cloud game triggers the page rendering request, the server screens the target graphic processor in the resource pre-opening pool through the scheduling system, and performs page rendering on the target cloud game according to the target installation package and the target archive file through the target graphic processor. And finally, after the server detects that the target cloud game is closed, updating the working state of the target graphic processor into an idle state, and storing the target graphic processor in a public resource pool.
During the cloud game page rendering process, the scheduling system can monitor the number of graphics processors in the common resource pool and the resource pre-opening pool in real time. Specifically, if the number of the candidate graphics processors in the resource pre-opened pool is smaller than a first threshold, acquiring an idle graphics processor from the public resource pool and storing the idle graphics processor in the resource pre-opened pool. And if the number of the idle graphic processors in the public resource pool is smaller than a second threshold value, sending early warning information to the user.
Example five
Fig. 6 is a schematic structural diagram of a cloud application page rendering device according to a fifth embodiment of the present invention, where the device includes: a processor screening module 61, a page rendering module 62 and a processor releasing module 63.
The processor screening module 61 is configured to screen a target graphics processor in a pre-constructed resource pre-opening pool after detecting that the target cloud application triggers a page rendering request;
the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of the application resource and each alternative graphic processor is a starting state;
the page rendering module 62 is configured to render, by using the target graphics processor, a page of the target cloud application according to the application resource;
a processor releasing module 63, configured to release the target graphics processor into the common resource pool after detecting that the target graphics processor completes the rendering operation; the common resource pool includes a plurality of idle graphics processors.
According to the technical scheme provided by the embodiment of the invention, after the target cloud application is detected to trigger the page rendering request, the target graphic processor is screened from the pre-constructed resource pre-opening pool; the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working states of the application resources and the candidate graphics processors are the starting states, and page rendering is carried out on the target cloud application according to the application resources through the target graphics processor; after detecting that the target graphic processor completes the rendering operation, releasing the target graphic processor into a common resource pool; the technical means of the plurality of idle graphic processors in the public resource pool can improve the page rendering efficiency of the cloud application, reduce the use cost of the cloud application and improve the use experience of a user on the cloud application.
Optionally, the apparatus further includes an application resource acquisition module, where the module includes:
the target installation package acquisition unit is used for responding to a target cloud application selected by a user in the cloud application list and acquiring a target installation package matched with the target cloud application from the installation package storage library;
the target file acquisition unit is used for copying the target installation package into the resource pre-opening pool and acquiring a target archive file matched with the target cloud application from the application archive library;
and the file copying unit is used for copying the target archive file to the resource pre-opening pool.
Optionally, the page rendering module 62 includes:
and the page rendering unit is used for rendering the page of the target cloud application according to the target installation package and the target archive file stored in the resource pre-opening pool by the target graphic processor.
Optionally, the processor release module 63 includes:
and the state updating unit is used for updating the working state of the target graphic processor into an idle state after detecting that the target cloud application is closed, and storing the target graphic processor in the public resource pool.
Optionally, the apparatus further includes a pre-open pool update module, the module including:
the alternative processor statistics unit is used for counting the number of the alternative graphic processors stored in the resource pre-opened pool at the current time in real time;
The processor number judging unit is used for judging whether the number of the alternative graphic processors is smaller than a first threshold value;
and the processor newly-added unit is used for acquiring at least one idle graphic processor from the public resource pool, updating the working state of each idle graphic processor into a starting state, and then storing each updated graphic processor in the resource pre-opening pool.
Optionally, the apparatus further includes a common resource pool monitoring module, the module including:
the idle processor statistics unit is used for counting the number of idle graphic processors stored in the public resource pool in the current time in real time;
an idle number judging unit for judging whether the number of idle graphic processors is smaller than a second threshold;
and the early warning unit is used for triggering early warning information corresponding to the public resource pool if the information is yes.
Optionally, the apparatus further comprises an identity verification module, the module comprising:
the identity information verification unit is used for responding to the identity information input by the user and verifying the identity information;
and the application list feedback unit is used for feeding back the cloud application list to the user if the identity information verification is successful, so that the user selects the target cloud application in the cloud application list.
The device can execute the method provided by all the embodiments of the invention, and has the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the embodiments of the present invention can be found in the methods provided in all the foregoing embodiments of the present invention.
Example six
Fig. 7 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a cloud application page rendering method.
In some embodiments, the cloud application page rendering method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the cloud application page rendering method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the cloud application page rendering method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (9)
1. The cloud application page rendering method is characterized by comprising the following steps of:
after detecting that the target cloud application triggers a page rendering request, screening a target graphic processor in a pre-constructed resource pre-opening pool;
the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of each candidate graphic processor is a starting state;
Performing page rendering on the target cloud application according to the application resources by the target graphic processor;
releasing the target graphics processor into a common resource pool after detecting that the target graphics processor completes rendering operation; the public resource pool comprises a plurality of idle graphic processors;
counting the number of the alternative graphic processors stored in the resource pre-opened pool at the current time in real time;
judging whether the number of the alternative graphic processors is smaller than a first threshold value;
if yes, at least one idle graphic processor is obtained from the public resource pool, the working state of each idle graphic processor is updated to be a starting state, and then each updated graphic processor is stored in a resource pre-opening pool;
wherein before detecting that the target cloud application triggers the page rendering request, the method further comprises:
pre-constructing the public resource pool;
and selecting a preset number of idle graphic processors in the public resource pool, storing the idle graphic processors in a resource pre-opening pool, and updating the working state of each idle graphic processor into a starting state.
2. The method of claim 1, wherein prior to detecting that the target cloud application triggered the page rendering request, further comprising:
Responding to a target cloud application selected by a user in a cloud application list, and acquiring a target installation package matched with the target cloud application from an installation package storage library;
copying the target installation package into a resource pre-opening pool, and acquiring a target archive file matched with the target cloud application from an application archive library;
copying the target archive file to a resource pre-opened pool.
3. The method of claim 2, wherein rendering, by the target graphics processor, the target cloud application according to the application resource comprises:
and rendering the page of the target cloud application according to the target installation package and the target archive file stored in the resource pre-opening pool by the target graphic processor.
4. The method of claim 1, wherein releasing the target graphics processor in the common resource pool after detecting that the target graphics processor has completed a rendering operation comprises:
and after the target cloud application is detected to be closed, updating the working state of the target graphics processor into an idle state, and storing the target graphics processor in a public resource pool.
5. The method according to claim 1, wherein the method further comprises:
counting the number of idle graphic processors stored in a public resource pool at the current time in real time;
judging whether the number of the idle graphic processors is smaller than a second threshold value;
if yes, triggering early warning information corresponding to the public resource pool.
6. The method of claim 2, further comprising, prior to obtaining a target installation package in an installation package repository that matches a target cloud application selected by a user in a cloud application list in response to the target cloud application:
responding to identity information input by a user, and verifying the identity information;
and if the identity information is successfully verified, feeding back a cloud application list to the user, so that the user selects a target cloud application in the cloud application list.
7. A cloud application page rendering apparatus, the apparatus comprising:
the processor screening module is used for screening the target graphic processor in the pre-constructed resource pre-opening pool after detecting that the target cloud application triggers the page rendering request;
the resource pre-opening pool is used for storing a plurality of alternative graphic processors and application resources corresponding to the target cloud application in advance; the working state of each candidate graphic processor is a starting state;
The page rendering module is used for rendering pages of the target cloud application according to the application resources through the target graphic processor;
the processor releasing module is used for releasing the target graphic processor into a public resource pool after detecting that the target graphic processor completes rendering operation; the public resource pool comprises a plurality of idle graphic processors;
the device further comprises a pre-open pool updating module, wherein the pre-open pool updating module comprises:
the alternative processor statistics unit is used for counting the number of the alternative graphic processors stored in the resource pre-opened pool at the current time in real time;
a processor number judging unit for judging whether the number of the candidate graphics processors is smaller than a first threshold;
a processor newly-added unit, configured to acquire at least one idle graphics processor from the common resource pool, update a working state of each idle graphics processor to a starting state, and store each updated graphics processor in a resource pre-opened pool;
wherein before detecting that the target cloud application triggers the page rendering request, the method further comprises:
pre-constructing the public resource pool;
And selecting a preset number of idle graphic processors in the public resource pool, storing the idle graphic processors in a resource pre-opening pool, and updating the working state of each idle graphic processor into a starting state.
8. An electronic device, the device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the cloud application page rendering method of any of claims 1-6.
9. A computer readable storage medium storing computer instructions for causing a processor to implement the cloud application page rendering method of any one of claims 1-6 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311109096.0A CN116820658B (en) | 2023-08-31 | 2023-08-31 | Cloud application page rendering method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311109096.0A CN116820658B (en) | 2023-08-31 | 2023-08-31 | Cloud application page rendering method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116820658A CN116820658A (en) | 2023-09-29 |
CN116820658B true CN116820658B (en) | 2023-11-17 |
Family
ID=88139592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311109096.0A Active CN116820658B (en) | 2023-08-31 | 2023-08-31 | Cloud application page rendering method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116820658B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112783384A (en) * | 2019-11-08 | 2021-05-11 | 荣耀终端有限公司 | Control method for cloud application operation and electronic equipment |
CN115576653A (en) * | 2022-11-11 | 2023-01-06 | 深圳云天畅想信息科技有限公司 | Cloud application operation method, device, equipment and medium based on GPU cloud desktop platform |
WO2023000888A1 (en) * | 2021-07-23 | 2023-01-26 | 北京字节跳动网络技术有限公司 | Cloud application implementing method and apparatus, electronic device, and storage medium |
CN116319790A (en) * | 2023-03-13 | 2023-06-23 | 北京新唐思创教育科技有限公司 | Rendering method, device, equipment and storage medium of full-true scene |
CN116339860A (en) * | 2023-03-31 | 2023-06-27 | 网易(杭州)网络有限公司 | Resource loading method and device, electronic equipment and computer readable storage medium |
CN116501407A (en) * | 2023-03-27 | 2023-07-28 | 阿里巴巴(中国)有限公司 | Application starting method, system, equipment and medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12028272B2 (en) * | 2021-09-27 | 2024-07-02 | International Business Machines Corporation | Pre-allocation of cloud resources through anticipation |
-
2023
- 2023-08-31 CN CN202311109096.0A patent/CN116820658B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112783384A (en) * | 2019-11-08 | 2021-05-11 | 荣耀终端有限公司 | Control method for cloud application operation and electronic equipment |
WO2023000888A1 (en) * | 2021-07-23 | 2023-01-26 | 北京字节跳动网络技术有限公司 | Cloud application implementing method and apparatus, electronic device, and storage medium |
CN115576653A (en) * | 2022-11-11 | 2023-01-06 | 深圳云天畅想信息科技有限公司 | Cloud application operation method, device, equipment and medium based on GPU cloud desktop platform |
CN116319790A (en) * | 2023-03-13 | 2023-06-23 | 北京新唐思创教育科技有限公司 | Rendering method, device, equipment and storage medium of full-true scene |
CN116501407A (en) * | 2023-03-27 | 2023-07-28 | 阿里巴巴(中国)有限公司 | Application starting method, system, equipment and medium |
CN116339860A (en) * | 2023-03-31 | 2023-06-27 | 网易(杭州)网络有限公司 | Resource loading method and device, electronic equipment and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
Secure Cloud Infrastructure: A Survey on Issues, Current Solutions, and Open Challenges;Yara Alghofaili等;《applied sciences》;第1-36页 * |
Also Published As
Publication number | Publication date |
---|---|
CN116820658A (en) | 2023-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110062025B (en) | Data acquisition method, device, server and storage medium | |
CN110765288B (en) | Image information synchronization method, device and system and storage medium | |
CN111813573B (en) | Communication method of management platform and robot software and related equipment thereof | |
CN113064661A (en) | Memory processing method and device for batch tasks, electronic equipment and storage medium | |
CN113254320A (en) | Method and device for recording user webpage operation behaviors | |
CN113076112A (en) | Database deployment method and device and electronic equipment | |
CN114328132A (en) | Method, device, equipment and medium for monitoring state of external data source | |
CN112182520A (en) | Illegal account identification method and device, readable medium and electronic equipment | |
CN113595886A (en) | Instant messaging message processing method and device, electronic equipment and storage medium | |
CN116820658B (en) | Cloud application page rendering method, device, equipment and storage medium | |
CN117033058A (en) | Analysis method, device, equipment and medium for software crash data | |
CN116627432A (en) | Front-end application automatic deployment method, device, equipment and medium | |
CN116450176A (en) | Version updating method and device, electronic equipment and storage medium | |
CN116149951A (en) | Topology information acquisition method and device of basic input/output system | |
CN114841267B (en) | Real-time prediction method, device, electronic equipment and computer program product | |
CN116303069A (en) | Test method, device, upper computer, system and medium of vehicle-mounted terminal | |
CN114331446B (en) | Method, device, equipment and medium for realizing out-of-chain service of block chain | |
CN116126719A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN115328764A (en) | Test code optimization method based on automatic test and related equipment thereof | |
CN113313278A (en) | Commemorative coin reservation method based on block chain, user terminal and block chain link point | |
CN111770080A (en) | Method and device for recovering device fingerprint | |
CN117251614A (en) | Acquisition method, device, medium and electronic equipment of digital content on chain | |
CN117670236A (en) | Mobile-terminal-based to-be-handled flow approval method, device, equipment and medium | |
CN114500519A (en) | Communication method, device, equipment and storage medium based on cloud mobile phone | |
CN117632670A (en) | Fault warning method and device for test environment, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |