CN113398581B - Game picture display method, game picture display device, electronic equipment and readable storage medium - Google Patents
Game picture display method, game picture display device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN113398581B CN113398581B CN202110738746.2A CN202110738746A CN113398581B CN 113398581 B CN113398581 B CN 113398581B CN 202110738746 A CN202110738746 A CN 202110738746A CN 113398581 B CN113398581 B CN 113398581B
- Authority
- CN
- China
- Prior art keywords
- game
- server
- operations
- picture
- preset type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/33—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections
-
- 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/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a game picture display method, a game picture display device, electronic equipment and a readable storage medium, aiming at reducing occupation of network resources during cloud game operation. The game picture display method comprises the following steps: obtaining a game operation for controlling a target game; determining the operation type of the game operation; acquiring an operation image corresponding to the game operation from the cache and overlapping the operation image on a game picture, and displaying the game picture overlapped with the operation image under the condition that the game operation belongs to a first preset type; in the case that the game operation belongs to the second preset type, the game operation is transmitted to a server for running the target game, so that a game picture returned by the server is obtained, and the game picture is displayed, wherein the game picture is a game picture rendered by the server according to the game operation.
Description
Technical Field
The present application relates to the technical field of cloud games, and in particular, to a game screen display method, a device, an electronic apparatus, and a readable storage medium.
Background
The cloud game is a game mode based on cloud computing, and in the running mode of the cloud game, the server is used for running the game, compressing the rendered game picture and transmitting the compressed game picture to the terminal through the network. The terminal generally does not need a high-end processor or a high-end display card, and only needs basic video decompression capability. In addition, the terminal also detects the game operation of the user and sends the game operation to the server, so that the server can control the running of the game according to the game operation sent by the terminal and render corresponding game pictures. Among other things, the user's game operations include, but are not limited to: control operations for game characters, control operations for props/skills, zoom-in/zoom-out operations for game pictures, and the like.
Since a large amount of data (such as input operations and video pictures) needs to be transferred between the server and the terminal during the operation of the cloud game, a large amount of network resources are occupied during the operation of the cloud game.
Disclosure of Invention
In view of the above problems, embodiments of the present application provide a game screen display method, apparatus, electronic device, and readable storage medium, which aim to reduce occupation of network resources during operation of a cloud game.
In a first aspect, an embodiment of the present application provides a game screen display method, including: obtaining a game operation for controlling a target game; determining an operation type of the game operation, wherein the operation type comprises a first preset type and a second preset type; acquiring an operation image corresponding to the game operation from a cache, overlapping the operation image on a game picture, and displaying the game picture overlapped with the operation image under the condition that the game operation belongs to the first preset type; and sending the game operation to a server for running the target game under the condition that the game operation belongs to the second preset type, so as to obtain a game picture returned by the server, and displaying the game picture, wherein the game picture is a game picture rendered by the server according to the game operation.
In a second aspect, an embodiment of the present application provides a game screen display device, where the device includes a game operation obtaining module, an operation type determining module, a first display module, and a second display module. Wherein the game operation obtaining module is used for obtaining a game operation for controlling a target game; the operation type determining module is used for determining an operation type of the game operation, wherein the operation type comprises a first preset type and a second preset type; the first display module is used for acquiring an operation image corresponding to the game operation from the cache, overlapping the operation image on a game picture and displaying the game picture overlapped with the operation image under the condition that the game operation belongs to the first preset type; the second display module is configured to send the game operation to a server for running the target game, so as to obtain a game screen returned by the server, and display the game screen, where the game screen is a game screen rendered by the server according to the game operation, when the game operation is of the second preset type.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the methods described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, wherein the program code, when executed by a processor, performs the method described above.
In a fifth aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform the method described above.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
in the technical scheme provided by the embodiment of the application, after the game operation is obtained, the type of the game operation is judged, and under the condition that the type of the game operation belongs to a first preset type, an operation image corresponding to the game operation is obtained from a cache, and is superimposed on a game picture, and the game picture on which the operation image is superimposed is displayed. And if the game operation belongs to the second preset type, transmitting the game operation to the server so as to obtain a game picture returned by the server and displaying the game picture. According to the application, under the condition that the game operation belongs to the first preset type, the game operation does not need to be sent to the server for corresponding rendering, so that the data transmission quantity between the terminal and the server is reduced, and the occupation of network resources during the running of the cloud game is further effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of one possible implementation environment of the present application;
FIG. 2 is a flow chart illustrating a method for displaying a game screen according to an embodiment of the application;
FIG. 3 is a schematic diagram of determining valid game operations in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of a game screen display device according to an embodiment of the application;
fig. 5 is a schematic diagram showing the composition of an apparatus for performing a game screen display method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The cloud game is a game mode based on cloud computing, and in the running mode of the cloud game, the server is used for running the game, compressing the rendered game picture and transmitting the compressed game picture to the terminal through the network. The terminal generally does not need a high-end processor or a high-end display card, and only needs basic video decompression capability. In addition, the terminal also detects the game operation of the user and sends the game operation to the server, so that the server can control the running of the game according to the game operation sent by the terminal and render corresponding game pictures. Among other things, the user's game operations include, but are not limited to: control operations for game characters, control operations for props/skills, zoom-in/zoom-out operations for game pictures, and the like.
Since a large amount of data (such as input operations and video pictures) needs to be transferred between the server and the terminal during the operation of the cloud game, a large amount of network resources are occupied during the operation of the cloud game.
In view of this, in the technical solution provided in the embodiments of the present application, after obtaining a game operation, a terminal determines a type of the game operation, obtains an operation image corresponding to the game operation from a cache when the type of the game operation belongs to a first preset type, and superimposes the operation image on a game screen, and displays the game screen superimposed with the operation image. And if the game operation belongs to the second preset type, transmitting the game operation to the server so as to obtain a game picture returned by the server and displaying the game picture. Under the condition that the game operation belongs to the first preset type, the game operation does not need to be sent to the server for corresponding rendering, so that the data transmission quantity between the terminal and the server is reduced, and further occupation of network resources during cloud game operation is effectively reduced.
The following describes an implementation environment related to a game screen display method provided by an embodiment of the present application. Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application. As shown in fig. 1, the implementation environment may include a terminal 100, a service server 210, a service data repository 220, a game server 230, and an audio-video server 240.
As shown in fig. 1, the terminal 100 may be a notebook computer or the like, and the terminal 100 includes input devices including, but not limited to: a keyboard 110, a mouse 120, a touch screen display, or a microphone. In addition, the terminal 100 may be a desktop computer, a smart phone, a handheld game machine, or a tablet computer.
As shown in fig. 1, the service server 210 is configured to receive an authentication request transmitted from the terminal 100 and to read user data for authentication from the service data repository 220, thereby performing an authentication operation according to the read user data. In addition, the service server 210 is further configured to receive a host list sent by the game server 230, where the host list is used to characterize whether each game server 230 is currently idle. After determining that terminal 110 is authenticated, service server 210 may assign one or more idle game servers 230 to terminal 100 based on the host list. As such, it is equivalent to subscribing one or more idle game servers 230 to the terminal 100.
As shown in fig. 1, during a game (i.e., during a period in which the terminal 100 continuously displays game pictures), the terminal 100 detects a game operation of a user, wherein the game operation includes, but is not limited to: triggering operation of virtual control in game screen, clicking operation of physical key, voice input, changing gesture of terminal 100 (e.g. tilting terminal 100 to left, tilting terminal 100 to right). After detecting the game operation, the terminal 100 determines the type of the game operation. If the game operation belongs to the first preset type, an operation image corresponding to the game operation is acquired from the cache of the terminal 100, and the operation image is superimposed on the current game screen, thereby displaying the game screen superimposed with the operation image.
As shown in fig. 1, if the game operation belongs to the second preset type, the terminal 100 transmits the game operation to the service server 210. The service server 210 parses the game operation into game instructions and transmits the game instructions to one or more game servers 230 subscribed to by the terminal 100. The game server 230 renders a corresponding game picture according to the game command in response to the game command transmitted from the service server 210, compresses the rendered game picture, and transmits the compressed game picture to the av server 240 in a push manner. The terminal 100 then acquires the compressed game screen from the av server 240 in a streaming manner. After obtaining the compressed game screen, the terminal 100 decompresses the compressed game screen and displays the decompressed game screen.
As shown in fig. 1, the terminal 100 and the service server 210 may be connected by a network 300, so that the terminal 100 may transmit an authentication request, a game operation, etc. to the service server 210 based on the network 300. The terminal 100 and the audio/video server 240 may be connected via the network 300, so that the terminal 100 may acquire the compressed game screen from the audio/video server 240 based on the network 300.
Wherein the network 300 may be a wireless network, a wired network, or a combination of both. In some embodiments, network 300 uses standard communication techniques and/or protocols, and network 300 is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, a private network, or any combination of virtual private networks. In some embodiments, the data exchanged over the network 300 is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible Markup Language, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure socket layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet Protocol Security, IPsec), and the like. In some embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
It should be noted that the implementation environment provided above in connection with fig. 1 is only an example of various implementation environments of the present application, and the data transmission method provided in the embodiment of the present application may also be applied to other implementation environments.
For example, in other implementation environments, the functions of the service server, the game server, and the audio-video server may be centralized on one server. Or in other implementation environments, the game server is directly in communication connection with the terminal, the terminal sends the game operation of the second preset type to the game server, the game server renders corresponding game pictures according to the game operation sent by the terminal, compresses the rendered game pictures, and sends the compressed game pictures to the terminal. It should be noted that, the specific structure and function of the server are not limited in the present application.
For example, in other implementation environments, the execution subject of the steps of determining the operation type of the game operation, acquiring the operation image from the cache, superimposing the operation image on the game screen, displaying the game screen superimposed with the operation image, transmitting the game operation of the second preset type to the server, and displaying the game screen returned by the server is not the terminal but an application or browser page running on the terminal. In some possible implementations, the application may be a live-type application with a game entry control displayed on a user interface of the live-type application. The live class application begins executing steps associated with the game in response to a user clicking on a game entry control, such as those described above: determining the operation type of the game operation, acquiring an operation image from a cache, superposing the operation image on a game picture, displaying the game picture superposed with the operation image, transmitting the game operation of a second preset type to a server, displaying the game picture returned by the server, and the like.
It should be noted that, the execution subject of the present application includes, but is not limited to: a terminal, an application or a browser web page. In the following, for simplicity of explanation, the execution subject selects a terminal as an example, and various embodiments of the present application will be described.
Referring to fig. 2, fig. 2 is a flow chart of a game screen display method according to an embodiment of the application, and as shown in fig. 2, the game screen display method includes the following steps:
s21: a game operation for controlling the target game is obtained.
In the present application, during the terminal running the target game, a game operation for controlling the target game is obtained by detecting the operation of the user with respect to the game input device. Wherein the game input device comprises at least one of: keyboard, mouse, touch display, game pad, microphone, camera.
Taking a keyboard as an example of a game input device, when a keyboard event monitor of a terminal monitors that a target key is pressed during a terminal running a target game, it is equivalent to the terminal obtaining a game operation for controlling the target game. Wherein the target key is a key on the keyboard for controlling the target game. For example, in a target game, key A indicates that the control game character is moving to the left, and key D indicates that the control game character is moving to the right. When the key a is pressed during the terminal running the target game, the key event listener of the terminal is equivalent to the terminal obtaining a game operation for controlling the target game, which is a game operation for controlling the game character to move leftwards.
S22: determining an operation type of the game operation, wherein the operation type comprises a first preset type and a second preset type.
In the application, after obtaining the game operation, the terminal can first determine the operation instruction corresponding to the game operation, and then determine the operation type corresponding to the operation instruction, namely the operation type corresponding to the game operation.
In some possible implementation manners, the corresponding relation between the operation instruction and the operation type is stored in the terminal, and after the operation instruction corresponding to the game operation is determined, the terminal can determine the operation type corresponding to the operation instruction according to the pre-stored corresponding relation, so as to determine the operation type corresponding to the game operation. For ease of understanding, illustratively, during execution of the target game by the terminal, the keyboard event listener of the terminal listens for key a being pressed, thereby obtaining a game operation. The terminal responds to the pressing of the key A, determines an operation instruction corresponding to the game operation to control the game role to move leftwards, and then determines the operation type corresponding to the operation instruction to be a second preset type according to the pre-stored corresponding relation.
In some possible implementations, the game operations belonging to the first preset type include at least one of the following: moving the position of a mouse cursor, opening a virtual resource library of the target game, and opening a menu bar of the target game.
In some possible implementations, the game operations belonging to the second preset type include at least one of the following: controlling the movement of the game role, controlling the attack of the game role, controlling the defense of the game role and controlling the visual angle switching of the game scene.
S23: in the case that the game operation is of the first preset type, an operation image corresponding to the game operation is acquired from the cache, and is superimposed on the game screen, and the game screen on which the operation image is superimposed is displayed.
In the application, the terminal obtains the operation image corresponding to the game operation from the cache on one hand, and continuously displays the game picture sent by the server on the other hand. When the terminal successfully acquires the operation image corresponding to the game operation from the cache, the terminal superimposes the acquired operation image on the game image aiming at each frame of game image to be displayed, and then displays the game image superimposed with the operation image until reaching the preset condition, and the terminal does not superimpose the operation image on the game image.
In some possible implementations, the preset conditions are: the terminal detects another game operation belonging to the first preset type, acquires an operation image corresponding to the game operation from the cache, and the operation image being displayed in the target game and the operation image acquired last cannot be displayed simultaneously.
In some possible implementations, the preset conditions are: the terminal detects a game operation for collapsing the operation image being displayed. For example, the currently displayed operation image is a drop-down menu bar, and at this time the terminal detects a click operation of the mouse on a non-drop-down menu area for collapsing the drop-down menu being presented.
In some possible implementations, the preset conditions are: the display time of the operation image has reached a preset time threshold.
In the application, after determining that the game operation belongs to the first preset type, the terminal can query an operation image corresponding to the operation instruction from the cache according to the operation instruction corresponding to the game operation, wherein the operation image corresponding to the operation instruction is the operation image corresponding to the game operation.
Or in the application, after determining that the game operation belongs to the first preset type, the terminal can determine the game data corresponding to the operation instruction according to the operation instruction corresponding to the game operation, and then acquire the game operation corresponding to the game data from the cache. For ease of understanding, it is assumed by way of example that the game operation detected by the terminal is an open weapon library, the operation type of the game operation belongs to a first preset type, and the operation instruction corresponding to the game operation is an open weapon library instruction. In response to the command, the terminal acquires game data corresponding to the command of opening the weapon library, wherein the game data comprises a plurality of virtual weapons collected by the game role. The terminal acquires the operation screen including just the virtual weapons from the cache according to the game data.
S24: in the case that the game operation belongs to the second preset type, the game operation is transmitted to a server for running the target game, so that a game picture returned by the server is obtained, and the game picture is displayed, wherein the game picture is a game picture rendered by the server according to the game operation.
In the application, after game operation is obtained, the type of the game operation is judged, and in the case that the type of the game operation belongs to a first preset type, an operation image corresponding to the game operation is obtained from a cache, and is superimposed on a game picture, and the game picture superimposed with the operation image is displayed. And if the game operation belongs to the second preset type, transmitting the game operation to the server so as to obtain a game picture returned by the server and displaying the game picture. According to the application, under the condition that the game operation belongs to the first preset type, the game operation does not need to be sent to the server for corresponding rendering, so that the data transmission quantity between the terminal and the server is reduced, and the occupation of network resources during the running of the cloud game is further effectively reduced.
In some embodiments of the application, the game operations stored in the cache are gradually downloaded and stored from the server during the game. For some game operations, the corresponding operation images may not be stored in the cache. In this way, in the case where the game operation is of the first preset type and the operation image corresponding to the game operation cannot be acquired from the cache, the terminal may transmit the game operation to the server to acquire the operation image returned by the server, superimpose the operation image on the game screen, and display the game screen superimposed with the operation image. In addition, the operation image returned by the server can be stored in the cache, so that when the game operation is responded again later, the corresponding operation image can be directly obtained from the cache.
In specific implementation, the game operation sent by the terminal to the server is specifically a corresponding operation instruction. The server may save the correspondence between the operation instruction and the operation type. When the server receives the operation instruction, the operation type corresponding to the operation instruction can be determined according to the corresponding relation. If the operation type corresponding to the operation instruction is the first preset type, the server only renders the operation image corresponding to the operation instruction and sends the rendered operation image to the terminal, so that the terminal downloads the operation image. If the operation type corresponding to the operation instruction is the second preset type, the server renders a corresponding game picture and sends the rendered game picture to the terminal.
In addition, when the terminal stores the operation image sent by the server in the cache, the corresponding relationship between the operation image and the game operation can also be stored in the cache. Or storing the corresponding relation between the operation image and the operation instruction into a cache.
In the present application, it is contemplated that a user may click a mouse or tap the same key of a keyboard multiple times in rapid succession during a game. In these cases, the user is equivalent to repeating the same game operation a number of times in quick succession. For this purpose, in some embodiments of the present application, after detecting a game operation and determining the operation type of the game operation, the terminal may store the game operation as a message in a first message queue of the terminal in case the game operation belongs to a first preset type. And the terminal can also periodically read all game operations from the first message queue, acquire valid game operations from all game operations, and acquire operation images corresponding to the valid game operations from the cache.
In specific implementation, the terminal is at least provided with an operation type judging process and an operation image acquiring process. The operation type judging process is used as a message producer of the first message queue, and the operation image obtaining process is used as a message consumer of the first message queue. When the operation type judging process determines that the current game operation belongs to the first preset type, the current game operation is used as a message and stored in a first message queue. The operation image obtaining process may read all game operations from the first message queue at intervals of a preset time period (for example, at intervals of 500 ms), obtain valid game operations from all obtained game operations, and obtain operation images corresponding to the valid game operations from the cache.
When the terminal acquires the effective game operation from all the game operations, the terminal can divide all the game operations into one or more operation sequence segments according to the ordering of all the game operations in the first message queue, wherein each operation sequence segment comprises one or more identical game operations. Any game operation in the operation sequence segment is then determined as a valid game operation for each operation sequence segment.
For ease of understanding, and by way of example, referring to FIG. 3, FIG. 3 is a schematic illustration of determining valid game play in accordance with an embodiment of the present application. As shown in fig. 3, the message producer deposits a plurality of game operations into the first message queue during a period of 080 ms at 12 o 'clock 20 minutes 35 seconds to 515 ms at 12 o' clock 20 minutes 35 seconds. The plurality of game operations includes 3 consecutive game operations a, 2 game operations B, and 5 game operations C. At point 12, 20 minutes 35 seconds 560 milliseconds, the message consumer reads all game play from the first message queue. The plurality of game operations is then divided into three operation sequence segments, wherein the first operation sequence segment comprises 3 game operations a, the second operation sequence segment comprises 2 game operations B, and the third operation sequence segment comprises 5 game operations C. Thus, for the first sequence of operations, the valid game operation is determined for any one of the game operations A. For the second sequence of operation segments, any one of the game operations B is determined to be a valid game operation. For the third sequence of operations, segments, any one of the game operations C is determined to be a valid game operation.
In the application, in order to send the game operation belonging to the second preset type to the server, the terminal can take the game operation as a message and store the message into a second message queue under the condition that the game operation belongs to the second preset type; and also periodically reading out all game operations from the second message queue, generating operation data according to all game operations, and transmitting the operation data to the server.
In concrete implementation, the terminal runs a game operation sending process in addition to an operation type judging process and an operation image obtaining process.
The operation type judging process is used as a message producer of the first message queue, a message producer of the second message queue and the game operation sending process is used as a message consumer of the second message queue. When the operation type judging process determines that the current game operation belongs to the second preset type, the current game operation is used as a message and stored in a second message queue. And the game operation sending process may read all the game operations from the second message queue at preset time intervals (for example, at intervals of 500 ms), and generate operation data according to all the obtained game operations.
When operation data is generated according to all acquired game operations, all the game operations are formed into a sequence or list, and each game operation is included in the sequence or list, and the sequence or list is used as the generated operation data. Because each game operation is included in the operation data, the operation data may characterize a continuous plurality of game operations. The game operation in the operation data may be a corresponding operation instruction or game operation information, where the game operation information refers to control information for the game input device. For example, a certain game operation is specifically pressing a key a in the keyboard, and the game operation information of the game operation is corresponding information of the key a, for example, key code information of the key a.
Referring to fig. 4, fig. 4 is a schematic diagram of a game screen display device 400 according to an embodiment of the application. As shown in fig. 4, the game screen display device 400 includes:
a game operation obtaining module 410 for obtaining a game operation for controlling a target game.
The operation type determining module 420 is configured to determine an operation type to which the game operation belongs, where the operation type includes a first preset type and a second preset type.
The first display module 430 is configured to, in a case where the game operation is of a first preset type, obtain an operation image corresponding to the game operation from the cache, superimpose the operation image on the game screen, and display the game screen superimposed with the operation image.
And a second display module 440 for transmitting the game operation to the server for running the target game in case the game operation is of a second preset type, to obtain a game screen returned from the server, and displaying the game screen, the game screen being a game screen rendered by the server according to the game operation.
In some possible implementations, the first display module 430 is further configured to: in the case where the game operation belongs to the first preset type but the operation image corresponding to the game operation is not acquired from the cache, the game operation is transmitted to the server to acquire the operation image returned by the server, the operation image is superimposed on the game screen, the game screen superimposed with the operation image is displayed, and the operation image returned by the server is stored in the cache.
In some possible implementations, the first display module 430 is specifically configured to: under the condition that the game operation belongs to a first preset type, taking the game operation as a message and storing the message into a first message queue; and periodically reading all game operations from the first message queue, acquiring effective game operations from all game operations, and acquiring operation images corresponding to the effective game operations from the cache.
In some possible implementations, the first display module 430, when used to obtain valid game operations from all game operations, is specifically configured to: dividing all game operations into one or more operation sequence segments according to the ordering of all game operations in the first message queue, wherein each operation sequence segment comprises one or more identical game operations; for each operation sequence segment, any game operation in the operation sequence segment is determined to be a valid game operation.
In some possible implementations, the second display module 440 is specifically configured to: under the condition that the game operation belongs to a second preset type, taking the game operation as a message and storing the message into a second message queue; and periodically reading all game operations from the second message queue, generating operation data according to all game operations, and sending the operation data to the server.
In some possible implementations, the game operations belonging to the first preset type include at least one of the following: moving the position of a mouse cursor, opening a virtual resource library of the target game, and opening a menu bar of the target game.
In some possible implementations, the game operations belonging to the second preset type include at least one of the following: controlling the movement of the game role, controlling the attack of the game role, controlling the defense of the game role and controlling the visual angle switching of the game scene.
Referring to fig. 5, fig. 5 is a schematic diagram showing the composition of an apparatus for performing a game screen display method according to an embodiment of the present application.
The apparatus 500 shown in fig. 5 includes: at least one processor 510, memory 550, at least one network interface 520, and a user interface 530, among other components. The various components in device 500 are coupled together by a bus system 540, with bus system 540 being used to enable connected communications between these components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to the data bus. The various buses are labeled as bus system 540 in fig. 5 for clarity of illustration.
The processor 510 may be an integrated circuit chip with signal processing capabilities such as a general purpose processor, such as a microprocessor or any conventional processor, or the like, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
The user interface 530 includes one or more output devices 531 that enable presentation of media content (e.g., such as the aforementioned flowcharts, configuration bars, etc.), including one or more speakers and/or one or more visual displays. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch display, camera, other input buttons and controls.
The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 550 may optionally include one or more storage devices physically located remote from processor 510.
Memory 550 includes volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a random access Memory (RAM, random Access Memory). The memory 550 described in embodiments of the present application is intended to comprise any suitable type of memory.
In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, as exemplified below.
The operating system 551, which includes system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., is used to implement various basic services and process hardware-based tasks.
Network communication module 552 is used to reach other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: bluetooth, wireless compatibility authentication (Wi-Fi), and universal serial bus (USB, universal Serial Bus), etc.
A presentation module 553 for enabling presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 531 (e.g., a display screen, speakers, etc.) associated with the user interface 530.
The input processing module 554 is configured to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.
In some embodiments, the game screen display device provided in the embodiments of the present application may be implemented in software, and fig. 5 shows a game screen display device 400 stored in a memory 550, which may be software in the form of a program and a plug-in, and at least includes the following software modules: a game operation obtaining module 410, an operation type determining module 420, a first display module 430 and a second display module 440. These modules are logical and can thus be arbitrarily combined or further split depending on the functions implemented. The function of each module has been described hereinabove, and will not be described here to avoid repetition.
In other embodiments, the game screen display device provided in the embodiments of the present application may be implemented in hardware, and as an example, the game screen display device provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the flow processing method provided in the embodiments of the present application. For example, a processor in the form of a hardware decoding processor may employ one or more application specific integrated circuits (ASICs, application Specific Integrated Circuit), DSPs, programmable logic devices (PLDs, programmable Logic Device), complex programmable logic devices (CPLDs, complex Programmable Logic Device), field programmable gate arrays (FPGAs, field-Programmable Gate Array), or other electronic components.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the flow processing method according to the embodiment of the present application.
An embodiment of the present application provides a computer-readable storage medium storing executable instructions that, when executed by a processor, cause the processor to perform a flow processing method provided by the embodiment of the present application, for example, a game screen display method as shown in fig. 2.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup language (HTML, hyper Text Markup Language) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims (6)
1. A game screen display method, characterized in that the method comprises:
obtaining a game operation for controlling a target game;
determining an operation type of the game operation, wherein the operation type comprises a first preset type and a second preset type, and the game operation belonging to the first preset type comprises at least one of the following game operations: moving the position of a mouse cursor, opening a virtual resource library of the target game, and opening a menu bar of the target game, wherein the game operation belonging to the second preset type comprises at least one of the following multiple game operations: controlling the movement of the game role, controlling the attack of the game role, controlling the defense of the game role and controlling the visual angle switching of the game scene;
under the condition that the game operation belongs to the first preset type, taking the game operation as a message and storing the message into a first message queue;
periodically reading all game operations from the first message queue, and dividing the all game operations into one or more operation sequence segments according to the ordering of the all game operations in the first message queue, wherein each operation sequence segment comprises one or more identical game operations;
for each operation sequence segment, determining any game operation in the operation sequence segment as an effective game operation, acquiring an operation image corresponding to the effective game operation from a cache, superposing the operation image on a game picture, and displaying the game picture superposed with the operation image;
and sending the game operation to a server for running the target game under the condition that the game operation belongs to the second preset type, so as to obtain a game picture returned by the server, and displaying the game picture, wherein the game picture is a game picture rendered by the server according to the game operation.
2. The method according to claim 1, wherein the method further comprises:
when the game operation belongs to the first preset type and an operation image corresponding to the game operation cannot be acquired from a cache, transmitting the game operation to the server so as to acquire an operation image returned by the server, overlapping the operation image on a game picture, and displaying the game picture overlapped with the operation image;
and storing the operation image returned by the server into the cache.
3. The method of claim 1, wherein the sending the game operation to a server for running the target game if the game operation is of the second preset type comprises:
under the condition that the game operation belongs to the second preset type, taking the game operation as a message and storing the message into a second message queue;
and periodically reading all game operations from the second message queue, generating operation data according to all game operations, and sending the operation data to the server.
4. A game screen display device, characterized in that the device comprises:
a game operation obtaining module for obtaining a game operation for controlling a target game;
an operation type determining module, configured to determine an operation type to which the game operation belongs, where the operation type includes a first preset type and a second preset type, and the game operation belonging to the first preset type includes at least one of the following multiple game operations: moving the position of a mouse cursor, opening a virtual resource library of the target game, and opening a menu bar of the target game, wherein the game operation belonging to the second preset type comprises at least one of the following multiple game operations: controlling the movement of the game role, controlling the attack of the game role, controlling the defense of the game role and controlling the visual angle switching of the game scene;
the first display module is used for taking the game operation as a message and storing the message into a first message queue under the condition that the game operation belongs to the first preset type; periodically reading all game operations from the first message queue, and dividing the all game operations into one or more operation sequence segments according to the ordering of the all game operations in the first message queue, wherein each operation sequence segment comprises one or more identical game operations; for each operation sequence segment, determining any game operation in the operation sequence segment as an effective game operation, acquiring an operation image corresponding to the effective game operation from a cache, superposing the operation image on a game picture, and displaying the game picture superposed with the operation image;
and the second display module is used for sending the game operation to a server for running the target game under the condition that the game operation belongs to the second preset type so as to obtain a game picture returned by the server and displaying the game picture, wherein the game picture is a game picture rendered by the server according to the game operation.
5. An electronic device comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the game screen display method of any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a program code, wherein the game screen display method according to any one of claims 1 to 3 is executed when the program code is executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110738746.2A CN113398581B (en) | 2021-06-30 | 2021-06-30 | Game picture display method, game picture display device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110738746.2A CN113398581B (en) | 2021-06-30 | 2021-06-30 | Game picture display method, game picture display device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113398581A CN113398581A (en) | 2021-09-17 |
CN113398581B true CN113398581B (en) | 2023-09-19 |
Family
ID=77680702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110738746.2A Active CN113398581B (en) | 2021-06-30 | 2021-06-30 | Game picture display method, game picture display device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113398581B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013064011A1 (en) * | 2011-11-02 | 2013-05-10 | 中国移动通信集团公司 | Method, system, and device for implementing cloud gaming |
CN110138769A (en) * | 2019-05-09 | 2019-08-16 | 深圳市腾讯网域计算机网络有限公司 | A kind of method and relevant apparatus of image transmitting |
CN111084983A (en) * | 2019-11-25 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Cloud game service method, device, equipment and storage medium |
CN112700519A (en) * | 2020-12-30 | 2021-04-23 | 广州方硅信息技术有限公司 | Animation display method and device, electronic equipment and computer readable storage medium |
CN112843680A (en) * | 2021-03-04 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Picture display method and device, terminal equipment and storage medium |
CN113018848A (en) * | 2021-03-09 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Game picture display method, related device, equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10848597B1 (en) * | 2019-04-30 | 2020-11-24 | Fake Production Oy | System and method for managing virtual reality session technical field |
-
2021
- 2021-06-30 CN CN202110738746.2A patent/CN113398581B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013064011A1 (en) * | 2011-11-02 | 2013-05-10 | 中国移动通信集团公司 | Method, system, and device for implementing cloud gaming |
CN110138769A (en) * | 2019-05-09 | 2019-08-16 | 深圳市腾讯网域计算机网络有限公司 | A kind of method and relevant apparatus of image transmitting |
CN111084983A (en) * | 2019-11-25 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Cloud game service method, device, equipment and storage medium |
CN112700519A (en) * | 2020-12-30 | 2021-04-23 | 广州方硅信息技术有限公司 | Animation display method and device, electronic equipment and computer readable storage medium |
CN112843680A (en) * | 2021-03-04 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Picture display method and device, terminal equipment and storage medium |
CN113018848A (en) * | 2021-03-09 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Game picture display method, related device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113398581A (en) | 2021-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111880870B (en) | Method and device for controlling electronic equipment and electronic equipment | |
CN107659416B (en) | Conference record sharing method and device, conference terminal and storage medium | |
CN105045823B (en) | A kind of generation method and device of the mobile terminal demonstration document based on screenshot | |
CN111679881B (en) | File processing method and device, computer equipment and storage medium | |
US20110287750A1 (en) | Link server and program thereof, website browsing system, website browsing method, and website browsing program | |
WO2016197590A1 (en) | Method and apparatus for providing screenshot service on terminal device and storage medium and device | |
EP4425313A1 (en) | Data exchange method and apparatus, electronic device, storage medium and program product | |
CN102833186B (en) | Method, device, system and terminal for information transmission | |
JP2015509633A (en) | Application display method and terminal | |
JP6482204B2 (en) | Information processing terminal, control method thereof, and program | |
CN115278139A (en) | Video processing method and device, electronic equipment and storage medium | |
US20150099492A1 (en) | Information processing apparatus that controls transfer of image, control method therefor, and storage medium | |
US11405434B2 (en) | Data sharing method providing reception status of shared data among receiving terminals, and communication system and recording medium therefor | |
CN113398581B (en) | Game picture display method, game picture display device, electronic equipment and readable storage medium | |
CN114860358B (en) | Object processing method and device, electronic equipment and storage medium | |
EP4398558A1 (en) | Display method and apparatus | |
WO2016061890A1 (en) | Resource sharing method, terminal, system and computer storage medium | |
CN115277670A (en) | Network connection control method and device of target application and electronic equipment | |
CN115576458A (en) | Application window display method, device, equipment and medium | |
CN113476836B (en) | Game picture display method, game picture display device, electronic equipment and readable storage medium | |
CN113398568B (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN113032205A (en) | Picture uploading method and device, storage medium and electronic equipment | |
CN111782100A (en) | Method, device, terminal and storage medium for previewing background picture | |
CN105992063A (en) | Webpage loading method and user equipment | |
CN114598916B (en) | Live broadcast room recovery method, device, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |