WO2021143182A1 - Game processing method and apparatus, electronic device, and computer-readable storage medium - Google Patents
Game processing method and apparatus, electronic device, and computer-readable storage medium Download PDFInfo
- Publication number
- WO2021143182A1 WO2021143182A1 PCT/CN2020/115987 CN2020115987W WO2021143182A1 WO 2021143182 A1 WO2021143182 A1 WO 2021143182A1 CN 2020115987 W CN2020115987 W CN 2020115987W WO 2021143182 A1 WO2021143182 A1 WO 2021143182A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- action event
- game
- terminal
- type
- action
- Prior art date
Links
Images
Classifications
-
- 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
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
Definitions
- This application relates to data processing technology. Specifically, this application relates to a game processing method, device, electronic equipment, and computer-readable storage medium.
- a cloud game is a game service based on cloud computing technology that runs the game on a cloud server, then encodes and compresses the rendering instructions or the rendered game screen video, and transmits it to the user terminal through the network for decoding and display.
- the operation of cloud games relies heavily on a good network. If the network environment bandwidth, delay, packet loss rate and other aspects are unstable, the game will not run smoothly.
- the rendering schemes include a video stream scheme and an instruction stream scheme. Since all renderings are based on the cloud, network fluctuations often occur in reality. At this time, the stream transmitted through the network will inevitably be affected, resulting in the delay or loss of data packets to the client, which inevitably leads to game screen delays and the entire UI Interaction will also be delayed, which brings a bad experience to the user. How to make users feel smooth control under various network conditions is a technical problem to be solved by this application.
- This application provides a game processing method, device, electronic equipment, and computer-readable storage medium, which can solve the problem of how to make users feel smooth control under various network conditions.
- the technical solution is as follows:
- a game processing method includes:
- the target screen is displayed in the terminal.
- the method before the terminal receives the action instruction for the current screen of the preset game, the method further includes:
- the type of the action event includes a UI type
- the action event of the UI type is an action event executed for the UI of the preset game.
- the step of executing the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen includes:
- the application client in the terminal executes the UI type action event to obtain the corresponding target screen.
- the type of the action event includes a non-UI type
- the non-UI type of action event is an action event executed outside the UI for the preset game.
- the step of executing the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen includes:
- the terminal sends the action event to the cloud server, so that the cloud server executes the non-UI type action event, obtains the first video stream data of the corresponding first video frame image, and sends the first video stream data of the corresponding first video frame image to the cloud server.
- the first video stream data is received, and the first video stream data is decoded to obtain the first video frame image, and the first video frame image is used as a corresponding target image.
- the step of executing the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen includes:
- the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;
- Receive the second video stream data decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
- the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes at least one of an interaction protocol, application program interface information, and game data.
- a game processing method includes:
- the action event When receiving an action event for the current screen of the preset game sent by the terminal, execute the action event to obtain the corresponding game screen; wherein, the action event is of a non-UI type;
- a game processing device in a third aspect, includes:
- the receiving module is configured to receive an action instruction for the current screen of the preset game
- An obtaining module configured to obtain the action event in the action instruction, and determine the type of the action event
- the first processing module is configured to execute the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain a corresponding target screen;
- the display module is configured to display the target screen in the terminal.
- it also includes:
- the receiving module is further configured to receive a start instruction for the preset game before the action instruction for the current screen of the preset game is received;
- the detection module is configured to detect whether there is an application client of the preset game in the terminal;
- the second processing module is configured to obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
- the type of the action event includes a UI type
- the action event of the UI type is an action event executed for the UI of the preset game.
- the first processing module is specifically configured to:
- the application client in the terminal executes the UI type action event to obtain the corresponding target screen.
- the type of the action event includes a non-UI type
- the non-UI type of action event is an action event executed outside the UI for the preset game.
- the first processing module includes:
- the sending submodule is configured to send the action event to the cloud server, so that the cloud server executes the non-UI type action event to obtain the first video stream data of the corresponding first video frame image, and Sending the first video stream data to the terminal;
- the first receiving submodule is configured to receive the first video stream data
- the decoding sub-module is configured to decode the first video stream data to obtain the first video frame image, and use the first video frame image as a corresponding target image.
- the first processing module is specifically configured to:
- the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;
- Receive the second video stream data decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
- the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes at least one of an interaction protocol, application program interface information, and game data.
- a game processing device in a fourth aspect, includes:
- the execution module is configured to execute the action event to obtain the corresponding game screen when receiving the action event for the current screen of the preset game sent by the terminal; wherein, the action event is of a non-UI type;
- a rendering module configured to render the game screen to obtain a third video frame image
- An encoding module configured to encode the third video frame image to obtain corresponding third video stream data
- the sending module is configured to send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and based on the video frame image Obtain the target screen of the preset game.
- an electronic device in a fifth aspect, includes:
- the bus is configured to connect the processor and the memory
- the memory is configured to store operation instructions
- the processor is configured to execute operations corresponding to the game processing methods shown in the first aspect and the second aspect of the present application when the operation instruction is invoked.
- a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium.
- the program is executed by a processor, the game processing method shown in the first and second aspects of the present application is implemented.
- the terminal when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then determines the type of the action event based on the action instruction.
- the type executes the action event through at least one of the preset cloud server or the terminal, obtains the corresponding target screen, and displays the target screen in the terminal.
- the terminal when the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in a cloud game, it does not It needs to be executed through the cloud server again, so as to ensure that the interactive experience of the cloud game will not be affected even when the network fluctuates, thereby improving the user's game experience.
- an action event for example, UI interaction
- Figure 1 is a schematic diagram of the interaction logic between the cloud server and the terminal of the application
- FIG. 2 is a schematic flowchart of a game processing method provided by an embodiment of the application
- FIG. 3 is a schematic flowchart of a game processing method provided by another embodiment of this application.
- FIG. 4 is a schematic flowchart of a game processing method provided by still another embodiment of this application.
- FIG. 5 is a schematic structural diagram of a game processing device provided by another embodiment of this application.
- FIG. 6 is a schematic structural diagram of a game processing device provided by another embodiment of this application.
- FIG. 7 is a schematic structural diagram of an electronic device for processing a game according to another embodiment of this application.
- FIG. 8 is a schematic structural diagram of an electronic device for processing a game according to another embodiment of the application.
- this application adopts a solution of separate design, separate rendering, and off-site rendering before mixing for cloud games.
- cloud games can include two scenarios: heavy game scenarios and light interaction scenarios.
- the heavy game scene can be the main scene part of the cloud game, and its rendering consumes a large amount of processing power of GPU (Graphics Processing Unit, graphics processor).
- GPU Graphics Processing Unit
- fighting in the game and map-related scenes are all heavy game scenes.
- Lightly interactive scenes are parts related to user manipulation, such as virtual arrow keys, avatars, settings menus, backpack systems, chat boxes, etc., displayed on the game interface that users can often manipulate, including the GPU processing power consumed by rendering Less UI (User Interface).
- the GPU of the cloud server can be used for rendering for heavy game scenes, which can make full use of the high performance of the cloud server; and for light interactive scenes, the GPU of the terminal can be used for rendering, which can make full use of the GPU processing of the terminal.
- the type of the action event can be determined by the target object of the action event. If the target object of the action event belongs to a light game scene, then the action event is of UI type, and the action event can be executed through the terminal; if the target object of the action event belongs to a heavy game scene, then the action event is of non-UI type.
- the action event needs to be executed through the cloud server; if the target object of the action event belongs to both a heavy game scene and a light game scene, then the light game scene part of the action event is processed through the terminal, and the cloud server is used to process the The heavy game scene part of the action event.
- the terminal may have the following characteristics:
- the device includes a central processing unit, a memory, an input component and an output component, that is to say, the device is often a microcomputer device that includes communication functions.
- the device can also have a variety of input methods, such as keyboard, mouse, touch screen, microphone and camera, etc., and can adjust the input as needed.
- the equipment often has a variety of output methods, such as receivers, display screens, etc., which can also be adjusted as needed;
- the device In terms of software, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, etc.
- an operating system such as Windows Mobile, Symbian, Palm, Android, iOS, etc.
- these operating systems become more and more open, personalized applications based on these open operating system platforms emerge in endlessly, such as communication books, calendars, notepads, calculators, and various games, which greatly satisfy To meet the needs of personalized users;
- the device has flexible access methods and high-bandwidth communication performance, and can automatically adjust the selected communication method according to the selected service and the environment, so as to facilitate the user's use.
- the equipment can support GSM (Global System for Mobile Communication), WCDMA (Wideband Code Division Multiple Access), CDMA2000 (Code Division Multiple Access), TDSCDMA (Time Division- Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), Wi-Fi (Wireless-Fidelity, Wireless Fidelity), and WiMAX (Worldwide Interoperability for Microwave Access), etc., so as to adapt to multiple standard networks, Not only supports voice services, but also supports multiple wireless data services;
- GSM Global System for Mobile Communication
- WCDMA Wideband Code Division Multiple Access
- CDMA2000 Code Division Multiple Access
- TDSCDMA Time Division- Synchronous Code Division Multiple Access
- Wi-Fi Wireless-Fidelity
- WiMAX Worldwide Interoperability for Microwave Access
- equipment pays more attention to humanization, individualization and multi-function.
- equipment has moved from a "equipment-centric" model to a "human-centric” model, integrating embedded computing, control technology, artificial intelligence technology, and biometric authentication technology, which fully embodies the people-oriented tenet .
- the equipment can be adjusted according to individual needs and become more personalized.
- the device itself integrates a lot of software and hardware, and its functions are becoming more and more powerful.
- Remixing after remote rendering refers to superimposing the screen rendered by the cloud server and the screen rendered by the terminal on the terminal, and displaying the superimposed screen to the user.
- the terminal after the terminal receives the user's manipulation, it can render the interactive UI first without delay. This part is not affected by the network and can respond to the user's manipulation in a timely manner. In this way, when the network fluctuates, The interactive experience of the game will still not be affected.
- the cloud server application client SAPP can be set in the cloud server, and at the same time, the application client CAPP can be set in the terminal.
- SIPP and CAPP respectively include their corresponding data.
- the SAPP may include map-related scene data, etc.
- the CAPP may include UI resource data, etc.
- SIPP and CAPP are equipped with network data exchange channels.
- data that needs to be exchanged between the SAPP and the CAPP, including at least one of an interaction protocol, API information, and game data.
- the two run in different places (on the cloud and on the local side, respectively). Because the two need to collaborate, some data needs to be synchronized, that is, interact. For example, if the user sets the frame rate of the game screen on the CAPP to be 60 frames, then CAPP needs to notify the SIPP that the frame rate of the game screen is 60 frames, so this setting information needs to be synchronized to the SIPP, and the SIPP processes accordingly.
- the process is data interaction.
- the arrow keys need to be sent to the server SIPP for corresponding processing; another example, the parameters of the characters in the game have changed and need to be transferred to the CAPP so that the CAPP displays normally .
- the corresponding installation files of SAPP and CAPP will be deployed on the cloud server at the same time.
- the SAPP will start in the cloud server.
- the user needs to download the CAPP installation file to the terminal, and then run the installation file to get the CAPP.
- a host App (Application, application) can also be installed in the terminal.
- the host App is similar to a game lobby.
- cloud game icons in it, which can be used as an entrance. Click the cloud game icon to start playing the corresponding cloud game. Specifically, the user clicks on a certain cloud game icon, generates a startup command, and transmits the startup command to the cloud server.
- the cloud server starts to start the SAPP, the terminal downloads the CAPP installation file to the local, and the terminal runs the installation file to get the CAPP and synchronizes it in the terminal Start running CAPP.
- a game processing method includes:
- Step S201 When the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, and determines the type of the action event.
- the application client in the terminal when the application client in the terminal is running, it can capture the user's manipulation, that is, the action instruction triggered by the user, and the action instruction includes the corresponding action event. For example, when the user clicks the virtual arrow key, an action instruction that the action event is a movement is initiated; the user clicks the backpack icon, that is an action instruction that initiates the action event to show the backpack.
- the cloud game in this application includes heavy game scenes and light interaction scenes, after receiving an action instruction and obtaining the corresponding action event from the action instruction, it is necessary to determine the type of the action event. In order to determine whether to use the server to execute the action event or the terminal to execute the action event.
- Step S202 based on the type of the action instruction, execute the action event through at least one of the preset cloud server or the terminal to obtain the corresponding target screen.
- the type of action event can be determined by the target object of the action event. If the target object of the action event belongs to a light game scene, the corresponding target screen can be obtained by executing the action event through the terminal; if the target object of the action event belongs to a heavy game scene, then the action event can be executed through the cloud server Obtain the corresponding target screen; if the target object of the action event belongs to both a heavy game scene and a light game scene with attributes, the terminal will process the light game scene part of the action event to obtain the light game scene screen through the cloud server To process the severe game scene part of the action event to obtain the heavy game scene picture, and then integrate the light game scene picture with the heavy game scene picture in the terminal to obtain the target picture.
- step S203 the target screen is displayed in the terminal.
- the terminal when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from a single cloud server into a cloud server and a terminal. Since the terminal's execution of action events is not affected by the network and can respond to user control in a timely manner, it has high real-time performance.
- the terminal when the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in a cloud game, it does not It needs to be executed through the cloud server again, so as to ensure that the interactive experience of the cloud game will not be affected even when the network fluctuates, thereby improving the user's game experience.
- an action event for example, UI interaction
- a game processing method is provided. As shown in FIG. 3, the game processing method includes:
- Step S301 When receiving a start instruction for a preset game, detect whether there is an application client of the preset game in the terminal.
- the preset game can be any cloud game in the host App.
- a startup instruction for the cloud game is initiated.
- the terminal After the terminal receives the startup instruction, it can detect whether there is an application client for the cloud game in the terminal. It is the CAPP of this cloud game.
- the terminal sends the start instruction to the cloud server, and the cloud server can start the SAPP after receiving the start instruction.
- Step S302 if not, obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
- the terminal If the terminal detects that there is no application client (CAPP) of the preset game in the terminal, it can send an acquisition request to the cloud server to obtain the installation file of the application client. After the cloud server receives the acquisition request, it sends the application to the terminal The installation file of the program client, the terminal runs the installation file after receiving the installation file to obtain the application client, and then runs the application client.
- CAPP application client
- Step S303 When the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, and determines the type of the action event.
- the application client in the terminal when the application client in the terminal is running, it can capture the user's manipulation, that is, the action instruction triggered by the user, and the action instruction includes the corresponding action event. For example, when the user clicks the virtual arrow key, an action instruction that the action event is a movement is initiated; the user clicks the backpack icon, that is an action instruction that initiates the action event to show the backpack.
- the cloud game in this application includes heavy game scenes and light interaction scenes
- the terminal can handle the action event; if SAPP is used to execute the action event, then the action instruction can be sent to the SAPP in the cloud server, and then the cloud server can handle the action event. Process the action event.
- Step S304 based on the type of the action instruction, execute the action event through at least one of the preset cloud server or the terminal to obtain the corresponding target screen.
- the type of action event can be determined by the target object of the action event. If the target object of the action event belongs to a light game scene, then the action event is of UI type, and the action event can be executed through the terminal; if the target object of the action event belongs to a heavy game scene, then the action event is of non-UI type.
- the action event needs to be executed through the cloud server; if the target object of the action event belongs to both a heavy game scene and a light game scene, then the light game scene part of the action event is processed through the terminal, and the cloud server is used to process the The heavy game scene part of the action event.
- the step of executing an action event through at least one of the preset cloud server or terminal based on the type of the action instruction to obtain the corresponding target screen includes:
- the application client in the terminal executes the UI type action event to obtain the corresponding target screen; wherein, the UI type action event is an action event executed for the UI of the preset game.
- the CAPP can be used to execute the action event, and at the same time, the GPU of the terminal is used for rendering to obtain the corresponding target screen after the action event is executed.
- an action event is initiated to show the action instruction of the backpack.
- CAPP detects that the target object of the action event belongs to a light game scene, then The CAPP obtains the UI resource data of the backpack, and calls the GPU of the terminal to render the UI resource data of the backpack, thereby displaying the backpack in the current game screen and obtaining the target screen.
- the step of executing an action event through at least one of the preset cloud server or terminal based on the type of the action instruction to obtain the corresponding target screen includes:
- the terminal sends the action event to the cloud server, so that the cloud server executes the non-UI type action event, and obtains the first video stream data of the corresponding first video frame image, and the first The video stream data is sent to the terminal; wherein, non-UI type action events are action events executed outside the UI of the preset game;
- the first video stream data is received, and the first video stream data is decoded to obtain the first video frame image, and the first video frame image is used as the target image.
- the action event initiated by the user in CAPP is of a non-UI type
- the action event can be sent to SAPP
- SAPP calls the GPU in the cloud server for rendering, and obtains the corresponding target screen after executing the action event
- the cloud server captures the target image to obtain the corresponding video frame image
- encodes the video frame image to generate the video stream data of the video frame image
- the terminal receives the video stream
- the video stream data is decoded to obtain the corresponding video frame image, and the video frame image is used as the target image.
- an action instruction that the action event is map switching is initiated.
- CAPP detects that the target object of the action event belongs to a severe game scene, then CAPP passes The terminal sends the action instruction to the SAPP, and the SAPP obtains the map-related scene data, and calls the GPU of the cloud server to render the map-related scene data to obtain the target screen after the map switching, and then the cloud server switches the target screen after the map switching Perform image capture to obtain the corresponding first video frame image, and then encode the first video frame image to generate the first video stream data of the first video frame image, and send the first video stream data to the terminal, and the terminal receives After the first video stream data is received, the first video stream data is decoded to obtain the corresponding first video frame image, and the first video frame image is displayed in the CAPP as the target image.
- CAPP displays the target screen of the heavy game scene
- it will continue to display the light game scene such as the UI screen
- the user will only see the heavy game scene without the UI screen, but in this case the user has not targeted
- the light game scene initiates an action event, so I won't go into details. For example, if the user clicks on the map switch, the CAPP will continue to display the UI screen while displaying the switched map. Otherwise, the user will see the switched map scene without the UI screen.
- the video frame image captured by the cloud server may be one frame or multiple frames, depending on the number of target images obtained after rendering. In practical applications, if there is only one target picture, then the video stream data corresponds to one frame of video frame image; if there are multiple target pictures, then the video stream data corresponds to multiple frames of video frame images, and multiple frames of video frame images. Encode in order.
- CAPP in addition to sending action events to SAPP, CAPP can also send other interactive data, such as the frame rate of cloud games; and, in addition to rendering, the cloud server can also perform game logic calculations, etc. , These can be set according to actual needs, and this application does not limit it.
- the step of executing an action event through at least one of the preset cloud server or terminal based on the type of the action instruction to obtain the corresponding target screen includes:
- the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud server so that the cloud server executes
- For non-UI type action events obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;
- the second video stream data is received, and the second video stream data is decoded to obtain a second video frame image, and the second video frame image is integrated with the UI image to obtain the target image.
- the character has a skill effect when the skill is cast (belonging to a severe game scene), and at the same time, the skill icon is also changed (belonging to a light game scene), so the skill effect Rendering through the cloud server to obtain the second video frame image, the skill icon is rendered through the terminal to obtain the UI image, and then the CAPP superimposes the second video frame image and the UI image to obtain the final target image.
- the manner in which the terminal executes the UI-type action event and the cloud server executes the non-UI-type action event can be referred to the foregoing, which will not be repeated here.
- each frame of the second video frame image has a corresponding UI image.
- step S305 the target screen is displayed in the terminal.
- the CAPP second video frame image is integrated with the UI picture to obtain the target picture, it can be displayed on the display device of the terminal.
- the terminal when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance.
- the terminal When the terminal receives an action event that can be executed in the terminal in the cloud game, such as UI interaction, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game will still not be performed even when the network fluctuates. Affected, thereby improving the user's gaming experience.
- an action event that can be executed in the terminal in the cloud game, such as UI interaction
- a game processing method is provided. As shown in FIG. 4, the game processing method includes:
- Step S401 When receiving an action event for the current screen of the preset game sent by the terminal, execute the action event to obtain the corresponding game screen; where the action event is of a non-UI type;
- Step S402 rendering the game screen to obtain a third video frame image
- Step S403 encoding the third video frame image to obtain corresponding third video stream data
- Step S404 Send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain a third video frame image, and obtain a preset game target image based on the video frame image.
- the embodiment of the present application is a process for the cloud server to execute an action event.
- step S201 to step S203 please refer to step S301 to step S305, which will not be repeated here.
- the terminal when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from a single cloud server into a cloud server and a terminal. Since the terminal's execution of action events is not affected by the network and can respond to user control in a timely manner, it has high real-time performance.
- the terminal when the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in a cloud game, it does not It needs to be executed through the cloud server again, so as to ensure that the interactive experience of the cloud game will not be affected even when the network fluctuates, thereby improving the user's game experience.
- an action event for example, UI interaction
- FIG. 5 is a schematic structural diagram of a game processing device provided by another embodiment of this application. As shown in FIG. 5, the device in this embodiment may include:
- the receiving module 501 is configured to receive an action instruction for the current screen of the preset game
- the obtaining module 502 is configured to obtain the action event in the action instruction and determine the type of the action event;
- the first processing module 503 is configured to execute the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain a corresponding target screen;
- the display module 504 is configured to display the target screen in the terminal.
- the receiving module is further configured to receive a start instruction for the preset game before the action instruction for the current screen of the preset game is received;
- the detection module is configured to detect whether there is an application client of the preset game in the terminal;
- the second processing module is configured to obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
- the type of the action event includes a UI type
- the action event of the UI type is an action event executed for the UI of the preset game.
- the first processing module is specifically configured to execute the UI type action event through the application client in the terminal to obtain the corresponding target screen.
- the type of the action event includes a non-UI type
- the non-UI type of action event is an action event executed outside the UI for the preset game.
- the first processing module includes:
- the sending submodule is configured to send the action event to the cloud server, so that the cloud server executes the non-UI type action event to obtain the first video stream data of the corresponding first video frame image, and Sending the first video stream data to the terminal;
- the first receiving submodule is configured to receive the first video stream data
- the decoding sub-module is configured to decode the first video stream data to obtain the first video frame image, and use the first video frame image as a corresponding target image.
- the first processing module is specifically configured as:
- the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;
- Receive the second video stream data decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
- the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes at least one of an interaction protocol, application program interface information, and game data.
- the related data includes at least one of an interaction protocol, application program interface information, and game data.
- the game processing device of this embodiment can execute the game processing method shown in the first embodiment of the present application, and the implementation principles are similar, and will not be repeated here.
- the terminal when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in time, so it has high real-time performance.
- the terminal When the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
- an action event for example, UI interaction
- FIG. 6 is a schematic structural diagram of a game processing device provided by another embodiment of this application. As shown in FIG. 6, the apparatus of this embodiment may include:
- the execution module 601 is configured to, when an action event for the current screen of a preset game is received from the terminal, execute the action event to obtain a corresponding game screen, wherein the action event is of a non-UI type;
- the rendering module 602 is configured to render the game screen to obtain a third video frame image
- the encoding module 603 is configured to encode the third video frame image to obtain corresponding third video stream data
- the sending module 604 is configured to send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and based on the video frame The image obtains the target screen of the preset game.
- the game processing device of this embodiment can execute the game processing method shown in the first embodiment of the present application, and the implementation principles are similar, and will not be repeated here.
- the terminal when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance.
- the terminal When the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
- an action event for example, UI interaction
- an electronic device includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, compared with the prior art :
- the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes at least one of the preset cloud servers or terminals based on the type of the action instruction
- An execution action event obtains the corresponding target screen and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal.
- the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in time, so it has high real-time performance.
- the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
- an action event for example, UI interaction
- an electronic device is provided, as shown in FIG. 7.
- the electronic device 7000 shown in FIG. 7 includes a processor 7001 and a memory 7003. Among them, the processor 7001 and the memory 7003 are connected, for example, connected through a bus 7002.
- the electronic device 7000 may further include a transceiver 7004. It should be noted that in actual applications, the transceiver 7004 is not limited to one, and the structure of the electronic device 7000 does not constitute a limitation to the embodiment of the present application.
- the processor 7001 may be a CPU, a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
- the processor 7001 may also be a combination that implements computing functions, for example, includes a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
- the bus 7002 may include a path to transfer information between the above-mentioned components.
- the bus 7002 may be a PCI bus, an EISA bus, or the like.
- the bus 7002 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 7, but it does not mean that there is only one bus or one type of bus.
- the memory 7003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, or optical disk storage. (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
- the memory 7003 is used to store application program codes for executing the solutions of the present application, and is controlled by the processor 7001 to execute.
- the processor 7001 is configured to execute the application program code stored in the memory 7003 to implement the content shown in any of the foregoing method embodiments.
- electronic equipment includes but is not limited to: mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PAD (tablet computers), PMP (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc.
- Mobile terminals such as digital TVs, desktop computers, etc.
- Another embodiment of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when it runs on a computer, the computer can execute the corresponding content in the foregoing method embodiment.
- the terminal receives an action instruction for the current screen of a preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal.
- the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance. In this way, When the terminal receives an action event that can be executed in the terminal in the cloud game, such as UI interaction, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game will still not be performed even when the network fluctuates. Affected, thereby improving the user's gaming experience.
- an action event that can be executed in the terminal in the cloud game, such as UI interaction
- an electronic device includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, compared with the prior art :
- the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes at least one of the preset cloud servers or terminals based on the type of the action instruction
- An execution action event obtains the corresponding target screen and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal.
- the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance. In this way, When the terminal receives an action event that can be executed in the terminal in the cloud game, such as UI interaction, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game will still not be performed even when the network fluctuates. Affected, thereby improving the user's gaming experience.
- an action event that can be executed in the terminal in the cloud game, such as UI interaction
- an electronic device is provided, as shown in FIG. 8.
- the electronic device 8000 shown in FIG. 8 includes a processor 8001 and a memory 8003. Among them, the processor 8001 and the memory 8003 are connected, for example, through a bus 8002.
- the electronic device 8000 may further include a transceiver 8004. It should be noted that in actual applications, the transceiver 8004 is not limited to one, and the structure of the electronic device 8000 does not constitute a limitation to the embodiment of the present application.
- the processor 8001 may be a CPU, a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
- the processor 8001 may also be a combination that implements computing functions, for example, it includes one or more microprocessor combinations, a DSP and a microprocessor combination, and so on.
- the bus 8002 may include a path for transferring information between the above-mentioned components.
- the bus 8002 may be a PCI bus or an EISA bus.
- the bus 8002 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
- the memory 8003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, or optical disk storage. (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
- the memory 8003 is used to store application program codes for executing the solutions of the present application, and is controlled by the processor 8001 to execute.
- the processor 8001 is configured to execute the application program code stored in the memory 8003 to implement the content shown in any of the foregoing method embodiments.
- electronic equipment includes but is not limited to: mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PAD (tablet computers), PMP (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc.
- Mobile terminals such as digital TVs, desktop computers, etc.
- Another embodiment of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when it runs on a computer, the computer can execute the corresponding content in the foregoing method embodiment.
- the terminal receives an action instruction for the current screen of a preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal.
- the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal.
- the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in time, so it has high real-time performance.
- the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
- an action event for example, UI interaction
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A game processing method and apparatus, an electronic device, and a computer-readable storage medium, which relate to the field of data processing. The method comprises: when a terminal receives an action instruction for a current picture of a preset game, acquiring an action event in the action instruction, and determining the type of the action event (S201); on the basis of the type of the action instruction, executing the action event by means of at least one among a preset cloud server or the terminal, and obtaining a corresponding target picture (S202); and displaying the target picture in the terminal (S203). Thus, the interaction experience of a cloud game will remain unaffected when a network fluctuates, thereby improving the gaming experience of a user.
Description
相关申请的交叉引用Cross-references to related applications
本申请要求于2020年01月14日在中国国家知识产权局提交的中国专利申请No.2020100388722的优先权,其公开内容通过引用整体并入本文。This application claims the priority of Chinese Patent Application No. 2020100388722 filed at the State Intellectual Property Office of China on January 14, 2020, the disclosure of which is incorporated herein by reference in its entirety.
本申请涉及数据处理技术,具体而言,本申请涉及一种游戏的处理方法、装置、电子设备及计算机可读存储介质。This application relates to data processing technology. Specifically, this application relates to a game processing method, device, electronic equipment, and computer-readable storage medium.
云游戏从概念上来说就是基于云计算技术,将游戏在云端服务器上运行,然后把渲染指令或者渲染后的游戏画面视频编码压缩后,通过网络传输到用户终端进行解码和显示的游戏服务。Conceptually, a cloud game is a game service based on cloud computing technology that runs the game on a cloud server, then encodes and compresses the rendering instructions or the rendered game screen video, and transmits it to the user terminal through the network for decoding and display.
云游戏的运行严重依赖于良好的网络,如果网络环境带宽、延迟、丢包率等各方面不稳定,就会导致游戏运行不够流畅。目前,渲染方案有视频流方案和指令流方案。由于所有渲染都基于云端,在现实中网络出现波动是经常发生的,这时通过网络传输的流必然会受影响,导致到客户端的数据包延迟或者丢失,不可避免的导致游戏画面延迟,整个UI交互也会延迟,这给用户带来了不好的体验。如何让用户在各种网络情况下,感受到流畅的操控,是本申请要解决的技术问题。The operation of cloud games relies heavily on a good network. If the network environment bandwidth, delay, packet loss rate and other aspects are unstable, the game will not run smoothly. Currently, the rendering schemes include a video stream scheme and an instruction stream scheme. Since all renderings are based on the cloud, network fluctuations often occur in reality. At this time, the stream transmitted through the network will inevitably be affected, resulting in the delay or loss of data packets to the client, which inevitably leads to game screen delays and the entire UI Interaction will also be delayed, which brings a bad experience to the user. How to make users feel smooth control under various network conditions is a technical problem to be solved by this application.
发明内容Summary of the invention
本申请提供了一种游戏的处理方法、装置、电子设备及计算机可读存储介质,可以解决如何让用户在各种网络情况下,感受到流畅的操控的问题。所述技术方案如下:This application provides a game processing method, device, electronic equipment, and computer-readable storage medium, which can solve the problem of how to make users feel smooth control under various network conditions. The technical solution is as follows:
第一方面,提供了一种游戏的处理方法,该游戏的处理方法包括:In the first aspect, a game processing method is provided, and the game processing method includes:
当终端接收到针对预设游戏的当前画面的动作指令时,获取所述动作指令中的动作事件,并确定出所述动作事件的类型;When the terminal receives an action instruction for the current screen of the preset game, acquire the action event in the action instruction, and determine the type of the action event;
基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面;以及Execute the action event through at least one of the preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen; and
在所述终端中展示所述目标画面。The target screen is displayed in the terminal.
优选地,在终端接收到针对预设游戏的当前画面的动作指令之前,还包括:Preferably, before the terminal receives the action instruction for the current screen of the preset game, the method further includes:
当接收针对所述预设游戏的启动指令时,检测所述终端中是否存在所述预设游戏的应用程序客户端;When receiving a start instruction for the preset game, detect whether there is an application client of the preset game in the terminal;
若否,则从所述云服务器中获取所述应用程序客户端的安装文件,并运行所述安装文件,得到所述应用程序客户端。If not, obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
优选地,所述动作事件的类型包括UI类型,所述UI类型的动作事件为针对所述预设游戏的UI执行的动作事件。Preferably, the type of the action event includes a UI type, and the action event of the UI type is an action event executed for the UI of the preset game.
优选地,所述基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面的步骤,包括:Preferably, the step of executing the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen includes:
通过所述终端中的应用程序客户端执行所述UI类型的动作事件,得到对应的目标画面。The application client in the terminal executes the UI type action event to obtain the corresponding target screen.
优选地,所述动作事件的类型包括非UI类型,所述非UI类型的动作事件为针对所述预设游戏的UI之外执行的动作事件。Preferably, the type of the action event includes a non-UI type, and the non-UI type of action event is an action event executed outside the UI for the preset game.
优选地,所述基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面的步骤,包括:Preferably, the step of executing the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen includes:
所述终端将所述动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第一视频帧图像的第一视频流数据,并将所述第一视频流数据发送至所述终端;The terminal sends the action event to the cloud server, so that the cloud server executes the non-UI type action event, obtains the first video stream data of the corresponding first video frame image, and sends the first video stream data of the corresponding first video frame image to the cloud server. Sending a video stream data to the terminal;
接收所述第一视频流数据,并对所述第一视频流数据进行解码,得到所述第一视频帧图像,并将所述第一视频帧图像作为对应的目标画面。The first video stream data is received, and the first video stream data is decoded to obtain the first video frame image, and the first video frame image is used as a corresponding target image.
优选地,所述基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面的步骤,包括:Preferably, the step of executing the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen includes:
当所述动作事件包括UI类型和非UI类型,则通过所述终端中的应用程序客户端执行UI类型的动作事件,得到对应的UI画面,并将非UI类型的动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第二视频帧图像的第二视频流数据,并将所述第二视频流数据发送至所述终端;When the action event includes UI type and non-UI type, the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;
接收所述第二视频流数据,并对所述第二视频流数据进行解码,得到所述第二视频帧图像,并将所述第二视频帧图像与所述UI画面进行整合,得到目标画面。Receive the second video stream data, decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
优选地,所述云服务器与所述终端通过预设的网络数据交互通道进行相关数据的交互,所述相关数据包括交互协议、应用程序接口信息、游戏数据中的至少一种。Preferably, the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes at least one of an interaction protocol, application program interface information, and game data.
第二方面,提供了一种游戏的处理方法,该游戏的处理方法包括:In a second aspect, a game processing method is provided, and the game processing method includes:
当接收到终端发送的针对预设游戏的当前画面的动作事件时,执行所述动作事件,得到对应的游戏画面;其中,所述动作事件为非UI类型;When receiving an action event for the current screen of the preset game sent by the terminal, execute the action event to obtain the corresponding game screen; wherein, the action event is of a non-UI type;
将所述游戏画面进行渲染,得到第三视频帧图像;Rendering the game screen to obtain a third video frame image;
对所述第三视频帧图像进行编码,得到对应的第三视频流数据;Encoding the third video frame image to obtain corresponding third video stream data;
将所述第三视频流数据发送至所述终端,以使得所述终端对所述第三视频流数据进行解码,得到所述第三视频帧图像,并基于视频帧图像得到所述预设游戏的目标画面。Send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and obtain the preset game based on the video frame image The target screen.
第三方面,提供了一种游戏的处理装置,该游戏的处理装置包括:In a third aspect, a game processing device is provided, and the game processing device includes:
接收模块,被配置为接收针对预设游戏的当前画面的动作指令;The receiving module is configured to receive an action instruction for the current screen of the preset game;
获取模块,被配置为获取所述动作指令中的动作事件,并确定出所述动作事件的类型;An obtaining module, configured to obtain the action event in the action instruction, and determine the type of the action event;
第一处理模块,被配置为基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面;The first processing module is configured to execute the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain a corresponding target screen;
展示模块,被配置为在所述终端中展示所述目标画面。The display module is configured to display the target screen in the terminal.
优选地,还包括:Preferably, it also includes:
所述接收模块,还被配置为在接收到针对预设游戏的当前画面的动作指令之前,接收针对所述预设游戏的启动指令;The receiving module is further configured to receive a start instruction for the preset game before the action instruction for the current screen of the preset game is received;
检测模块,被配置为检测所述终端中是否存在所述预设游戏的应用程序客户端;The detection module is configured to detect whether there is an application client of the preset game in the terminal;
第二处理模块,被配置为从所述云服务器中获取所述应用程序客户端的安装文件,并运行所述安装文件,得到所述应用程序客户端。The second processing module is configured to obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
优选地,所述动作事件的类型包括UI类型,所述UI类型的动作事件为针对所述预设游戏的UI执行的动作事件。Preferably, the type of the action event includes a UI type, and the action event of the UI type is an action event executed for the UI of the preset game.
优选地,所述第一处理模块具体被配置为:Preferably, the first processing module is specifically configured to:
通过所述终端中的应用程序客户端执行所述UI类型的动作事件,得到对应的目标画面。The application client in the terminal executes the UI type action event to obtain the corresponding target screen.
优选地,所述动作事件的类型包括非UI类型,所述非UI类型的动作事件为针对所述预设游戏的UI之外执行的动作事件。Preferably, the type of the action event includes a non-UI type, and the non-UI type of action event is an action event executed outside the UI for the preset game.
优选地,所述第一处理模块包括:Preferably, the first processing module includes:
发送子模块,被配置为将所述动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第一视频帧图像的第一视频流数据,并将所述第一视频流数据发送至所述终端;The sending submodule is configured to send the action event to the cloud server, so that the cloud server executes the non-UI type action event to obtain the first video stream data of the corresponding first video frame image, and Sending the first video stream data to the terminal;
第一接收子模块,被配置为接收所述第一视频流数据;The first receiving submodule is configured to receive the first video stream data;
解码子模块,被配置为对所述第一视频流数据进行解码,得到所述第一视频帧图像,并将所述第一视频帧图像作为对应的目标画面。The decoding sub-module is configured to decode the first video stream data to obtain the first video frame image, and use the first video frame image as a corresponding target image.
优选地,所述第一处理模块具体被配置为:Preferably, the first processing module is specifically configured to:
当所述动作事件包括UI类型和非UI类型,则通过所述终端中的应用程序客户端执行UI类型的动作事件,得到对应的UI画面,并将非UI类型的动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第二视频帧图像的第二视频流数据,并将所述第二视频流数据发送至所述终端;以及,When the action event includes UI type and non-UI type, the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal; and,
接收所述第二视频流数据,并对所述第二视频流数据进行解码,得到所述第二视频帧图像,并将所述第二视频帧图像与所述UI画面进行整合,得到目标画面。Receive the second video stream data, decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
优选地,所述云服务器与所述终端通过预设的网络数据交互通道进行相关数据的交互,所述相关数据包括交互协议、应用程序接口信息、游戏 数据中的至少一种。Preferably, the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes at least one of an interaction protocol, application program interface information, and game data.
第四方面,提供了一种游戏的处理装置,该游戏的处理装置包括:In a fourth aspect, a game processing device is provided, and the game processing device includes:
执行模块,被配置为当接收到终端发送的针对预设游戏的当前画面的动作事件时,执行所述动作事件,得到对应的游戏画面;其中,所述动作事件为非UI类型;The execution module is configured to execute the action event to obtain the corresponding game screen when receiving the action event for the current screen of the preset game sent by the terminal; wherein, the action event is of a non-UI type;
渲染模块,被配置为将所述游戏画面进行渲染,得到第三视频帧图像;A rendering module configured to render the game screen to obtain a third video frame image;
编码模块,被配置为对所述第三视频帧图像进行编码,得到对应的第三视频流数据;An encoding module configured to encode the third video frame image to obtain corresponding third video stream data;
发送模块,被配置为将所述第三视频流数据发送至所述终端,以使得所述终端对所述第三视频流数据进行解码,得到所述第三视频帧图像,并基于视频帧图像得到所述预设游戏的目标画面。The sending module is configured to send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and based on the video frame image Obtain the target screen of the preset game.
第五方面,提供了一种电子设备,该电子设备包括:In a fifth aspect, an electronic device is provided, and the electronic device includes:
处理器、存储器和总线;Processor, memory and bus;
所述总线,被配置为连接所述处理器和所述存储器;The bus is configured to connect the processor and the memory;
所述存储器,被配置为存储操作指令;The memory is configured to store operation instructions;
其中,所述处理器被配置为当调用所述操作指令时,可执行如本申请的第一方面和第二方面所示的游戏的处理方法对应的操作。Wherein, the processor is configured to execute operations corresponding to the game processing methods shown in the first aspect and the second aspect of the present application when the operation instruction is invoked.
第六方面,提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现本申请第一方面和第二方面所示的游戏的处理方法。In a sixth aspect, a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium. When the program is executed by a processor, the game processing method shown in the first and second aspects of the present application is implemented.
本申请提供的技术方案带来的有益效果是:The beneficial effects brought about by the technical solution provided by this application are:
在本申请实施例中,当终端接收到针对预设游戏的当前画面的动作指令时,获取所述动作指令中的动作事件,并确定出所述动作事件的类型,然后基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面,并在所述终端中展示所述目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端。由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云 服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。In the embodiment of the present application, when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then determines the type of the action event based on the action instruction. The type executes the action event through at least one of the preset cloud server or the terminal, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from a single cloud server into a cloud server and a terminal. Since the terminal's execution of action events is not affected by the network and can respond to user control in a timely manner, it has high real-time performance. In this way, when the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in a cloud game, it does not It needs to be executed through the cloud server again, so as to ensure that the interactive experience of the cloud game will not be affected even when the network fluctuates, thereby improving the user's game experience.
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application.
图1为本申请云服务器与终端的交互逻辑示意图;Figure 1 is a schematic diagram of the interaction logic between the cloud server and the terminal of the application;
图2为本申请一个实施例提供的一种游戏的处理方法的流程示意图;FIG. 2 is a schematic flowchart of a game processing method provided by an embodiment of the application;
图3为本申请又一实施例提供的一种游戏的处理方法的流程示意图;FIG. 3 is a schematic flowchart of a game processing method provided by another embodiment of this application;
图4为本申请再一实施例提供的一种游戏的处理方法的流程示意图;FIG. 4 is a schematic flowchart of a game processing method provided by still another embodiment of this application;
图5为本申请又一实施例提供的一种游戏的处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a game processing device provided by another embodiment of this application;
图6为本申请又一实施例提供的一种游戏的处理装置的结构示意图;FIG. 6 is a schematic structural diagram of a game processing device provided by another embodiment of this application;
图7为本申请又一实施例提供的一种游戏的处理的电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device for processing a game according to another embodiment of this application;
图8为本申请又一实施例提供的一种游戏的处理的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device for processing a game according to another embodiment of the application.
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are only used to explain the present application, and cannot be construed as a limitation to the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或更多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无 线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art can understand that, unless specifically stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of this application refers to the presence of the described features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features , Integers, steps, operations, elements, components, and/or groups of them. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or intervening elements may also be present. In addition, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The term "and/or" as used herein includes all or any unit and all combinations of one or more associated listed items.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions, and advantages of the present application clearer, the implementation manners of the present application will be described in further detail below in conjunction with the accompanying drawings.
首先,对本申请运行云游戏的应用场景进行详细说明。First, the application scenarios for running cloud games in this application will be described in detail.
具体而言,本申请针对云游戏采用分开设计、分离渲染、异地渲染后再混合的方案。Specifically, this application adopts a solution of separate design, separate rendering, and off-site rendering before mixing for cloud games.
分开设计指的是云游戏可以包括两种场景:重度游戏场景和轻度交互场景。重度游戏场景可以为云游戏主场景部分,其渲染对GPU(Graphics Processing Unit,图形处理器)的处理能力消耗较大,比如,游戏中的打斗、地图相关的场景均为重度游戏场景。轻度交互场景是和用户操控相关的部分,比如虚拟的方向键、头像、设置菜单、背包系统、聊天框等显示在游戏界面上用户能经常操纵到的部分,包括其渲染消耗的GPU处理能力较少的UI(User Interface,用户交互界面)。Separate design means that cloud games can include two scenarios: heavy game scenarios and light interaction scenarios. The heavy game scene can be the main scene part of the cloud game, and its rendering consumes a large amount of processing power of GPU (Graphics Processing Unit, graphics processor). For example, fighting in the game and map-related scenes are all heavy game scenes. Lightly interactive scenes are parts related to user manipulation, such as virtual arrow keys, avatars, settings menus, backpack systems, chat boxes, etc., displayed on the game interface that users can often manipulate, including the GPU processing power consumed by rendering Less UI (User Interface).
分离渲染指的是针对重度游戏场景可以采用云服务器的GPU进行渲染,这样可以充分利用云服务器的高性能;而针对轻度交互场景可以采用终端的GPU进行渲染,这样可以充分利用终端的GPU处理效率,具有实时性。Separate rendering means that the GPU of the cloud server can be used for rendering for heavy game scenes, which can make full use of the high performance of the cloud server; and for light interactive scenes, the GPU of the terminal can be used for rendering, which can make full use of the GPU processing of the terminal. Efficiency and real-time.
进一步,动作事件的类型可以通过动作事件的目标对象来确定。如果动作事件的目标对象属于轻度游戏场景,那么该动作事件为UI类型,通过终端来执行该动作事件即可;如果动作事件的目标对象属于重度游戏场景,那么该动作事件为非UI类型,需要通过云服务器来执行该动作事件;如果动作事件的目标对象既属于重度游戏场景也属性轻度游戏场景,那么通过终端来处理该动作事件中的轻度游戏场景部分,通过云服务器来处理该动作事件中重度游戏场景部分。Further, the type of the action event can be determined by the target object of the action event. If the target object of the action event belongs to a light game scene, then the action event is of UI type, and the action event can be executed through the terminal; if the target object of the action event belongs to a heavy game scene, then the action event is of non-UI type. The action event needs to be executed through the cloud server; if the target object of the action event belongs to both a heavy game scene and a light game scene, then the light game scene part of the action event is processed through the terminal, and the cloud server is used to process the The heavy game scene part of the action event.
其中,终端可以具有如下特点:Among them, the terminal may have the following characteristics:
(1)在硬件方面,设备包括中央处理器、存储器、输入部件和输出部件,也就是说,设备往往是包括通信功能的微型计算机设备。另外,还可以具有多种输入方式,诸如键盘、鼠标、触摸屏、送话器和摄像头等, 并可以根据需要进行调整输入。同时,设备往往具有多种输出方式,如受话器、显示屏等,也可以根据需要进行调整;(1) In terms of hardware, the device includes a central processing unit, a memory, an input component and an output component, that is to say, the device is often a microcomputer device that includes communication functions. In addition, it can also have a variety of input methods, such as keyboard, mouse, touch screen, microphone and camera, etc., and can adjust the input as needed. At the same time, the equipment often has a variety of output methods, such as receivers, display screens, etc., which can also be adjusted as needed;
(2)在软件方面,设备必须具备操作系统,如Windows Mobile、Symbian、Palm、Android、iOS等。同时,随着这些操作系统越来越开放,基于这些开放的操作系统平台开发的个性化应用程序层出不穷,如通信簿、日程表、记事本、计算器以及各类游戏等,极大程度地满足了个性化用户的需求;(2) In terms of software, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, etc. At the same time, as these operating systems become more and more open, personalized applications based on these open operating system platforms emerge in endlessly, such as communication books, calendars, notepads, calculators, and various games, which greatly satisfy To meet the needs of personalized users;
(3)在通信方面,设备具有灵活的接入方式和高带宽通信性能,并且能根据所选择的业务和所处的环境,自动调整所选的通信方式,从而方便用户使用。设备可以支持GSM(Global System for Mobile Communication,全球移动通信系统)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、CDMA2000(Code Division Multiple Access,码分多址)、TDSCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、Wi-Fi(Wireless-Fidelity,无线保真)以及WiMAX(Worldwide Interoperability for Microwave Access,全球微波互联接入)等,从而适应多种制式网络,不仅支持语音业务,更支持多种无线数据业务;(3) In terms of communication, the device has flexible access methods and high-bandwidth communication performance, and can automatically adjust the selected communication method according to the selected service and the environment, so as to facilitate the user's use. The equipment can support GSM (Global System for Mobile Communication), WCDMA (Wideband Code Division Multiple Access), CDMA2000 (Code Division Multiple Access), TDSCDMA (Time Division- Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), Wi-Fi (Wireless-Fidelity, Wireless Fidelity), and WiMAX (Worldwide Interoperability for Microwave Access), etc., so as to adapt to multiple standard networks, Not only supports voice services, but also supports multiple wireless data services;
(4)在功能使用方面,设备更加注重人性化、个性化和多功能化。随着计算机技术的发展,设备从“以设备为中心”的模式进入“以人为中心”的模式,集成了嵌入式计算、控制技术、人工智能技术以及生物认证技术等,充分体现了以人为本的宗旨。由于软件技术的发展,设备可以根据个人需求调整设置,更加个性化。同时,设备本身集成了众多软件和硬件,功能也越来越强大。(4) In terms of functional use, the equipment pays more attention to humanization, individualization and multi-function. With the development of computer technology, equipment has moved from a "equipment-centric" model to a "human-centric" model, integrating embedded computing, control technology, artificial intelligence technology, and biometric authentication technology, which fully embodies the people-oriented tenet . Due to the development of software technology, the equipment can be adjusted according to individual needs and become more personalized. At the same time, the device itself integrates a lot of software and hardware, and its functions are becoming more and more powerful.
异地渲染后再混合指的是将云服务器渲染得到的画面与终端渲染得到的画面在终端中进行叠加,并将叠加后的画面展示给用户。Remixing after remote rendering refers to superimposing the screen rendered by the cloud server and the screen rendered by the terminal on the terminal, and displaying the superimposed screen to the user.
通过上述方案,在终端接收到用户的操控后,就可以无延时地把交互层面的UI先渲染出来,这部分不受网络影响,能及时的响应用户的操控,这样在网络出现波动时,游戏的交互体验依然不会受影响。Through the above solution, after the terminal receives the user's manipulation, it can render the interactive UI first without delay. This part is not affected by the network and can respond to the user's manipulation in a timely manner. In this way, when the network fluctuates, The interactive experience of the game will still not be affected.
进一步,为了实现云游戏的分离渲染,针对同一款云游戏,可以在云 服务器中设置云服务器应用程序客户端SAPP,同时,在终端中设置应用程序客户端CAPP。如图1所示,SAPP和CAPP中分别包括各自对应的数据。比如,SAPP中可以包括地图相关的场景数据等,CAPP中可以包括UI资源数据等。当用户启动某款云游戏时,SAPP和CAPP同时运行,二者进行协同,从而实现云游戏的各项功能。Further, in order to achieve separate rendering of cloud games, for the same cloud game, the cloud server application client SAPP can be set in the cloud server, and at the same time, the application client CAPP can be set in the terminal. As shown in Figure 1, SIPP and CAPP respectively include their corresponding data. For example, the SAPP may include map-related scene data, etc., and the CAPP may include UI resource data, etc. When a user starts a certain cloud game, SAPP and CAPP run at the same time, and the two work together to realize the functions of the cloud game.
而且,SAPP与CAPP设置有网络数据交互通道。具体地,SAPP和CAPP之间存在相关数据需要交互,包括交互协议、API信息、游戏数据中的至少一种。两者在不同的地方(分别在云端和本地端)运行,由于两者需要进行协同,所以一些数据需要进行同步,即交互。比如,用户在CAPP上设置了游戏画面的帧率为60帧,这时CAPP就需要通知SAPP游戏画面的帧率为60帧,因而需要将此设置信息同步至SAPP,SAPP进行相应地处理,此过程即为数据交互。Moreover, SIPP and CAPP are equipped with network data exchange channels. Specifically, there is related data that needs to be exchanged between the SAPP and the CAPP, including at least one of an interaction protocol, API information, and game data. The two run in different places (on the cloud and on the local side, respectively). Because the two need to collaborate, some data needs to be synchronized, that is, interact. For example, if the user sets the frame rate of the game screen on the CAPP to be 60 frames, then CAPP needs to notify the SIPP that the frame rate of the game screen is 60 frames, so this setting information needs to be synchronized to the SIPP, and the SIPP processes accordingly. The process is data interaction.
比如,用户触控到了CAPP上的虚拟方向键,需要把方向键送到服务端SAPP上进行相应地处理;再比如,游戏中角色的参数发生了变化,需要传输到CAPP上,让CAPP显示正常。For example, if the user touches the virtual arrow keys on the CAPP, the arrow keys need to be sent to the server SIPP for corresponding processing; another example, the parameters of the characters in the game have changed and need to be transferred to the CAPP so that the CAPP displays normally .
在实际应用中,当某款云游戏开发完成后,会将对应的SAPP和CAPP的安装文件同时部署在云服务器中,当用户第一次运行该云游戏时,SAPP会在云服务器中启动,同时用户需要将CAPP的安装文件下载到终端中,然后运行安装文件得到CAPP。In practical applications, when a certain cloud game is developed, the corresponding installation files of SAPP and CAPP will be deployed on the cloud server at the same time. When the user runs the cloud game for the first time, the SAPP will start in the cloud server. At the same time, the user needs to download the CAPP installation file to the terminal, and then run the installation file to get the CAPP.
进一步,终端中还可以安装宿主App(Application,应用程序)。宿主App类似于游戏大厅,其中有众多的云游戏图标,该图标可以作为入口,点击该云游戏图标,即可以开始玩对应的云游戏。具体地,用户点击了某个云游戏图标,生成启动命令,启动命令传到云端服务器,云端服务器开始启动SAPP,终端下载CAPP的安装文件到本地,终端运行安装文件得到CAPP,并在终端中同步启动运行CAPP。Further, a host App (Application, application) can also be installed in the terminal. The host App is similar to a game lobby. There are many cloud game icons in it, which can be used as an entrance. Click the cloud game icon to start playing the corresponding cloud game. Specifically, the user clicks on a certain cloud game icon, generates a startup command, and transmits the startup command to the cloud server. The cloud server starts to start the SAPP, the terminal downloads the CAPP installation file to the local, and the terminal runs the installation file to get the CAPP and synchronizes it in the terminal Start running CAPP.
下面以具体的实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
在一个实施例中提供了一种游戏的处理方法,如图2所示,该游戏的 处理方法包括:In one embodiment, a game processing method is provided. As shown in Figure 2, the game processing method includes:
步骤S201,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型。Step S201: When the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, and determines the type of the action event.
具体而言,终端中的应用程序客户端在运行时,可以捕获用户的操控,也就是用户触发的动作指令,该动作指令中包括对应的动作事件。比如,用户点击了虚拟方向键,即发起了动作事件为移动的动作指令;用户点击了背包图标,即发起了动作事件为展示背包的动作指令。Specifically, when the application client in the terminal is running, it can capture the user's manipulation, that is, the action instruction triggered by the user, and the action instruction includes the corresponding action event. For example, when the user clicks the virtual arrow key, an action instruction that the action event is a movement is initiated; the user clicks the backpack icon, that is an action instruction that initiates the action event to show the backpack.
进一步,因为本申请中的云游戏包括重度游戏场景和轻度交互场景,所以,在接收到动作指令,并从动作指令中获取到对应的动作事件后,需要确定出该动作事件的类型,这样才能确定出是采用服务器来执行该动作事件还是终端来执行该动作事件。Furthermore, because the cloud game in this application includes heavy game scenes and light interaction scenes, after receiving an action instruction and obtaining the corresponding action event from the action instruction, it is necessary to determine the type of the action event. In order to determine whether to use the server to execute the action event or the terminal to execute the action event.
步骤S202,基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面。Step S202, based on the type of the action instruction, execute the action event through at least one of the preset cloud server or the terminal to obtain the corresponding target screen.
具体而言,动作事件的类型可以通过动作事件的目标对象来确定。如果动作事件的目标对象属于轻度游戏场景,那么通过终端来执行该动作事件即可得到对应的目标画面;如果动作事件的目标对象属于重度游戏场景,那么通过云服务器来执行该动作事件即可得到对应的目标画面;如果动作事件的目标对象既属于重度游戏场景也属性轻度游戏场景,那么通过终端来处理该动作事件中的轻度游戏场景部分,得到轻度游戏场景画面,通过云服务器来处理该动作事件中重度游戏场景部分,得到重度游戏场景画面,然后在终端中将轻度游戏场景画面与重度游戏场景画面进行整合即可得到目标画面。Specifically, the type of action event can be determined by the target object of the action event. If the target object of the action event belongs to a light game scene, the corresponding target screen can be obtained by executing the action event through the terminal; if the target object of the action event belongs to a heavy game scene, then the action event can be executed through the cloud server Obtain the corresponding target screen; if the target object of the action event belongs to both a heavy game scene and a light game scene with attributes, the terminal will process the light game scene part of the action event to obtain the light game scene screen through the cloud server To process the severe game scene part of the action event to obtain the heavy game scene picture, and then integrate the light game scene picture with the heavy game scene picture in the terminal to obtain the target picture.
步骤S203,在终端中展示目标画面。In step S203, the target screen is displayed in the terminal.
在本申请实施例中,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端。由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高 实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。In the embodiment of the present application, when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from a single cloud server into a cloud server and a terminal. Since the terminal's execution of action events is not affected by the network and can respond to user control in a timely manner, it has high real-time performance. In this way, when the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in a cloud game, it does not It needs to be executed through the cloud server again, so as to ensure that the interactive experience of the cloud game will not be affected even when the network fluctuates, thereby improving the user's game experience.
在另一个实施例中提供了一种游戏的处理方法,如图3所示,该游戏的处理方法包括:In another embodiment, a game processing method is provided. As shown in FIG. 3, the game processing method includes:
步骤S301,当接收针对预设游戏的启动指令时,检测终端中是否存在预设游戏的应用程序客户端。Step S301: When receiving a start instruction for a preset game, detect whether there is an application client of the preset game in the terminal.
其中,预设游戏可以是宿主App中的任一云游戏。当用户点击了宿主App中的任一云游戏图标时,即发起了针对该云游戏的启动指令,终端接收到启动指令后,即可检测终端中是否存在该云游戏的应用程序客户端,也就是该云游戏的CAPP。Among them, the preset game can be any cloud game in the host App. When the user clicks on any cloud game icon in the host App, a startup instruction for the cloud game is initiated. After the terminal receives the startup instruction, it can detect whether there is an application client for the cloud game in the terminal. It is the CAPP of this cloud game.
进一步,终端将该启动指令发送至云服务器,云服务器在接收到启动指令后就可以启动SAPP。Further, the terminal sends the start instruction to the cloud server, and the cloud server can start the SAPP after receiving the start instruction.
步骤S302,若否,则从云服务器中获取应用程序客户端的安装文件,并运行安装文件,得到应用程序客户端。Step S302, if not, obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
如果终端检测到终端中不存在预设游戏的应用程序客户端(CAPP),那么就可以向云服务器发送获取应用程序客户端安装文件的获取请求,云服务器接收到获取请求后,向终端发送应用程序客户端的安装文件,终端接收到安装文件后运行该安装文件,即可得到应用程序客户端,然后运行该应用程序客户端。If the terminal detects that there is no application client (CAPP) of the preset game in the terminal, it can send an acquisition request to the cloud server to obtain the installation file of the application client. After the cloud server receives the acquisition request, it sends the application to the terminal The installation file of the program client, the terminal runs the installation file after receiving the installation file to obtain the application client, and then runs the application client.
步骤S303,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型。Step S303: When the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, and determines the type of the action event.
具体而言,终端中的应用程序客户端在运行时,可以捕获用户的操控,也就是用户触发的动作指令,该动作指令中包括对应的动作事件。比如,用户点击了虚拟方向键,即发起了动作事件为移动的动作指令;用户点击了背包图标,即发起了动作事件为展示背包的动作指令。Specifically, when the application client in the terminal is running, it can capture the user's manipulation, that is, the action instruction triggered by the user, and the action instruction includes the corresponding action event. For example, when the user clicks the virtual arrow key, an action instruction that the action event is a movement is initiated; the user clicks the backpack icon, that is an action instruction that initiates the action event to show the backpack.
进一步,因为本申请中的云游戏包括重度游戏场景和轻度交互场景,所以,在接收到动作指令,并从动作指令中获取到对应的动作事件后,需 要确定出该动作事件的类型,这样才能确定出是采用SAPP来执行该动作事件还是CAPP来执行该动作事件。如果是采用CAPP来执行该动作事件,那么由终端来处理该动作事件即可;如果是采用SAPP来执行该动作事件,那么可以将该动作指令发送至云服务器中的SAPP,然后由云服务器来处理该动作事件。Furthermore, because the cloud game in this application includes heavy game scenes and light interaction scenes, after receiving an action instruction and obtaining the corresponding action event from the action instruction, it is necessary to determine the type of the action event. In order to determine whether to use SAPP to execute the action event or CAPP to execute the action event. If CAPP is used to execute the action event, the terminal can handle the action event; if SAPP is used to execute the action event, then the action instruction can be sent to the SAPP in the cloud server, and then the cloud server can handle the action event. Process the action event.
步骤S304,基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面。Step S304, based on the type of the action instruction, execute the action event through at least one of the preset cloud server or the terminal to obtain the corresponding target screen.
具体而言,动作事件的类型可以通过动作事件的目标对象来确定。如果动作事件的目标对象属于轻度游戏场景,那么该动作事件为UI类型,通过终端来执行该动作事件即可;如果动作事件的目标对象属于重度游戏场景,那么该动作事件为非UI类型,需要通过云服务器来执行该动作事件;如果动作事件的目标对象既属于重度游戏场景也属性轻度游戏场景,那么通过终端来处理该动作事件中的轻度游戏场景部分,通过云服务器来处理该动作事件中重度游戏场景部分。Specifically, the type of action event can be determined by the target object of the action event. If the target object of the action event belongs to a light game scene, then the action event is of UI type, and the action event can be executed through the terminal; if the target object of the action event belongs to a heavy game scene, then the action event is of non-UI type. The action event needs to be executed through the cloud server; if the target object of the action event belongs to both a heavy game scene and a light game scene, then the light game scene part of the action event is processed through the terminal, and the cloud server is used to process the The heavy game scene part of the action event.
在本申请一种优选实施例中,基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面的步骤,包括:In a preferred embodiment of the present application, the step of executing an action event through at least one of the preset cloud server or terminal based on the type of the action instruction to obtain the corresponding target screen includes:
当动作事件的类型为UI类型时,通过终端中的应用程序客户端执行UI类型的动作事件,得到对应的目标画面;其中,UI类型的动作事件为针对预设游戏的UI执行的动作事件。When the type of the action event is the UI type, the application client in the terminal executes the UI type action event to obtain the corresponding target screen; wherein, the UI type action event is an action event executed for the UI of the preset game.
具体而言,当用户在CAPP中发起的动作事件为UI类型时,可以采用CAPP来执行该动作事件,同时,采用终端的GPU来进行渲染,得到执行该动作事件后的对应的目标画面。Specifically, when the action event initiated by the user in the CAPP is of the UI type, the CAPP can be used to execute the action event, and at the same time, the GPU of the terminal is used for rendering to obtain the corresponding target screen after the action event is executed.
比如,用户在CAPP的当前游戏画面中点击了云游戏中背包的虚拟图标,即发起了动作事件为展示背包的动作指令,CAPP检测到该动作事件的目标对象属于轻度游戏场景,那么就从CAPP中获取背包的UI资源数据,并调用终端的GPU对背包的UI资源数据进行渲染,从而在当前游戏画面中展示背包,得到目标画面。For example, if the user clicks the virtual icon of the backpack in the cloud game on the current game screen of CAPP, an action event is initiated to show the action instruction of the backpack. CAPP detects that the target object of the action event belongs to a light game scene, then The CAPP obtains the UI resource data of the backpack, and calls the GPU of the terminal to render the UI resource data of the backpack, thereby displaying the backpack in the current game screen and obtaining the target screen.
在本申请一种优选实施例中,基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面的步骤,包括:In a preferred embodiment of the present application, the step of executing an action event through at least one of the preset cloud server or terminal based on the type of the action instruction to obtain the corresponding target screen includes:
当动作事件的类型为非UI类型时,终端将动作事件发送至云服务器,使得云服务器执行非UI类型的动作事件,得到对应的第一视频帧图像的第一视频流数据,并将第一视频流数据发送至终端;其中,非UI类型的动作事件为针对预设游戏的UI之外执行的动作事件;When the type of the action event is a non-UI type, the terminal sends the action event to the cloud server, so that the cloud server executes the non-UI type action event, and obtains the first video stream data of the corresponding first video frame image, and the first The video stream data is sent to the terminal; wherein, non-UI type action events are action events executed outside the UI of the preset game;
接收第一视频流数据,并对第一视频流数据进行解码,得到第一视频帧图像,并将第一视频帧图像作为目标画面。The first video stream data is received, and the first video stream data is decoded to obtain the first video frame image, and the first video frame image is used as the target image.
具体而言,当用户在CAPP中发起的动作事件为非UI类型时,可以将该动作事件发送至SAPP,SAPP调用云服务器中的GPU来进行渲染,得到执行该动作事件后的对应的目标画面,然后云服务器对目标画面进行图像抓取,得到对应的视频帧图像,再对视频帧图像进行编码,生成视频帧图像的视频流数据,并将视频流数据发送至终端,终端接收到视频流数据后对视频流数据进行解码,得到对应的视频帧图像,并将视频帧图像作为目标画面。Specifically, when the action event initiated by the user in CAPP is of a non-UI type, the action event can be sent to SAPP, and SAPP calls the GPU in the cloud server for rendering, and obtains the corresponding target screen after executing the action event , And then the cloud server captures the target image to obtain the corresponding video frame image, then encodes the video frame image to generate the video stream data of the video frame image, and sends the video stream data to the terminal, and the terminal receives the video stream After the data, the video stream data is decoded to obtain the corresponding video frame image, and the video frame image is used as the target image.
比如,用户在CAPP的当前游戏画面中点击了云游戏中地图切换的虚拟图标,即发起了动作事件为地图切换的动作指令,CAPP检测到该动作事件的目标对象属于重度游戏场景,那么CAPP通过终端将该动作指令发送至SAPP,SAPP获取地图相关的场景数据,并调用云服务器的GPU对地图相关的场景数据进行渲染,得到地图切换后的目标画面,然后云服务器对地图切换后的目标画面进行图像抓取,得到对应的第一视频帧图像,再对第一视频帧图像进行编码,生成第一视频帧图像的第一视频流数据,并将第一视频流数据发送至终端,终端接收到第一视频流数据后对第一视频流数据进行解码,得到对应的第一视频帧图像,并将第一视频帧图像作为目标画面在CAPP中进行展示。For example, if the user clicks the virtual icon of map switching in the cloud game on the current game screen of CAPP, an action instruction that the action event is map switching is initiated. CAPP detects that the target object of the action event belongs to a severe game scene, then CAPP passes The terminal sends the action instruction to the SAPP, and the SAPP obtains the map-related scene data, and calls the GPU of the cloud server to render the map-related scene data to obtain the target screen after the map switching, and then the cloud server switches the target screen after the map switching Perform image capture to obtain the corresponding first video frame image, and then encode the first video frame image to generate the first video stream data of the first video frame image, and send the first video stream data to the terminal, and the terminal receives After the first video stream data is received, the first video stream data is decoded to obtain the corresponding first video frame image, and the first video frame image is displayed in the CAPP as the target image.
需要说明的是,CAPP在展示重度游戏场景的目标画面时,还是会继续展示UI画面等轻度游戏场景,否则用户看到的只有重度游戏场景,没有UI画面,只是这种情况下用户没有针对轻度游戏场景发起动作事件,所以没有赘述。比如,用户点击了地图切换,CAPP在展示切换后的地图的同时,也会继续展示UI画面,否则用户看到的就是切换后的地图场景,没有UI画面。It should be noted that when CAPP displays the target screen of the heavy game scene, it will continue to display the light game scene such as the UI screen, otherwise the user will only see the heavy game scene without the UI screen, but in this case the user has not targeted The light game scene initiates an action event, so I won't go into details. For example, if the user clicks on the map switch, the CAPP will continue to display the UI screen while displaying the switched map. Otherwise, the user will see the switched map scene without the UI screen.
进一步,云服务器抓取得到的视频帧图像可以是一帧,也可以是多帧,取决于渲染后得到的目标画面的数量。在实际应用中,如果只有一幅目标画面,那么视频流数据对应的就是一帧视频帧图像;如果有多幅目标画面,那么视频流数据对应的就是多帧视频帧图像,多帧视频帧图像按顺序进行编码即可。Further, the video frame image captured by the cloud server may be one frame or multiple frames, depending on the number of target images obtained after rendering. In practical applications, if there is only one target picture, then the video stream data corresponds to one frame of video frame image; if there are multiple target pictures, then the video stream data corresponds to multiple frames of video frame images, and multiple frames of video frame images. Encode in order.
在实际应用中,CAPP除了会将动作事件发送至SAPP之外,还可以发送其它的交互数据,比如云游戏的帧率等;而且,云服务器除了可以渲染之外,还可以进行游戏逻辑计算等,这些可以根据实际需求进行设置,本申请对此不作限制。In actual applications, in addition to sending action events to SAPP, CAPP can also send other interactive data, such as the frame rate of cloud games; and, in addition to rendering, the cloud server can also perform game logic calculations, etc. , These can be set according to actual needs, and this application does not limit it.
在本申请一种优选实施例中,基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面的步骤,包括:In a preferred embodiment of the present application, the step of executing an action event through at least one of the preset cloud server or terminal based on the type of the action instruction to obtain the corresponding target screen includes:
当动作事件包括UI类型和非UI类型,则通过终端中的应用程序客户端执行UI类型的动作事件,得到对应的UI画面,并将非UI类型的动作事件发送至云服务器,使得云服务器执行非UI类型的动作事件,得到对应的第二视频帧图像的第二视频流数据,并将第二视频流数据发送至终端;When the action event includes UI type and non-UI type, the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud server so that the cloud server executes For non-UI type action events, obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;
接收第二视频流数据,并对第二视频流数据进行解码,得到第二视频帧图像,并将第二视频帧图像与UI画面进行整合,得到目标画面。The second video stream data is received, and the second video stream data is decoded to obtain a second video frame image, and the second video frame image is integrated with the UI image to obtain the target image.
比如,用户点击了云游戏中的某个技能图标,人物角色在施放该技能时具有技能效果(属于重度游戏场景),同时,技能图标也发生了变更(属于轻度游戏场景),所以技能效果通过云服务器进行渲染,得到第二视频帧图像,技能图标通过终端进行渲染,得到UI画面,然后CAPP将第二视频帧图像与UI画面进行叠加,得到最终的目标画面。其中,终端执行UI类型的动作事件,以及云服务器执行非UI类型的动作事件的方式可参照前述,在此就不赘述了。For example, if the user clicks on a certain skill icon in a cloud game, the character has a skill effect when the skill is cast (belonging to a severe game scene), and at the same time, the skill icon is also changed (belonging to a light game scene), so the skill effect Rendering through the cloud server to obtain the second video frame image, the skill icon is rendered through the terminal to obtain the UI image, and then the CAPP superimposes the second video frame image and the UI image to obtain the final target image. The manner in which the terminal executes the UI-type action event and the cloud server executes the non-UI-type action event can be referred to the foregoing, which will not be repeated here.
需要说明的是,第二视频帧图像与UI画面的帧率是相同的,这样每一帧第二视频帧图像都具有对应的UI画面。It should be noted that the frame rate of the second video frame image and the UI image are the same, so that each frame of the second video frame image has a corresponding UI image.
步骤S305,在终端中展示目标画面。In step S305, the target screen is displayed in the terminal.
CAPP第二视频帧图像与UI画面进行整合得到目标画面后,通过终 端的显示设备进行展示即可。After the CAPP second video frame image is integrated with the UI picture to obtain the target picture, it can be displayed on the display device of the terminal.
在本申请实施例中,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件时,比如UI交互,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。In the embodiment of the present application, when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance. In this way, When the terminal receives an action event that can be executed in the terminal in the cloud game, such as UI interaction, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game will still not be performed even when the network fluctuates. Affected, thereby improving the user's gaming experience.
在另一个实施例中提供了一种游戏的处理方法,如图4所示,该游戏的处理方法包括:In another embodiment, a game processing method is provided. As shown in FIG. 4, the game processing method includes:
步骤S401,当接收到终端发送的针对预设游戏的当前画面的动作事件时,执行动作事件,得到对应的游戏画面;其中,动作事件为非UI类型;Step S401: When receiving an action event for the current screen of the preset game sent by the terminal, execute the action event to obtain the corresponding game screen; where the action event is of a non-UI type;
步骤S402,将游戏画面进行渲染,得到第三视频帧图像;Step S402, rendering the game screen to obtain a third video frame image;
步骤S403,对第三视频帧图像进行编码,得到对应的第三视频流数据;Step S403, encoding the third video frame image to obtain corresponding third video stream data;
步骤S404,将第三视频流数据发送至终端,以使得终端对第三视频流数据进行解码,得到第三视频帧图像,并基于视频帧图像得到预设游戏的目标画面。Step S404: Send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain a third video frame image, and obtain a preset game target image based on the video frame image.
本申请实施例为云服务器执行动作事件的过程,具体可参照步骤S201~步骤S203,以及步骤S301~步骤S305,在此不再赘述。The embodiment of the present application is a process for the cloud server to execute an action event. For details, please refer to step S201 to step S203, and step S301 to step S305, which will not be repeated here.
在本申请实施例中,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端。由 于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。In the embodiment of the present application, when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from a single cloud server into a cloud server and a terminal. Since the terminal's execution of action events is not affected by the network and can respond to user control in a timely manner, it has high real-time performance. In this way, when the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in a cloud game, it does not It needs to be executed through the cloud server again, so as to ensure that the interactive experience of the cloud game will not be affected even when the network fluctuates, thereby improving the user's game experience.
图5为本申请又一实施例提供的一种游戏的处理装置的结构示意图,如图5所示,本实施例的装置可以包括:FIG. 5 is a schematic structural diagram of a game processing device provided by another embodiment of this application. As shown in FIG. 5, the device in this embodiment may include:
接收模块501,被配置为接收针对预设游戏的当前画面的动作指令;The receiving module 501 is configured to receive an action instruction for the current screen of the preset game;
获取模块502,被配置为获取所述动作指令中的动作事件,并确定出所述动作事件的类型;The obtaining module 502 is configured to obtain the action event in the action instruction and determine the type of the action event;
第一处理模块503,被配置为基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面;The first processing module 503 is configured to execute the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain a corresponding target screen;
展示模块504,被配置为在所述终端中展示所述目标画面。The display module 504 is configured to display the target screen in the terminal.
在本申请一种优选实施例中,还包括:In a preferred embodiment of this application, it further includes:
所述接收模块,还被配置为在接收到针对预设游戏的当前画面的动作指令之前,接收针对所述预设游戏的启动指令;The receiving module is further configured to receive a start instruction for the preset game before the action instruction for the current screen of the preset game is received;
检测模块,被配置为检测所述终端中是否存在所述预设游戏的应用程序客户端;The detection module is configured to detect whether there is an application client of the preset game in the terminal;
第二处理模块,被配置为从所述云服务器中获取所述应用程序客户端的安装文件,并运行所述安装文件,得到所述应用程序客户端。The second processing module is configured to obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
在本申请一种优选实施例中,所述动作事件的类型包括UI类型,所述UI类型的动作事件为针对所述预设游戏的UI执行的动作事件。In a preferred embodiment of the present application, the type of the action event includes a UI type, and the action event of the UI type is an action event executed for the UI of the preset game.
在本申请一种优选实施例中,所述第一处理模块具体被配置为通过所述终端中的应用程序客户端执行所述UI类型的动作事件,得到对应的目标画面。In a preferred embodiment of the present application, the first processing module is specifically configured to execute the UI type action event through the application client in the terminal to obtain the corresponding target screen.
在本申请一种优选实施例中,所述动作事件的类型包括非UI类型,所述非UI类型的动作事件为针对所述预设游戏的UI之外执行的动作事件。In a preferred embodiment of the present application, the type of the action event includes a non-UI type, and the non-UI type of action event is an action event executed outside the UI for the preset game.
在本申请一种优选实施例中,所述第一处理模块包括:In a preferred embodiment of the present application, the first processing module includes:
发送子模块,被配置为将所述动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第一视频帧图像的第一视频流数据,并将所述第一视频流数据发送至所述终端;The sending submodule is configured to send the action event to the cloud server, so that the cloud server executes the non-UI type action event to obtain the first video stream data of the corresponding first video frame image, and Sending the first video stream data to the terminal;
第一接收子模块,被配置为接收所述第一视频流数据;The first receiving submodule is configured to receive the first video stream data;
解码子模块,被配置为对所述第一视频流数据进行解码,得到所述第一视频帧图像,并将所述第一视频帧图像作为对应的目标画面。The decoding sub-module is configured to decode the first video stream data to obtain the first video frame image, and use the first video frame image as a corresponding target image.
在本申请一种优选实施例中,所述第一处理模块具体被配置为:In a preferred embodiment of the present application, the first processing module is specifically configured as:
当所述动作事件包括UI类型和非UI类型,则通过所述终端中的应用程序客户端执行UI类型的动作事件,得到对应的UI画面,并将非UI类型的动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第二视频帧图像的第二视频流数据,并将所述第二视频流数据发送至所述终端;以及,When the action event includes UI type and non-UI type, the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal; and,
接收所述第二视频流数据,并对所述第二视频流数据进行解码,得到所述第二视频帧图像,并将所述第二视频帧图像与所述UI画面进行整合,得到目标画面。Receive the second video stream data, decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
在本申请一种优选实施例中,所述云服务器与所述终端通过预设的网络数据交互通道进行相关数据的交互,所述相关数据包括交互协议、应用程序接口信息、游戏数据中的至少一种。In a preferred embodiment of the present application, the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes at least one of an interaction protocol, application program interface information, and game data. A sort of.
本实施例的游戏的处理装置可执行本申请第一个实施例所示的游戏的处理方法,其实现原理相类似,此处不再赘述。The game processing device of this embodiment can execute the game processing method shown in the first embodiment of the present application, and the implementation principles are similar, and will not be repeated here.
在本申请实施例中,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云服务器来执行,从而保证了在网络出 现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。In the embodiment of the present application, when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in time, so it has high real-time performance. In this way, When the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
图6为本申请又一实施例提供的一种游戏的处理装置的结构示意图。如图6所示,本实施例的装置可以包括:FIG. 6 is a schematic structural diagram of a game processing device provided by another embodiment of this application. As shown in FIG. 6, the apparatus of this embodiment may include:
执行模块601,被配置为当接收到终端发送的针对预设游戏的当前画面的动作事件时,执行所述动作事件,得到对应的游戏画面,其中,所述动作事件为非UI类型;The execution module 601 is configured to, when an action event for the current screen of a preset game is received from the terminal, execute the action event to obtain a corresponding game screen, wherein the action event is of a non-UI type;
渲染模块602,被配置为将所述游戏画面进行渲染,得到第三视频帧图像;The rendering module 602 is configured to render the game screen to obtain a third video frame image;
编码模块603,被配置为对所述第三视频帧图像进行编码,得到对应的第三视频流数据;The encoding module 603 is configured to encode the third video frame image to obtain corresponding third video stream data;
发送模块604,被配置为将所述第三视频流数据发送至所述终端,以使得所述终端对所述第三视频流数据进行解码,得到所述第三视频帧图像,并基于视频帧图像得到所述预设游戏的目标画面。The sending module 604 is configured to send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and based on the video frame The image obtains the target screen of the preset game.
本实施例的游戏的处理装置可执行本申请第一个实施例所示的游戏的处理方法,其实现原理相类似,此处不再赘述。The game processing device of this embodiment can execute the game processing method shown in the first embodiment of the present application, and the implementation principles are similar, and will not be repeated here.
在本申请实施例中,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。In the embodiment of the present application, when the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance. In this way, When the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
本申请的又一实施例中提供了一种电子设备,该电子设备包括:存储器和处理器;至少一个程序,存储于存储器中,用于被处理器执行时,与现有技术相比可实现:当终端接收到针对预设游戏的当前画面的动作指令 时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。Another embodiment of the present application provides an electronic device, the electronic device includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, compared with the prior art : When the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes at least one of the preset cloud servers or terminals based on the type of the action instruction An execution action event obtains the corresponding target screen and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in time, so it has high real-time performance. In this way, When the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
在一个可选实施例中提供了一种电子设备,如图7所示。图7所示的电子设备7000包括:处理器7001和存储器7003。其中,处理器7001和存储器7003相连,如通过总线7002相连。可选地,电子设备7000还可以包括收发器7004。需要说明的是,实际应用中收发器7004不限于一个,该电子设备7000的结构并不构成对本申请实施例的限定。In an optional embodiment, an electronic device is provided, as shown in FIG. 7. The electronic device 7000 shown in FIG. 7 includes a processor 7001 and a memory 7003. Among them, the processor 7001 and the memory 7003 are connected, for example, connected through a bus 7002. Optionally, the electronic device 7000 may further include a transceiver 7004. It should be noted that in actual applications, the transceiver 7004 is not limited to one, and the structure of the electronic device 7000 does not constitute a limitation to the embodiment of the present application.
处理器7001可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器7001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 7001 may be a CPU, a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 7001 may also be a combination that implements computing functions, for example, includes a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
总线7002可包括一通路,在上述组件之间传送信息。总线7002可以是PCI总线或EISA总线等。总线7002可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 7002 may include a path to transfer information between the above-mentioned components. The bus 7002 may be a PCI bus, an EISA bus, or the like. The bus 7002 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 7, but it does not mean that there is only one bus or one type of bus.
存储器7003可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 7003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, or optical disk storage. (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
存储器7003用于存储执行本申请方案的应用程序代码,并由处理器7001来控制执行。处理器7001用于执行存储器7003中存储的应用程序代码,以实现前述任一方法实施例所示的内容。The memory 7003 is used to store application program codes for executing the solutions of the present application, and is controlled by the processor 7001 to execute. The processor 7001 is configured to execute the application program code stored in the memory 7003 to implement the content shown in any of the foregoing method embodiments.
其中,电子设备包括但不限于:移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。Among them, electronic equipment includes but is not limited to: mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PAD (tablet computers), PMP (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc. Mobile terminals such as digital TVs, desktop computers, etc.
本申请的又一实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当其在计算机上运行时,使得计算机可以执行前述方法实施例中相应内容。与现有技术相比,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件时,比如UI交互,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。Another embodiment of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when it runs on a computer, the computer can execute the corresponding content in the foregoing method embodiment. Compared with the prior art, when the terminal receives an action instruction for the current screen of a preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance. In this way, When the terminal receives an action event that can be executed in the terminal in the cloud game, such as UI interaction, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game will still not be performed even when the network fluctuates. Affected, thereby improving the user's gaming experience.
本申请的又一实施例中提供了一种电子设备,该电子设备包括:存储器和处理器;至少一个程序,存储于存储器中,用于被处理器执行时,与现有技术相比可实现:当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件时,比如UI交互,不需要再通过云服务器来执行,从而保证了在网络出现波 动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。Another embodiment of the present application provides an electronic device, the electronic device includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, compared with the prior art : When the terminal receives an action instruction for the current screen of the preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes at least one of the preset cloud servers or terminals based on the type of the action instruction An execution action event obtains the corresponding target screen and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in a timely manner, so it has high real-time performance. In this way, When the terminal receives an action event that can be executed in the terminal in the cloud game, such as UI interaction, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game will still not be performed even when the network fluctuates. Affected, thereby improving the user's gaming experience.
在一个可选实施例中提供了一种电子设备,如图8所示。图8所示的电子设备8000包括:处理器8001和存储器8003。其中,处理器8001和存储器8003相连,如通过总线8002相连。可选地,电子设备8000还可以包括收发器8004。需要说明的是,实际应用中收发器8004不限于一个,该电子设备8000的结构并不构成对本申请实施例的限定。In an optional embodiment, an electronic device is provided, as shown in FIG. 8. The electronic device 8000 shown in FIG. 8 includes a processor 8001 and a memory 8003. Among them, the processor 8001 and the memory 8003 are connected, for example, through a bus 8002. Optionally, the electronic device 8000 may further include a transceiver 8004. It should be noted that in actual applications, the transceiver 8004 is not limited to one, and the structure of the electronic device 8000 does not constitute a limitation to the embodiment of the present application.
处理器8001可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器8001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 8001 may be a CPU, a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 8001 may also be a combination that implements computing functions, for example, it includes one or more microprocessor combinations, a DSP and a microprocessor combination, and so on.
总线8002可包括一通路,在上述组件之间传送信息。总线8002可以是PCI总线或EISA总线等。总线8002可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 8002 may include a path for transferring information between the above-mentioned components. The bus 8002 may be a PCI bus or an EISA bus. The bus 8002 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
存储器8003可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 8003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, or optical disk storage. (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
存储器8003用于存储执行本申请方案的应用程序代码,并由处理器8001来控制执行。处理器8001用于执行存储器8003中存储的应用程序代码,以实现前述任一方法实施例所示的内容。The memory 8003 is used to store application program codes for executing the solutions of the present application, and is controlled by the processor 8001 to execute. The processor 8001 is configured to execute the application program code stored in the memory 8003 to implement the content shown in any of the foregoing method embodiments.
其中,电子设备包括但不限于:移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。Among them, electronic equipment includes but is not limited to: mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PAD (tablet computers), PMP (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc. Mobile terminals such as digital TVs, desktop computers, etc.
本申请的又一实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当其在计算机上运行时,使得计算机可以执行前述方法实施例中相应内容。与现有技术相比,当终端接收到针对预设游戏的当前画面的动作指令时,获取动作指令中的动作事件,并确定出动作事件的类型,然后基于动作指令的类型通过预设的云服务器或终端中的至少一项执行动作事件,得到对应的目标画面,并在终端中展示目标画面。通过上述方式,将动作指令中动作事件的执行主体从单一的云服务器分离为云服务器和终端,由于终端执行动作事件不受网络影响,能及时响应用户的操控,因此具有高实时性,这样,当终端接收到针对云游戏中可在终端中执行的动作事件(例如,UI交互)时,不需要再通过云服务器来执行,从而保证了在网络出现波动的情况下,云游戏的交互体验依然不会受影响,进而提高了用户的游戏体验。Another embodiment of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when it runs on a computer, the computer can execute the corresponding content in the foregoing method embodiment. Compared with the prior art, when the terminal receives an action instruction for the current screen of a preset game, it acquires the action event in the action instruction, determines the type of the action event, and then passes the preset cloud based on the type of the action instruction At least one of the server or the terminal executes the action event, obtains the corresponding target screen, and displays the target screen in the terminal. Through the above method, the execution subject of the action event in the action instruction is separated from the single cloud server into the cloud server and the terminal. Since the terminal executes the action event without being affected by the network, it can respond to the user's manipulation in time, so it has high real-time performance. When the terminal receives an action event (for example, UI interaction) that can be executed in the terminal in the cloud game, it does not need to be executed through the cloud server, thereby ensuring that the interactive experience of the cloud game remains the same in the case of network fluctuations Will not be affected, thereby improving the user's gaming experience.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless explicitly stated in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the implementation of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.
Claims (13)
- 一种游戏的处理方法,包括:A game processing method, including:当终端接收到针对预设游戏的当前画面的动作指令时,获取所述动作指令中的动作事件,并确定出所述动作事件的类型;When the terminal receives an action instruction for the current screen of the preset game, acquire the action event in the action instruction, and determine the type of the action event;基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面;以及Execute the action event through at least one of the preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target screen; and在所述终端中展示所述目标画面。The target screen is displayed in the terminal.
- 根据权利要求1所述的游戏的处理方法,其中,在所述终端接收到针对预设游戏的当前画面的动作指令之前,还包括:The game processing method according to claim 1, wherein before the terminal receives an action instruction for the current screen of the preset game, the method further comprises:当接收针对所述预设游戏的启动指令时,检测所述终端中是否存在所述预设游戏的应用程序客户端;When receiving a start instruction for the preset game, detect whether there is an application client of the preset game in the terminal;若否,则从所述云服务器中获取所述应用程序客户端的安装文件,并运行所述安装文件,得到所述应用程序客户端。If not, obtain the installation file of the application client from the cloud server, and run the installation file to obtain the application client.
- 根据权利要求1所述的游戏的处理方法,其中,所述动作事件的类型包括UI类型,所述UI类型的动作事件为针对所述预设游戏的UI执行的动作事件。The game processing method according to claim 1, wherein the type of the action event includes a UI type, and the action event of the UI type is an action event executed for the UI of the preset game.
- 根据权利要求1至3任一所述的游戏的处理方法,其中,所述基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面的步骤,包括:The game processing method according to any one of claims 1 to 3, wherein the action event is executed by at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain a corresponding The steps of the target screen include:通过所述终端中的应用程序客户端执行所述UI类型的动作事件,得到对应的目标画面。The application client in the terminal executes the UI type action event to obtain the corresponding target screen.
- 根据权利要求1所述的游戏的处理方法,其中,所述动作事件的类型包括非UI类型,所述非UI类型的动作事件为针对所述预设游戏的UI之外执行的动作事件。The game processing method according to claim 1, wherein the type of the action event includes a non-UI type, and the non-UI type of action event is an action event executed outside the UI for the preset game.
- 根据权利要求1或2或5任一所述的游戏的处理方法,其中,所述基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面的步骤,包括:The method for processing a game according to any one of claims 1 or 2 or 5, wherein the action event is executed through at least one of a preset cloud server or the terminal based on the type of the action instruction, The steps for obtaining the corresponding target screen include:所述终端将所述动作事件发送至所述云服务器,使得所述云服务器执 行所述非UI类型的动作事件,得到对应的第一视频帧图像的第一视频流数据,并将所述第一视频流数据发送至所述终端;The terminal sends the action event to the cloud server, so that the cloud server executes the non-UI type action event, obtains the first video stream data of the corresponding first video frame image, and compares the first video stream data to the first video frame image. Sending a video stream data to the terminal;接收所述第一视频流数据,并对所述第一视频流数据进行解码,得到所述第一视频帧图像,并将所述第一视频帧图像作为对应的目标画面。The first video stream data is received, and the first video stream data is decoded to obtain the first video frame image, and the first video frame image is used as a corresponding target image.
- 根据权利要求1或2所述的游戏的处理方法,其中,所述基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面的步骤,包括:The game processing method according to claim 1 or 2, wherein the action event is executed through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain the corresponding target The steps of the screen include:当所述动作事件包括UI类型和非UI类型,则通过所述终端中的应用程序客户端执行UI类型的动作事件,得到对应的UI画面,并将非UI类型的动作事件发送至所述云服务器,使得所述云服务器执行所述非UI类型的动作事件,得到对应的第二视频帧图像的第二视频流数据,并将所述第二视频流数据发送至所述终端;When the action event includes UI type and non-UI type, the UI type action event is executed through the application client in the terminal to obtain the corresponding UI screen, and the non-UI type action event is sent to the cloud Server, enabling the cloud server to execute the non-UI type action event to obtain the second video stream data of the corresponding second video frame image, and send the second video stream data to the terminal;接收所述第二视频流数据,并对所述第二视频流数据进行解码,得到所述第二视频帧图像,并将所述第二视频帧图像与所述UI画面进行整合,得到目标画面。Receive the second video stream data, decode the second video stream data to obtain the second video frame image, and integrate the second video frame image with the UI screen to obtain a target image .
- 根据权利要求1或2所述的游戏的处理方法,其中,所述云服务器与所述终端通过预设的网络数据交互通道进行相关数据的交互,所述相关数据包括交互协议、应用程序接口信息、游戏数据中的至少一种。The game processing method according to claim 1 or 2, wherein the cloud server and the terminal exchange related data through a preset network data interaction channel, and the related data includes interaction protocol and application program interface information , At least one of game data.
- 一种游戏的处理方法,包括:A game processing method, including:当接收到终端发送的针对预设游戏的当前画面的动作事件时,执行所述动作事件,得到对应的游戏画面,其中,所述动作事件为非UI类型;When receiving an action event for the current screen of the preset game sent by the terminal, execute the action event to obtain a corresponding game screen, wherein the action event is of a non-UI type;将所述游戏画面进行渲染,得到第三视频帧图像;Rendering the game screen to obtain a third video frame image;对所述第三视频帧图像进行编码,得到对应的第三视频流数据;以及Encoding the third video frame image to obtain corresponding third video stream data; and将所述第三视频流数据发送至所述终端,以使得所述终端对所述第三视频流数据进行解码,得到所述第三视频帧图像,并基于视频帧图像得到所述预设游戏的目标画面。Send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and obtain the preset game based on the video frame image The target screen.
- 一种游戏的处理装置,应用于终端,包括:A game processing device applied to a terminal, including:接收模块,被配置为接收针对预设游戏的当前画面的动作指令;The receiving module is configured to receive an action instruction for the current screen of the preset game;获取模块,被配置为获取所述动作指令中的动作事件,并确定出所述 动作事件的类型;The obtaining module is configured to obtain the action event in the action instruction and determine the type of the action event;第一处理模块,被配置为基于所述动作指令的类型通过预设的云服务器或所述终端中的至少一项执行所述动作事件,得到对应的目标画面;The first processing module is configured to execute the action event through at least one of a preset cloud server or the terminal based on the type of the action instruction to obtain a corresponding target screen;展示模块,被配置为在所述终端中展示所述目标画面。The display module is configured to display the target screen in the terminal.
- 一种游戏的处理装置,应用于云服务器,包括:A game processing device applied to a cloud server, including:执行模块,被配置为当接收到终端发送的针对预设游戏的当前画面的动作事件时,执行所述动作事件,得到对应的游戏画面,其中,所述动作事件为非UI类型;The execution module is configured to execute the action event to obtain the corresponding game screen when receiving the action event for the current screen of the preset game sent by the terminal, wherein the action event is of a non-UI type;渲染模块,被配置为将所述游戏画面进行渲染,得到第三视频帧图像;A rendering module configured to render the game screen to obtain a third video frame image;编码模块,被配置为对所述第三视频帧图像进行编码,得到对应的第三视频流数据;An encoding module configured to encode the third video frame image to obtain corresponding third video stream data;发送模块,被配置为将所述第三视频流数据发送至所述终端,以使得所述终端对所述第三视频流数据进行解码,得到所述第三视频帧图像,并基于视频帧图像得到所述预设游戏的目标画面。The sending module is configured to send the third video stream data to the terminal, so that the terminal decodes the third video stream data to obtain the third video frame image, and based on the video frame image Obtain the target screen of the preset game.
- 一种电子设备,包括:An electronic device including:处理器、存储器和总线;Processor, memory and bus;所述总线,被配置为连接所述处理器和所述存储器;The bus is configured to connect the processor and the memory;所述存储器,被配置为存储操作指令;The memory is configured to store operation instructions;其中,所述处理器被配置为当调用所述操作指令时,执行上述权利要求1-9中任一项所述的游戏的处理方法。Wherein, the processor is configured to execute the game processing method according to any one of claims 1-9 when the operation instruction is invoked.
- 一种计算机可读存储介质,所述计算机存储介质存储有计算机指令,其中,当所述计算机指令在计算机上运行时,使得计算机可以执行上述权利要求1-9中任一项所述的游戏的处理方法。A computer-readable storage medium storing computer instructions, wherein when the computer instructions are run on a computer, the computer can execute the game according to any one of claims 1-9. Approach.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010038872.2 | 2020-01-14 | ||
CN202010038872.2A CN111803940B (en) | 2020-01-14 | 2020-01-14 | Game processing method and device, electronic equipment and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021143182A1 true WO2021143182A1 (en) | 2021-07-22 |
Family
ID=72847837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/115987 WO2021143182A1 (en) | 2020-01-14 | 2020-09-17 | Game processing method and apparatus, electronic device, and computer-readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111803940B (en) |
WO (1) | WO2021143182A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113713395A (en) * | 2021-08-31 | 2021-11-30 | 网易(杭州)网络有限公司 | Game data reading method, device, equipment and storage medium |
CN113908539A (en) * | 2021-09-15 | 2022-01-11 | 完美世界征奇(上海)多媒体科技有限公司 | Game fighting data display method, device, equipment and medium |
CN114039702A (en) * | 2021-11-08 | 2022-02-11 | 北京字节跳动网络技术有限公司 | Data transmission method, device, equipment and medium |
CN114146406A (en) * | 2021-11-30 | 2022-03-08 | 网易(杭州)网络有限公司 | Method and device for allocating operation resources, electronic equipment and storage medium |
CN114225383A (en) * | 2021-12-01 | 2022-03-25 | 咪咕互动娱乐有限公司 | Cloud game control method and device, cloud server and storage medium |
CN114570017A (en) * | 2022-04-07 | 2022-06-03 | 网易(杭州)网络有限公司 | Game object position synchronization method and device in game and electronic equipment |
CN114602165A (en) * | 2022-03-09 | 2022-06-10 | 网易(杭州)网络有限公司 | Game operating method, device, equipment, storage medium and program product |
CN114615171A (en) * | 2022-03-16 | 2022-06-10 | 网易(杭州)网络有限公司 | Pressure measurement processing method, device, medium and program product for cloud game server |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114793295B (en) * | 2021-01-25 | 2023-07-07 | 腾讯科技(深圳)有限公司 | Video processing method and device, electronic equipment and computer readable storage medium |
CN112954020B (en) * | 2021-01-28 | 2022-09-06 | 广州虎牙科技有限公司 | Game control method, device, electronic equipment and computer-readable storage medium |
CN112817682A (en) * | 2021-02-20 | 2021-05-18 | Oppo广东移动通信有限公司 | Interface display method, electronic device and non-volatile computer readable storage medium |
CN112843680A (en) * | 2021-03-04 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Picture display method and device, terminal equipment and storage medium |
CN113440838A (en) * | 2021-08-31 | 2021-09-28 | 炫彩互动网络科技有限公司 | End-to-end image rendering fusion method and system |
CN113996058B (en) * | 2021-11-01 | 2023-07-25 | 腾讯科技(深圳)有限公司 | Information processing method, apparatus, electronic device, and computer-readable storage medium |
CN114570016A (en) * | 2022-02-25 | 2022-06-03 | 阿里巴巴(中国)有限公司 | Cloud game processing method, cloud game system and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105556471A (en) * | 2013-08-01 | 2016-05-04 | 英特尔公司 | Adaptive remote computing |
CN110138769A (en) * | 2019-05-09 | 2019-08-16 | 深圳市腾讯网域计算机网络有限公司 | A kind of method and relevant apparatus of image transmitting |
CN110393921A (en) * | 2019-08-08 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Processing method, device, terminal, server and the storage medium of cloud game |
CN110507989A (en) * | 2019-09-06 | 2019-11-29 | 网易(杭州)网络有限公司 | A kind of control method of cloud game, device, electronic equipment and readable storage medium storing program for executing |
US10511675B1 (en) * | 2015-12-16 | 2019-12-17 | Amazon Technologies, Inc. | Endpoint resolution service for mobile applications accessing web services |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957671A (en) * | 2011-08-23 | 2013-03-06 | 中国移动通信集团公司 | Equipment, system and method for online games on mobile terminal |
CN106843498B (en) * | 2017-02-24 | 2020-05-22 | 网易(杭州)网络有限公司 | Dynamic interface interaction method and device based on virtual reality |
US10898802B2 (en) * | 2018-05-31 | 2021-01-26 | Sony Interactive Entertainment LLC | Bifurcation of shared controls and passing controls in a video game |
CN109173244A (en) * | 2018-08-20 | 2019-01-11 | 贵阳动视云科技有限公司 | Game running method and device |
CN113467847B (en) * | 2019-01-29 | 2024-08-06 | 腾讯科技(深圳)有限公司 | Service data processing method and device |
CN110333815B (en) * | 2019-06-21 | 2022-03-08 | 腾讯科技(成都)有限公司 | Touch event processing method and device |
CN110225352B (en) * | 2019-06-27 | 2021-03-05 | 深圳市云语科技有限公司 | Cloud game video coding and decoding selection method based on capability negotiation |
-
2020
- 2020-01-14 CN CN202010038872.2A patent/CN111803940B/en active Active
- 2020-09-17 WO PCT/CN2020/115987 patent/WO2021143182A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105556471A (en) * | 2013-08-01 | 2016-05-04 | 英特尔公司 | Adaptive remote computing |
US10511675B1 (en) * | 2015-12-16 | 2019-12-17 | Amazon Technologies, Inc. | Endpoint resolution service for mobile applications accessing web services |
CN110138769A (en) * | 2019-05-09 | 2019-08-16 | 深圳市腾讯网域计算机网络有限公司 | A kind of method and relevant apparatus of image transmitting |
CN110393921A (en) * | 2019-08-08 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Processing method, device, terminal, server and the storage medium of cloud game |
CN110507989A (en) * | 2019-09-06 | 2019-11-29 | 网易(杭州)网络有限公司 | A kind of control method of cloud game, device, electronic equipment and readable storage medium storing program for executing |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113713395A (en) * | 2021-08-31 | 2021-11-30 | 网易(杭州)网络有限公司 | Game data reading method, device, equipment and storage medium |
CN113908539A (en) * | 2021-09-15 | 2022-01-11 | 完美世界征奇(上海)多媒体科技有限公司 | Game fighting data display method, device, equipment and medium |
CN114039702A (en) * | 2021-11-08 | 2022-02-11 | 北京字节跳动网络技术有限公司 | Data transmission method, device, equipment and medium |
CN114039702B (en) * | 2021-11-08 | 2024-03-26 | 北京字节跳动网络技术有限公司 | Data transmission method, device, equipment and medium |
CN114146406A (en) * | 2021-11-30 | 2022-03-08 | 网易(杭州)网络有限公司 | Method and device for allocating operation resources, electronic equipment and storage medium |
CN114225383A (en) * | 2021-12-01 | 2022-03-25 | 咪咕互动娱乐有限公司 | Cloud game control method and device, cloud server and storage medium |
CN114602165A (en) * | 2022-03-09 | 2022-06-10 | 网易(杭州)网络有限公司 | Game operating method, device, equipment, storage medium and program product |
CN114615171A (en) * | 2022-03-16 | 2022-06-10 | 网易(杭州)网络有限公司 | Pressure measurement processing method, device, medium and program product for cloud game server |
CN114615171B (en) * | 2022-03-16 | 2024-01-30 | 网易(上海)网络有限公司 | Pressure measurement processing method, device, medium and program product of cloud game server |
CN114570017A (en) * | 2022-04-07 | 2022-06-03 | 网易(杭州)网络有限公司 | Game object position synchronization method and device in game and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111803940B (en) | 2022-05-31 |
CN111803940A (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021143182A1 (en) | Game processing method and apparatus, electronic device, and computer-readable storage medium | |
EP3046331B1 (en) | Media control method and system based on cloud desktop | |
CN106713485B (en) | Cloud computing mobile terminal | |
WO2022188595A1 (en) | Method and apparatus for displaying application picture, and terminal, screen projection system and medium | |
US8689115B2 (en) | Method and system for distributed computing interface | |
US8959141B2 (en) | System and method for pervasive computing | |
WO2017124860A1 (en) | Distributed wireless multi-screen virtual machine service system | |
US20150019694A1 (en) | Method for Screen Sharing, Related Device, and Communications System | |
US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
WO2022096017A1 (en) | Content display method and apparatus | |
US20130324099A1 (en) | System and Method for Running Mobile Devices in the Cloud | |
WO2012065415A1 (en) | Terminal, system and service providing method based on virtualization techniques | |
WO2022100308A1 (en) | Information processing method and related apparatus | |
US11900551B2 (en) | Creating cloud-hosted, streamed augmented reality experiences with low perceived latency | |
WO2014089793A1 (en) | Method, device, and system for video redirection and computer readable medium | |
CN107948731B (en) | Video stream merging method, server and computer-readable storage medium | |
WO2024037110A1 (en) | Data processing method and apparatus, device, and medium | |
US20230333803A1 (en) | Enhanced Screen Sharing Method and System, and Electronic Device | |
CN113691602B (en) | Service processing method, system, device, equipment and medium based on cloud mobile phone | |
US11936928B2 (en) | Method, system and device for sharing contents | |
WO2023143299A1 (en) | Message display method and apparatus, device, and storage medium | |
WO2015117445A1 (en) | Method and device for processing task window | |
WO2021248988A1 (en) | Cross-terminal screen recording method, terminal device, and storage medium | |
CN113826074B (en) | Adaptive real-time communication plug-in for virtual desktop infrastructure solutions | |
WO2024051148A1 (en) | Cloud game control method and apparatus, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20914580 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20914580 Country of ref document: EP Kind code of ref document: A1 |