A game screen display processing method, device and computer readable storage medium
By copying and analyzing the game's drawing commands during gameplay, converting them to a standard format, and comparing them for anomalies, the problem of abnormal mobile game screen display was resolved, improving device display stability and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NUBIA TECHNOLOGY CO LTD
- Filing Date
- 2021-12-27
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, abnormal display of mobile game screens leads to a poor user experience, and it is difficult to quickly locate and resolve display problems, affecting the display stability of the device.
During gameplay, the drawing commands for each frame of the game screen are copied into memory, extracted, analyzed, and converted into a standard, displayable format. Anomalies in the screen are detected by a comparison algorithm, and screenshots and drawing commands are recorded when the difference exceeds a preset ratio.
It enables rapid identification and resolution of game screen display anomalies, saving development time and improving device display stability and user experience.
Smart Images

Figure CN114272615B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communications, and more particularly to a method, device, and computer-readable storage medium for processing game screen display. Background Technology
[0002] With the continuous development and popularization of smart terminal devices, mobile games are penetrating people's lives at an astonishing pace. When playing games on mobile phones, people have very high requirements for game graphics; unclear or abnormal game graphics severely impact the user's gaming experience.
[0003] For gaming phone manufacturers, obtaining rendering data of abnormal game screens at the time of the incident, and resolving such display issues in the first instance to improve the display stability of mobile phones and other devices, are urgent technical problems that need to be solved. Summary of the Invention
[0004] To address the aforementioned technical deficiencies in the prior art, this invention proposes a game screen display processing method, which includes:
[0005] During the initial gameplay, the drawing commands for each frame of the game screen are copied into memory.
[0006] The drawing commands in the memory are extracted and analyzed to obtain the drawing information of the game screen.
[0007] The drawing information is converted into a standard, universally displayed format using a comparison algorithm.
[0008] During subsequent gameplay, the shader format in the current drawing command is obtained and compared with the general format. If the difference is greater than a preset ratio, it is determined that the current game screen display is abnormal.
[0009] Optionally, the step of copying the drawing commands for each frame of the game screen to memory during the initial game process includes:
[0010] Determine the rendering library for the current system's game screen.
[0011] The drawing library contains pre-embedded analysis commands for real-time analysis of abnormal game screen displays.
[0012] Optionally, the step of copying the drawing commands for each frame of the game screen to memory during the initial game process further includes:
[0013] During the initial game process, the drawing commands for obtaining game screens from multiple sessions and scenes are obtained through the analysis commands.
[0014] The drawing commands are cached in the memory.
[0015] Optionally, the step of extracting and analyzing the drawing commands in the memory to obtain the drawing information of the game screen includes:
[0016] The drawing commands were analyzed, and a general shader format language was extracted.
[0017] The coordinate and color information of the drawing is obtained and recorded through the shader general format language, and the coordinate and color information are integrated into the drawing information and cached in the private directory corresponding to the current game.
[0018] Optionally, converting the drawing information into a standard, display-normal general format using a comparison algorithm includes:
[0019] Based on the rendering information, the general shader information for each frame of the game screen is obtained.
[0020] The comparison algorithm converts the general shader information into the general format.
[0021] Optionally, in subsequent gameplay, obtaining the shader format from the current drawing command and comparing it with the general format, if the difference is greater than a preset ratio, determines that the current game screen display is abnormal, including:
[0022] The difference between the shader format and the general format is obtained by comparison.
[0023] If the difference is less than the preset ratio, then the game screen display is determined to be normal.
[0024] Optionally, the step of obtaining the shader format in the current drawing command during subsequent gameplay and comparing it with the general format, and determining that the current game screen display is abnormal if the difference is greater than a preset ratio, further includes:
[0025] When the difference is greater than the preset ratio, it is determined that the current game screen display is abnormal.
[0026] Record the current screenshot of the game screen and the drawing commands for the game screen.
[0027] Optionally, in subsequent gameplay, the step of obtaining the shader format in the current drawing command and comparing it with the general format, and if the difference is greater than a preset ratio, determines that the current game screen display is abnormal, and then includes:
[0028] The screenshot is extracted and analyzed using the drawing commands.
[0029] Identify one or more of the following abnormalities in the screenshot: screen display with distorted image, black screen display, and noise display.
[0030] The present invention also proposes a game screen display processing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the game screen display processing method as described in any of the preceding claims.
[0031] The present invention also proposes a computer-readable storage medium storing a game screen display processing program, which, when executed by a processor, implements the steps of the game screen display processing method as described in any of the preceding claims.
[0032] The game screen display processing method, device, and computer-readable storage medium of this invention involve copying the drawing commands for each frame of the game screen to memory during the initial game process; extracting and analyzing the drawing commands in memory to obtain the drawing information of the game screen; converting the drawing information into a standard, display-normal general format using a comparison algorithm; and in subsequent game processes, obtaining the shader format in the current drawing command and comparing it with the general format. If the difference is greater than a preset ratio, the current game screen display is determined to be abnormal. This provides a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience. Attached Figure Description
[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0034] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0035] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;
[0036] Figure 3 This is a flowchart of the first embodiment of the game screen display processing method of the present invention;
[0037] Figure 4 This is a flowchart of the second embodiment of the game screen display processing method of the present invention;
[0038] Figure 5 This is a flowchart of the third embodiment of the game screen display processing method of the present invention;
[0039] Figure 6 This is a flowchart of the fourth embodiment of the game screen display processing method of the present invention;
[0040] Figure 7 This is a flowchart of the fifth embodiment of the game screen display processing method of the present invention;
[0041] Figure 8 This is a flowchart of the sixth embodiment of the game screen display processing method of the present invention;
[0042] Figure 9 This is a flowchart of the seventh embodiment of the game screen display processing method of the present invention;
[0043] Figure 10 This is a flowchart of the eighth embodiment of the game screen display processing method of the present invention. Detailed Implementation
[0044] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0045] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0046] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0047] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0048] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0049] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:
[0050] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0051] WiFi is a short-range wireless transmission technology. Mobile terminals using the WiFi module 102 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0052] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0053] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0054] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0055] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0056] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0057] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0058] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0059] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0060] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0061] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0062] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0063] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0064] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0065] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0066] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0067] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0068] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0069] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0070] Based on the aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0071] Example 1
[0072] Figure 3 This is a flowchart of the first embodiment of the game screen display processing method of the present invention. A game screen display processing method, the method comprising:
[0073] S1. During the initial game process, the drawing commands for each frame of the game screen are copied into memory.
[0074] S2. Extract and analyze the drawing commands in the memory to obtain the drawing information of the game screen.
[0075] S3. The drawing information is converted into a standard, universally displayed format using a comparison algorithm.
[0076] S4. In the subsequent game process, obtain the shader format in the current drawing command and compare it with the general format. If the difference is greater than the preset ratio, it is determined that the current game screen display is abnormal.
[0077] In this embodiment, considering the current need to detect game screen anomalies, specifically when a user suddenly notices screen glitches, black blocks, or noise in parts of the game screen during gameplay. These types of issues often appear briefly, and while the user may notice them immediately, they are often difficult to reproduce later. Even with log capture enabled on the development side, real-time log drawing and printing are cumbersome and performance-intensive, and real-time logs are not printed. Therefore, the log capture solution cannot provide a viable analysis and resolution solution.
[0078] In this solution, considering the aforementioned issues, the processing is handled at the framework level. Each game application submits drawing commands to the GPU (Graphics Processing Unit) for processing during rendering. Therefore, this embodiment saves the OpenGL language instructions common to the game when rendering each frame within the framework, because OpenGL instructions contain basic drawing operations for points, lines, surfaces, and images.
[0079] In this embodiment, considering that the basic drawing operations described above are all described by a common shader language, this embodiment caches the common shader code. The shader language contains all the data of the game screen, including the game's rendered images and coordinates. Since the common shader language is the same for normal game screens, if an error is found between the shader language of a frame and the common standard format, it can be considered an abnormal screen. At this time, a copy of the drawing commands for that frame is saved locally, and a screenshot of the current screen is also saved. This allows the user to upload it to the device manufacturer or for the device's R&D personnel to analyze the abnormal screen and drawing commands, thereby achieving the technical effect of quickly resolving this type of display problem.
[0080] In this embodiment, firstly, the rendering library, which is closely related to the rendering of each frame of the game within the mobile framework, undergoes special processing. Specifically, considering that Google has heavily promoted the Skia library for rendering processing in the latest Android version, and that only the Skia library can be used for rendering processing after Android R, this embodiment embeds a solution for real-time analysis of abnormal game visuals into the Skia library. Specifically, firstly, in the operation of each frame of rendering, the rendering commands for each frame are copied to a temporary memory location; optionally, considering that the rendering commands are just a piece of code, a string, the memory usage of the mobile phone is very low, and it will not affect the real-time rendering efficiency or the user's gaming experience. Then, the common shader format language is extracted from the copied rendering commands. For example, the same string should be used for drawing each point, line, surface, and image in the game. The coordinates and color information of the drawing are recorded, and each type of rendering information is cached in the game's private directory. After the analysis is completed, basically all the common information of the current screen will be recorded. Next, during game execution, this embodiment analyzes the general shader information of each frame in real time and uses a comparison algorithm to generate a standard, normally displayed general format. Optionally, in this embodiment, the comparison algorithm needs to comprehensively analyze multiple game sessions and multiple screens, especially the real-time game footage, which requires comprehensive processing across many sessions to generate a normally displayed standard general format. Finally, when the game is running and screen display issues such as distorted images, partial black screens, or noisy images occur, the shader format in the rendering commands for these images will have a significant mismatch with the general format. For example, if this error exceeds 30%, the current game screen is considered abnormal. At this point, the rendering commands for the current frame of the game can be saved locally in real time, along with a screenshot. Optionally, developers from the equipment manufacturer can obtain screenshots and rendering commands of the abnormal game screen to clearly understand the root cause of the current display problem. That is, it enables R&D personnel to analyze and solve this type of game screen display problem more quickly and accurately.
[0081] As can be seen, in this embodiment, the above-mentioned intelligent detection solution for abnormal game screens enables the R&D personnel of equipment manufacturers to solve game display abnormalities more quickly without having to focus on reproducing the problem, which greatly saves development time and improves development efficiency. At the same time, by quickly resolving game display problems discovered by users, the stability of the device and the user experience can be greatly improved.
[0082] The beneficial effects of this embodiment are as follows: During the initial game process, the drawing commands for each frame of the game screen are copied to memory; the drawing commands in memory are extracted and analyzed to obtain the drawing information of the game screen; the drawing information is converted into a standard, display-normal general format using a comparison algorithm; in subsequent game processes, the shader format in the current drawing command is obtained and compared with the general format; if the difference is greater than a preset ratio, the current game screen display is determined to be abnormal. This implements a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0083] Example 2
[0084] Figure 4 This is a flowchart of the second embodiment of the game screen display processing method of the present invention. Based on the above embodiment, the step of copying the drawing commands for drawing each frame of the game screen to memory during the initial game process includes:
[0085] S11. Determine the rendering library for the current system's game screen.
[0086] S12. Pre-embed analysis commands in the drawing library for real-time analysis of abnormal game screen display.
[0087] The beneficial effect of this embodiment is that by determining the rendering library of the current system's game screen and embedding analysis commands in the rendering library for real-time analysis of game screen display anomalies, a user-friendly game screen display processing solution is achieved, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0088] Example 3
[0089] Figure 5 This is a flowchart of the third embodiment of the game screen display processing method of the present invention. Based on the above embodiment, the step of copying the drawing commands for drawing each frame of the game screen to memory during the initial game process further includes:
[0090] S13. During the initial game process, the drawing command for obtaining the game screen of multiple sessions and multiple scenes through the analysis command.
[0091] S14. Cache the drawing command in the memory.
[0092] The beneficial effect of this embodiment is that, during the initial game process, the drawing commands for multiple game scenes and scenarios are obtained through the analysis commands; and these drawing commands are cached in memory. This achieves a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0093] Example 4
[0094] Figure 6 This is a flowchart of the fourth embodiment of the game screen display processing method of the present invention. Based on the above embodiment, the step of extracting and analyzing the drawing commands in the memory to obtain the drawing information of the game screen includes:
[0095] S21. Analyze the drawing commands and extract the shader general format language.
[0096] S22. Obtain and record the coordinate and color information of the drawing through the shader general format language, integrate the coordinate and color information into the drawing information, and cache it in the private directory corresponding to the current game.
[0097] The beneficial effects of this embodiment are that, by analyzing the drawing commands, a shader generic format language is extracted; the coordinate and color information of the drawing is obtained and recorded through the shader generic format language, and the coordinate and color information are integrated into the drawing information and cached in the private directory corresponding to the current game. This achieves a user-friendly game screen display processing solution, saves development time, improves development efficiency, enhances device display stability, and improves user experience.
[0098] Example 5
[0099] Figure 7 This is a flowchart of the fifth embodiment of the game screen display processing method of the present invention. Based on the above embodiment, the step of converting the drawing information into a standard, normally displayed general format through a comparison algorithm includes:
[0100] S31. Based on the drawing information, the general shader information of each frame of the game screen is obtained.
[0101] S32. The general shader information is converted into the general format by the comparison algorithm.
[0102] The beneficial effect of this embodiment is that it obtains the general shader information of each frame of the game screen through the analysis of the rendering information; and converts the general shader information into the general format through the comparison algorithm. This achieves a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0103] Example 6
[0104] Figure 8 This is a flowchart of the sixth embodiment of the game screen display processing method of the present invention. Based on the above embodiment, the step of obtaining the shader format in the current drawing command during subsequent game processing and comparing it with the general format, and determining that the current game screen display is abnormal if the difference is greater than a preset ratio, includes:
[0105] S41. Compare the shader format with the general format to obtain the difference.
[0106] S42. If the difference is less than the preset ratio, then the game screen display is determined to be normal.
[0107] The beneficial effect of this embodiment is that by comparing the difference between the shader format and the general format, and if the difference is less than the preset ratio, it is determined that the game screen display is normal. This achieves a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0108] Example 7
[0109] Figure 9 This is a flowchart of the seventh embodiment of the game screen display processing method of the present invention. Based on the above embodiment, the step of obtaining the shader format in the current drawing command during subsequent game processes and comparing it with the general format, and determining that the current game screen display is abnormal if the difference is greater than a preset ratio, further includes:
[0110] S43. When the difference is greater than the preset ratio, it is determined that the current game screen display is abnormal.
[0111] S44. Record the current screenshot of the game screen and the drawing command of the game screen.
[0112] The beneficial effect of this embodiment is that it determines the current game screen display is abnormal when the difference is greater than the preset ratio; it records the screenshot of the current game screen and the drawing command of the game screen. This achieves a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0113] Example 8
[0114] Figure 10 This is a flowchart of the eighth embodiment of the game screen display processing method of the present invention. Based on the above embodiment, in the subsequent game process, the shader format in the current drawing command is obtained and compared with the general format. If the difference is greater than a preset ratio, it is determined that the current game screen display is abnormal. The process then includes:
[0115] S51. Extract and analyze the screenshot using the drawing command.
[0116] S52. Determine one or more of the following in the screenshot: abnormal screen display, abnormal black screen display, and abnormal noise display.
[0117] The beneficial effect of this embodiment is that by combining the drawing command to extract and analyze the screenshot, it identifies one or more of the following abnormalities in the screenshot: screen tearing, black screen, and noise. This achieves a user-friendly game screen display processing solution, saving development time, improving development efficiency, enhancing device display stability, and improving the user experience.
[0118] Example 9
[0119] Based on the above embodiments, the present invention also proposes a game screen display processing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the game screen display processing method as described in any of the above embodiments.
[0120] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0121] Example 10
[0122] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a game screen display processing program, which, when executed by a processor, implements the steps of the game screen display processing method as described in any of the above embodiments.
[0123] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0124] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0125] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0126] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0127] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A game screen display processing method characterized by comprising: The method includes: During the initial game process, the drawing commands for each frame of the game screen are copied into memory; The drawing commands in the memory are extracted and analyzed to obtain the drawing information of the game screen; The drawing information is converted into a standard, universally displayed format using a comparison algorithm. During subsequent gameplay, the shader format in the current drawing command is obtained and compared with the general format. If the difference is greater than a preset ratio, it is determined that the current game screen display is abnormal. The process of copying the drawing commands for each frame of the game screen into memory during the initial game process includes: Determine the rendering library for the current system's game visuals; The drawing library contains pre-embedded analysis commands for real-time analysis of game screen display anomalies; During the initial game process, the drawing commands for multiple game scenes and scenarios are obtained through the analysis commands; The drawing commands are cached in the memory; The step of extracting and analyzing the drawing commands in the memory to obtain the drawing information of the game screen includes: The drawing commands were analyzed, and a general shader format language was extracted. The coordinate and color information of the drawing is obtained and recorded through the shader general format language, and the coordinate and color information is integrated into the drawing information and cached in the private directory corresponding to the current game. The step of converting the drawing information into a standard, displayable, and universal format through a comparison algorithm includes: Based on the rendering information, the general shader information for each frame of the game screen is obtained; The comparison algorithm is used to convert the general shader information into the general format; In subsequent gameplay, the shader format in the current drawing command is obtained and compared with the general format. If the difference is greater than a preset ratio, the current game screen display is determined to be abnormal, including: The difference between the shader format and the general format is obtained by comparison; If the difference is less than the preset ratio, then the game screen display is determined to be normal; When the difference is greater than the preset ratio, it is determined that the current game screen display is abnormal; Record the current screenshot of the game screen and the drawing commands for the game screen.
2. The game screen display processing method according to claim 1, characterized by, In subsequent gameplay, the shader format in the current drawing command is obtained and compared with the general format. If the difference is greater than a preset ratio, it is determined that the current game screen display is abnormal, followed by: The screenshot is extracted and analyzed using the drawing commands described above; Identify one or more of the following abnormalities in the screenshot: screen display with distorted image, black screen display, and noise display.
3. A game screen display processing apparatus characterized by comprising: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the game screen display processing method as described in claim 1 or 2.
4. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a game screen display processing program, and the game screen display processing program, when executed by the processor, implements the steps of the game screen display processing method according to claim 1 or 2.