CN113384901B - Interactive program instance processing method and device, computer equipment and storage medium - Google Patents

Interactive program instance processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113384901B
CN113384901B CN202110938345.1A CN202110938345A CN113384901B CN 113384901 B CN113384901 B CN 113384901B CN 202110938345 A CN202110938345 A CN 202110938345A CN 113384901 B CN113384901 B CN 113384901B
Authority
CN
China
Prior art keywords
interactive program
rendering
identification information
processing
instance
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
Application number
CN202110938345.1A
Other languages
Chinese (zh)
Other versions
CN113384901A (en
Inventor
郭少涛
孙华庆
郭建君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Weiling Times Technology Co Ltd
Original Assignee
Beijing Weiling Times Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Weiling Times Technology Co Ltd filed Critical Beijing Weiling Times Technology Co Ltd
Priority to CN202110938345.1A priority Critical patent/CN113384901B/en
Publication of CN113384901A publication Critical patent/CN113384901A/en
Application granted granted Critical
Publication of CN113384901B publication Critical patent/CN113384901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/50Features 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 details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5526Game data structure
    • A63F2300/5533Game data structure using program state or machine event data, e.g. server keeps track of the state of multiple players on in a multiple player game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game

Abstract

The application provides an interactive program instance processing method, an interactive program instance processing device, computer equipment and a storage medium, relates to the technical field of interactive program processing, and is used for improving the utilization rate of server resources. The method mainly comprises the following steps: acquiring control commands sent by different interactive program users of a client, wherein the control commands comprise interactive program user identification information and interactive program instance identification information; determining an interactive program instance corresponding to the interactive program instance identification information, wherein the interactive program instance is used for processing control commands of a plurality of interactive program users; storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner; sending the processing result of the interactive program instance on the control command to a rendering queue; rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result; and sending the rendering result to a corresponding client.

Description

Interactive program instance processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of interactive program processing technologies, and in particular, to an interactive program instance processing method and apparatus, a computer device, and a storage medium.
Background
Interactive programs developed by general interactive program engines (such as Unreal, Unity3D, etc.), whether single-machine interactive programs or large-scale multi-person online interactive programs, are operated on the client of interactive program users, and the interactive program users directly control the interactive programs. Different interactive program users run interactive program instances on different clients to present different interactive program scenes, each interactive program instance runs in a process of the interactive program user, different players carry out remote communication through network architectures such as C/S or P2P, and the like, wherein the architectures are processes and the interactive program instances in one-to-one correspondence, and always process a control signal of the interactive program user.
The common cloud technology only moves the operation of the interactive program to the server, each interactive program user still monopolizes one virtual server, which is the same as the non-cloud interactive program in nature, so that resources are wasted, one virtual server cannot serve a plurality of interactive program users, and the high-grade configuration of the server cannot be fully utilized.
Disclosure of Invention
The embodiment of the application provides an interactive program instance processing method and device, computer equipment and a storage medium, which are used for improving the utilization rate of server resources.
The embodiment of the invention provides an interactive program instance processing method, which comprises the following steps:
acquiring control commands sent by different interactive program users of a client, wherein the control commands comprise interactive program user identification information and interactive program instance identification information;
determining an interactive program instance corresponding to the interactive program instance identification information, wherein the interactive program instance is used for processing control commands of a plurality of interactive program users;
storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner;
sending the processing result of the interactive program instance on the control command to a rendering queue;
rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result;
and sending the rendering result to a corresponding client.
The embodiment of the invention provides an interactive program instance processing device, which comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring control commands sent by different interactive program users of a client, and the control commands comprise interactive program user identification information and interactive program instance identification information;
the determining module is used for determining an interactive program instance corresponding to the interactive program instance identification information, and the interactive program instance is used for processing control commands of a plurality of interactive program users;
the processing module is used for storing and processing the control command in a classified manner according to the interactive program user identification information in the interactive program example;
the first sending module is used for sending the processing result of the interactive program instance on the control command to a rendering queue;
the rendering module is used for rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result;
and the second sending module is used for sending the rendering result to the corresponding client.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the interactive program instance processing method when executing the computer program.
A computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the above-described interactive program instance processing method.
The invention provides a method, a device, computer equipment and a storage medium for processing an interactive program example, which comprises the steps of firstly obtaining control commands sent by different interactive program users at a client, wherein the control commands comprise interactive program user identification information and interactive program example identification information; then determining an interactive program instance corresponding to the interactive program instance identification information, and storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner; sending the processing result of the interactive program instance to the control command to a rendering queue; rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result; and finally, sending the rendering result to the corresponding client. The invention can process the control commands of a plurality of interactive program users in the same interactive program example, namely, a plurality of interactive program users share one interactive program example, thereby improving the resource utilization rate of the server.
Drawings
FIG. 1 is a flowchart of an example interactive program processing method provided herein;
fig. 2 is a schematic flow chart of an application scenario provided in the present application;
FIG. 3 is a schematic diagram of the size of the aggregation areas provided herein;
FIG. 4 is a schematic illustration of the aggregate area size provided herein;
fig. 5 is a schematic flow chart of an application scenario provided in the present application;
fig. 6 is a schematic structural diagram of an interactive program example processing device provided in the present application.
Fig. 7 is a schematic diagram of a computer device provided in the present application.
Detailed Description
In order to better understand the technical solutions described above, the technical solutions of the embodiments of the present application are described in detail below with reference to the drawings and the specific embodiments, and it should be understood that the specific features of the embodiments and the embodiments of the present application are detailed descriptions of the technical solutions of the embodiments of the present application, and are not limitations of the technical solutions of the present application, and the technical features of the embodiments and the embodiments of the present application may be combined with each other without conflict.
Referring to fig. 1, an example processing method of an interactive program according to the present invention is shown, where the interactive program may specifically be a computer program running on a terminal device, the program may specifically be a cloud game application program, and the method is used for a cloud server. The method specifically comprises the following steps of S101-S106:
and step S101, acquiring control commands sent by different interactive program users of the client.
The control command is a command for controlling the played network interactive program by the interactive program user, and different network interactive programs correspond to different control commands, for example, in a battle network interactive program, the control command may specifically be movement, attack, skill release, article purchase, and the like, and the implementation is not particularly limited. The control command comprises interactive program user identification information and interactive program instance identification information, the interactive program user identification information is used for uniquely identifying an interactive program user, and the interactive program instance identification information is used for uniquely identifying an opened interactive program. It should be noted that the interactive program in this embodiment may be a network interactive program of action, strategy, adventure, simulation, role playing, leisure, and the like, and the embodiment of the present invention is not limited specifically.
For example, in a strategic network interactive program jointly started by 10 interactive program users, each interactive program user corresponds to own interactive program user identification information, and 10 interactive program users correspond to one interactive program instance identification information, that is, the network interactive program currently started by the team of 10 interactive program users.
In this embodiment, the interactive program user identification information of the interactive program user may be always fixed, that is, no matter which session of the network interactive program is started by the player, the interactive program user identification information of the interactive program user in the network interactive program is all fixed; the interactive program instance identification information can automatically create corresponding identification information according to the starting of the network interactive program, and the created interactive program instance identification information is automatically destroyed after the interactive program is finished.
For example, for a chess and card network interactive program, the interactive program user identification information of the interactive program user in the network interactive program is fixed, and when any 4 users open a table of chess and card interactive programs, corresponding interactive program instance identification information is created, and when the table of chess and card interactive programs is finished, the created interactive program instance identification information is destroyed.
Of course, the embodiment of the present invention may also provide a method for constantly fixing the identity of the interaction program instance, for example, in the above example, the chess and card interaction program may represent a chess and card table, such as a chess and card network interaction program of 1-N tables, and the chess and card interaction program of each table corresponds to the identity information of the interaction program instance, and the identity information may not be changed due to different players entering the interaction program.
Step S102, the interactive program instance corresponding to the interactive program instance identification information is determined.
In the embodiment of the invention, the cloud server can contain a plurality of ongoing interactive program examples, that is, the cloud server can simultaneously start the interactive program examples, each interactive program example is used for processing control commands of a plurality of interactive program users, that is, interactive programs performed by a plurality of interactive program users in the same interactive program scene are controlled by one interactive program example, so that the utilization rate of the interactive program examples is improved, and further, the utilization rate of server resources is improved.
And step S103, storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner.
In this embodiment, under the same interactive program instance, the control commands sent by the interactive program users are stored and processed according to the interactive program user identification information in a classified manner. For example, in an interactive program instance, if there are an interactive program user a, an interactive program user B, and an interactive program user C, three memories need to be created for storing control commands corresponding to the interactive program user a, the interactive program user B, and the interactive program user C, respectively, and then the control commands sent by the interactive program users are processed to update the states of the interactive program users.
For example, the control command sent by the interactive program user to the network server is a series of instructions of character movement, attack, skill release and the like, and then the network server gives the control commands to the corresponding interactive program examples for processing, and the interactive program examples may go through a series of processes (for example, i attack others, the server calculates injury according to some factors and the like), and obtain some processing results (for example, blood volume deducted by the attacked person) and other instructions (attack animation, hit animation and the like).
And step S104, sending the processing result of the interactive program instance to the control command to a rendering queue.
The rendering queue is used for storing processing results of the control commands.
And step S105, rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result.
In an embodiment provided by the present invention, rendering an interactive program page according to a processing result in a rendering queue to obtain a rendering result, includes: acquiring processing results corresponding to user identification information belonging to the same interactive program in a rendering queue; and rendering according to the processing results corresponding to the user identification information belonging to the same interactive program to obtain rendering results corresponding to the interactive program users.
And step S106, sending the rendering result to the corresponding client.
Correspondingly, in an embodiment provided by the present invention, the rendering result corresponding to the interactive program user identification information is sent to the client corresponding to the interactive program user. Then, packing the rendering result to obtain a rendering compression packet; and sending the rendering compression packet corresponding to the interactive program user identification information to the client corresponding to the interactive program user. Therefore, the data volume transmitted to the client by the cloud server is reduced, and the security of data transmission is improved.
The invention provides an interactive program example processing method, firstly, obtaining control commands sent by different interactive program users at a client, wherein the control commands comprise interactive program user identification information and interactive program example identification information; then determining an interactive program instance corresponding to the interactive program instance identification information, and storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner; sending the processing result of the interactive program instance to the control command to a rendering queue; rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result; and finally, sending the rendering result to the corresponding client. The invention can process the control commands of a plurality of interactive program users in the same interactive program example, namely, a plurality of interactive program users share one interactive program example, thereby improving the resource utilization rate of the server.
As shown in fig. 2, in an application scenario provided by the present invention, a player a and a player B participate in an interactive program instance together, the player a and the player B perform event capture (i.e., control command of the player), and then send to a cloud server with interactive program user identification information and interactive program instance identification information of the player, after receiving an event sent by the player, the cloud server searches for an interactive program instance that processes the control command of the player a and the player B through the interactive program instance identification information, and then stores and processes the event sent by the player in the interactive program instance according to the interactive program user identification information in a classified manner. The player A and the player B respectively correspond to the interactive program assets in the interactive program instance, and after the event sent by the player is processed, the asset states respectively corresponding to the player A and the player B are correspondingly updated. And finally, sending the rendering result (returned response data) to a corresponding client so that the client outputs corresponding video and audio stream data.
In an embodiment provided by the present invention, before storing and processing the control command according to the interactive program user identification information in a classified manner in the interactive program instance, the method further includes:
step S301, position information corresponding to each interactive program user in the interactive program instance is obtained.
The position information is the specific position of the interactive program role used by the interactive program user in the interactive program instance, namely the position of the interactive program role in the interactive program map.
Step S302, determining an aggregation area according to the position information of each interactive program user.
The distance between the interactive program users in the aggregation area is smaller than a preset value, the preset value can be determined according to the set size of the aggregation area, the size of the aggregation area can be preset, and the preset value can be specifically set to be an area where a map is displayed on a user plane interface of the interactive program. In this embodiment, the larger the aggregation area setting is, the larger the preset value may be set accordingly; the smaller the aggregation area setting, the smaller the preset value may be set accordingly.
Of course, the size of the preset area may also be determined according to the size of the preset value and the location information of the interactive program user, where the preset value may be set according to actual requirements, for example, the preset value may be set to 1 meter, 2 meters, and the like (where the preset value refers to a distance between interactive program roles in the interactive program), and the present embodiment is not particularly limited.
For example, the preset value is set to 2, 3 interactive program users a, B and C exist, the distance between the interactive program user a and the interactive program user B is smaller than 2, and the distance between the interactive program user B and the interactive program user C is smaller than 2, it can be determined that the interactive program user a, the interactive program user B and the interactive program user C are in an aggregation area, and the aggregation area is determined according to the position relationship among the interactive program user a, the interactive program user B and the interactive program user C. As shown in fig. 3, the interactive program user a, the interactive program user B, and the interactive program user C are arranged vertically, and the height of the determined aggregation area is slightly larger; as shown in fig. 4, the interactive program user a, the interactive program user B, and the interactive program user C are arranged laterally, and the width of the determined aggregation area is slightly larger.
Step S303, acquiring shared interactive program assets in the aggregation area.
In this embodiment, the shared interactive program assets are assets that are shared by interactive program users within the aggregated area. For example, two interactive program users are in the same house, and the objects seen by the two interactive program users are certainly the same, which is the shared interactive program asset, and the objects in the room belong to the assets of the two interactive program users at the same time, because the user of the interactive program A needs to use the objects, and the user of the interactive program B needs to use the objects. The shared interactive program assets are not specifically related to the interactive program users, which interactive program users can use (such as visible trees and audible sound), the interactive program users need to associate the assets, and if two players are in the same scene and are in close distance, such as in front of a tree, the program only needs to process once when processing the data of the tree, and then the program can be put into a process.
Step S304, correspondingly storing the identification information of the shared interactive program assets and the aggregation areas into a shared memory.
For the embodiment of the invention, the shared interactive program assets and the identification information of the aggregation area are correspondingly stored in the shared memory, and when the shared interactive program assets are encountered, the cloud server can only ensure that only one share of the shared interactive program assets is generated according to a certain mechanism and is shared to the interactive program users needing to use. The specific implementation method is that the cloud server has an exclusive memory for each user, and all data related to the current player are stored in the memory; in addition to partitioning the memory for each user, the cloud server may leave a shared memory in which all shared data is stored, and when a player needs to use the memory, the player may be allocated a pointer to the memory, and the shared memory may be found through the pointer, and when all players cannot use the memory, the pointer is recycled, and then the shared memory is released.
Step S305, acquiring the aggregation area to which the interactive program user belongs.
In this embodiment, the aggregation areas may be distinguished by identification information of the aggregation areas.
Step S306, acquiring exclusive assets of the interactive program user from the exclusive memory corresponding to the interactive program user; and acquiring the shared interactive program assets corresponding to the identification information of the aggregation area from the shared memory.
It should be noted that each interactive program user corresponds to an exclusive memory, and the exclusive memory is used to store an exclusive resource of the interactive program user, where the exclusive resource is a resource exclusively used by the interactive program user.
Specifically, in this embodiment, the shared interactive program assets respectively corresponding to the identification information of the multiple aggregation areas stored in the shared memory are shared to the interactive program users that need to use. The method comprises the steps of searching identification information of an aggregation area from a shared memory, and searching shared interactive program assets corresponding to the identification information of the aggregation area.
And step S307, processing the control command according to the exclusive assets and the shared interactive program assets to obtain a processing result.
In the method for processing an interactive program instance provided by this embodiment, identification information of a shared interactive program asset and an aggregation area is correspondingly stored in a shared memory, and when an interactive program user needs to share the interactive program asset, an aggregation area to which the interactive program user belongs is first obtained, and then an exclusive asset of the interactive program user is obtained from an exclusive memory corresponding to the interactive program user; and acquiring the shared interactive program assets corresponding to the identification information of the aggregation area from the shared memory, and finally processing the control command according to the exclusive assets and the shared interactive program assets to obtain a processing result. Because the shared interactive program assets in the shared memory can be used by a plurality of interactive program users, the interactive program users do not need to separately store the interactive program assets repeated with other interactive program users, thereby reducing the storage space occupied by the interactive program assets through the invention.
As shown in fig. 5, in an application scenario provided by the present invention, a cloud server is a main loop of an interactive program, and the cloud server continuously processes an event from a client and continuously returns an interactive program data stream. After the data of each player arrives at the server, the data is put into an event queue.
Each cycle of the interactive program main loop is a logic frame, each frame takes out all control commands (such as player moving characters, mouse message pressing, keyboard message pressing and the like) from the message team, and then classifies the messages according to player identification, such as putting the messages of player A together and the messages of player B together; the purpose of classification is to process the messages of player A without processing the messages of player B, and the messages are processed separately, so that the data is more compact and unnecessary judgment is not generated.
According to a certain algorithm, partial player processing is put into one block, for example, two players are close to each other (the distance between two players in the world of the interactive program, for example, in a room), the vast majority of the associated interactive program assets are overlapped (the two players are in the same scene, which is the same as the real world principle, for example, two people are in the same house, and objects seen by the two people are definitely the same, which means that the assets are overlapped, and the objects in the room belong to the assets of the two people at the same time, because the player A needs to use and the player B needs to use, the interactive program assets have no specific relationship with the user, which player can use (for example, a tree can be seen and sounds can be heard), the player is related to the assets, if the two players are in the same scene and are close to each other, for example, the program is in front of the tree, when processing the data of the tree, only one processing pass is needed, and the processing can be put into one block. After the classes are classified, a thread is started for each class to update the state of the interactive program object (according to the input information received from the client, for example, when a player presses a button for moving to the left, the character in the interactive program needs to be updated in the interactive program to move to the left). And finally, submitting the data to a rendering module, and returning the data to the front-end player after the data is processed by the rendering module.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an interactive program instance processing apparatus is provided, and the interactive program instance processing apparatus corresponds to the interactive program instance processing method in the above embodiments one to one. As shown in fig. 6, the functional modules of the interactive program instance processing apparatus are described in detail as follows:
an obtaining module 10, configured to obtain a control command sent by different interactive program users at a client, where the control command includes interactive program user identification information and interactive program instance identification information;
a determining module 20, configured to determine an interactive program instance corresponding to the interactive program instance identification information, where the interactive program instance is used to process control commands of multiple interactive program users;
the processing module 30 is configured to store and process the control command in the interactive program instance according to the interactive program user identification information in a classified manner;
a first sending module 40, configured to send a processing result of the control command by the interactive program instance to a rendering queue;
the rendering module 50 is configured to perform interactive program page rendering according to the processing result in the rendering queue to obtain a rendering result;
and a second sending module 60, configured to send the rendering result to the corresponding client.
In an optional embodiment, the rendering module 50 is specifically configured to:
acquiring a processing result corresponding to the user identification information belonging to the same interactive program in the rendering queue;
rendering according to the processing results corresponding to the user identification information belonging to the same interactive program to obtain rendering results corresponding to the interactive program users;
correspondingly, the second sending module 60 is specifically configured to send the rendering result corresponding to the interactive program user identification information to the client corresponding to the interactive program user.
In an optional embodiment, the apparatus further comprises: a packing module 70;
the packing module 70 is configured to pack the rendering result to obtain a rendering compression packet;
correspondingly, the second sending module 60 is specifically configured to send the rendering compression packet corresponding to the interactive program user identification information to the client corresponding to the interactive program user.
In an optional embodiment, the obtaining module 10 is further configured to obtain location information corresponding to each interactive program user in the interactive program instance;
the determining module 20 is further configured to determine an aggregation area according to the location information of each interactive program user, where a distance between the interactive program users in the aggregation area is smaller than a preset value;
an obtaining module 10, configured to obtain a shared interactive program asset in the aggregation area, where the shared interactive program asset is an asset shared by interactive program users in the aggregation area;
a storage module 80, configured to correspondingly store the shared interactive program assets and the identification information of the aggregation areas in a shared memory, where the shared memory stores shared interactive program assets corresponding to the identification information of multiple aggregation areas respectively.
In an alternative embodiment, the processing module 30 is specifically configured to:
acquiring an aggregation area to which the interactive program user belongs;
acquiring exclusive assets of the interactive program user from an exclusive memory corresponding to the interactive program user; acquiring shared interactive program assets corresponding to the identification information of the aggregation area from the shared memory;
and processing the control command according to the exclusive assets and the shared interactive program assets to obtain a processing result.
For specific limitations of the interactive program instance processing device, reference may be made to the above limitations on the interactive program instance processing method, which are not described herein again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an interactive program instance processing method.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring control commands sent by different interactive program users of a client, wherein the control commands comprise interactive program user identification information and interactive program instance identification information;
determining an interactive program instance corresponding to the interactive program instance identification information, wherein the interactive program instance is used for processing control commands of a plurality of interactive program users;
storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner;
sending the processing result of the interactive program instance on the control command to a rendering queue;
rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result;
and sending the rendering result to a corresponding client.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring control commands sent by different interactive program users of a client, wherein the control commands comprise interactive program user identification information and interactive program instance identification information;
determining an interactive program instance corresponding to the interactive program instance identification information, wherein the interactive program instance is used for processing control commands of a plurality of interactive program users;
storing and processing the control command in the interactive program instance according to the interactive program user identification information in a classified manner;
sending the processing result of the interactive program instance on the control command to a rendering queue;
rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result;
and sending the rendering result to a corresponding client.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. An interactive program instance processing method is applied to a cloud server, and comprises the following steps:
acquiring control commands sent by different interactive program users of a client, wherein the control commands comprise interactive program user identification information and interactive program instance identification information;
determining an interactive program instance corresponding to the interactive program instance identification information, wherein the interactive program instance is used for processing control commands of a plurality of interactive program users;
acquiring the position information respectively corresponding to each interactive program user in the interactive program example;
determining an aggregation area according to the position information of each interactive program user, wherein the distance between the interactive program users in the aggregation area is smaller than a preset value;
acquiring shared interactive program assets in the aggregation area, wherein the shared interactive program assets are assets shared by interactive program users in the aggregation area;
correspondingly storing the shared interactive program assets and the identification information of the aggregation areas into a shared memory, wherein the shared memory stores the shared interactive program assets corresponding to the identification information of the aggregation areas respectively;
acquiring an aggregation area to which the interactive program user belongs;
acquiring exclusive assets of the interactive program user from an exclusive memory corresponding to the interactive program user; acquiring shared interactive program assets corresponding to the identification information of the aggregation area from the shared memory;
processing the control command according to the exclusive assets and the shared interactive program assets to obtain a processing result;
sending the processing result of the interactive program instance on the control command to a rendering queue; each interactive program instance corresponds to one rendering queue;
rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result;
and sending the rendering result to a corresponding client.
2. The interactive program instance processing method according to claim 1, wherein the rendering an interactive program page according to the processing result in the rendering queue to obtain a rendering result includes:
acquiring a processing result corresponding to the user identification information belonging to the same interactive program in the rendering queue;
rendering according to the processing results corresponding to the user identification information belonging to the same interactive program to obtain rendering results corresponding to the interactive program users;
the sending the rendering result to the corresponding client includes:
and sending the rendering result corresponding to the interactive program user identification information to the client corresponding to the interactive program user.
3. The interactive program instance processing method of claim 2, further comprising:
packaging the rendering result to obtain a rendering compression packet;
the sending the rendering result corresponding to the interactive program user identification information to the client corresponding to the interactive program user comprises:
and sending the rendering compression packet corresponding to the interactive program user identification information to a client corresponding to the interactive program user.
4. An interactive program instance processing apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring control commands sent by different interactive program users of a client, and the control commands comprise interactive program user identification information and interactive program instance identification information;
the determining module is used for determining an interactive program instance corresponding to the interactive program instance identification information, and the interactive program instance is used for processing control commands of a plurality of interactive program users;
the processing module is used for storing and processing the control command in a classified manner according to the interactive program user identification information in the interactive program example; the classification basis is that the distance between interactive program users corresponding to the interactive program user identification information is smaller than a preset value;
the first sending module is used for sending the processing result of the interactive program instance on the control command to a rendering queue; each interactive program instance corresponds to one rendering queue;
the rendering module is used for rendering the interactive program page according to the processing result in the rendering queue to obtain a rendering result;
the second sending module is used for sending the rendering result to the corresponding client;
the acquisition module is further used for acquiring the corresponding position information of each interactive program user in the interactive program instance;
the determining module is further used for determining an aggregation area according to the position information of each interactive program user, and the distance between the interactive program users in the aggregation area is smaller than a preset value;
the acquisition module is further used for acquiring shared interactive program assets in the aggregation area, wherein the shared interactive program assets are assets shared by interactive program users in the aggregation area;
the storage module is used for correspondingly storing the shared interactive program assets and the identification information of the aggregation areas into a shared memory, and the shared memory stores the shared interactive program assets corresponding to the identification information of the aggregation areas respectively;
the processing module is specifically configured to:
acquiring an aggregation area to which the interactive program user belongs;
acquiring exclusive assets of the interactive program user from an exclusive memory corresponding to the interactive program user; acquiring shared interactive program assets corresponding to the identification information of the aggregation area from the shared memory;
and processing the control command according to the exclusive assets and the shared interactive program assets to obtain a processing result.
5. The interactive program instance processing apparatus according to claim 4, wherein the rendering module is specifically configured to:
acquiring a processing result corresponding to the user identification information belonging to the same interactive program in the rendering queue;
rendering according to the processing results corresponding to the user identification information belonging to the same interactive program to obtain rendering results corresponding to the interactive program users;
the second sending module is specifically configured to send the rendering result corresponding to the interactive program user identification information to the client corresponding to the interactive program user.
6. The interactive program instance processing apparatus according to claim 5, further comprising: a packaging module;
the packaging module is used for packaging the rendering result to obtain a rendering compression package;
the second sending module is specifically configured to send the rendering compression packet corresponding to the interactive program user identification information to the client corresponding to the interactive program user.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the interactive program instance processing method according to any one of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the interactive program instance processing method according to any one of claims 1 to 3.
CN202110938345.1A 2021-08-16 2021-08-16 Interactive program instance processing method and device, computer equipment and storage medium Active CN113384901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110938345.1A CN113384901B (en) 2021-08-16 2021-08-16 Interactive program instance processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110938345.1A CN113384901B (en) 2021-08-16 2021-08-16 Interactive program instance processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113384901A CN113384901A (en) 2021-09-14
CN113384901B true CN113384901B (en) 2022-01-18

Family

ID=77622579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110938345.1A Active CN113384901B (en) 2021-08-16 2021-08-16 Interactive program instance processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113384901B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813214A (en) * 2019-04-11 2020-10-23 广东虚拟现实科技有限公司 Virtual content processing method and device, terminal equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741809B (en) * 2016-12-21 2020-05-12 腾讯科技(深圳)有限公司 Interaction method, terminal, server and system between virtual images
CN109669739A (en) * 2017-10-16 2019-04-23 阿里巴巴集团控股有限公司 A kind of interface rendering method, device, terminal device and storage medium
CN109126129B (en) * 2018-08-31 2022-03-08 腾讯科技(深圳)有限公司 Method, device and terminal for picking up virtual article in virtual environment
CN111951366B (en) * 2020-07-29 2021-06-15 北京蔚领时代科技有限公司 Cloud native 3D scene game method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813214A (en) * 2019-04-11 2020-10-23 广东虚拟现实科技有限公司 Virtual content processing method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN113384901A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
US20220355204A1 (en) Game data processing method and apparatus, computer, and readable storage medium
CN110772799B (en) Session message processing method, device and computer readable storage medium
CN108888958B (en) Virtual object control method, device, equipment and storage medium in virtual scene
WO2022151946A1 (en) Virtual character control method and apparatus, and electronic device, computer-readable storage medium and computer program product
CN109582463A (en) Resource allocation method, device, terminal and storage medium
CN110898428B (en) Multi-virtual object interaction method, device, server and storage medium
CN109413480A (en) Picture processing method, device, terminal and storage medium
CN104965695B (en) The method and apparatus of analog subscriber real-time operation
CN105641934B (en) The method and device that player role switches in real time in a kind of same account
WO2009113054A1 (en) Technological platform for gaming
CN110580257A (en) Data sharing method, server and medium
CN113384901B (en) Interactive program instance processing method and device, computer equipment and storage medium
US20240009571A1 (en) Game data processing method and apparatus, device, storage medium, and program product
CN113244609A (en) Multi-picture display method and device, storage medium and electronic equipment
CN112402981A (en) Game scene control method and device, storage medium and electronic equipment
CN112156475B (en) Business data processing method and device, electronic equipment and storage medium
CN116310232A (en) Data processing method, device, storage medium and program product for digital collection
CN101751513B (en) Turn-based online game implementation method based on distributed server
EP2775414A1 (en) Role clearing method, device and system for emulator game
CN114470746A (en) Server system, data transmission method, device, equipment and storage medium
CN113144606A (en) Skill triggering method of virtual object and related equipment
CN110515458A (en) A kind of group creating method and device, electronic equipment, storage medium
US20240024778A1 (en) Updating gameplay parameters based on parameters shown in gameplay video
CN114489408B (en) Animation processing system, method, device and storage medium
CN112044083B (en) Virtual article providing method, display method, device, 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