Screen display method and device, electronic device, and computer program
By simulating main display virtual information to isolate instances, the method addresses performance bottlenecks and compatibility issues in multi-screen scenarios, enhancing display efficiency and reducing load on the main display.
Patent Information
- Application Number
- JP2024519701
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-01-19
- Filing Date
- 2022-12-23
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2042-12-23
AI Technical Summary
Existing screen display technologies in multi-screen scenarios, particularly in cloud gaming and cloud computing environments, face performance bottlenecks and compatibility issues due to the reliance on a single main display, leading to increased load and potential display abnormalities.
A method and apparatus that simulate main display virtual information to isolate and confuse target instances, allowing each instance to determine its display as the main display, thereby reducing the need for simultaneous rendering on a single display and avoiding performance bottlenecks.
This approach achieves load balancing and reduces display abnormalities by ensuring each instance displays on its designated display, improving performance and compatibility without overloading the main display.
Smart Images

Figure 2024538639000001_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority from a Chinese patent application bearing application number 202210060285.2, filed with the China Patent Office on January 19, 2022, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of computers, and more particularly to a screen display method and device, an electronic device, and a computer program. [Background technology]
[0003] As computer technology becomes more widespread, screen display technologies that support the concurrent display of multiple processes are rapidly developing. However, the multi-screen display in related technologies obviously relies on a main (also called primary) display device, and more specifically, such display technologies perform screen rendering in a parallel manner, but the final screen is all displayed on the main display device. This increases the load on the main display device, reducing the number of concurrent executions and potentially causing screen display abnormalities or failures. Summary of the Invention [Problem to be solved by the invention]
[0004] In order to solve at least one of the above technical problems, the embodiments of the present application aim to provide a screen display method and device, an electronic device, and a computer program that can reduce the abnormality rate in the process of a target instance sensing a display. [Means for solving the problem]
[0005] In some embodiments, embodiments of the present application provide a screen display method, the method being performed by an electronic device, the method comprising: Generate main display virtual information for simulating a main display when a display information acquisition request is received, the display information acquisition request being issued by a target instance (also referred to as a target instance), the target instance being any one of a plurality of instances, and the target display corresponding to the target instance being a main display or an auxiliary display; and The method includes feeding back the main display virtual information to the target instance, causing the target instance to determine a target display corresponding to the target instance as the main display, and displaying a rendered screen (also referred to as a rendered screen) on the target display.
[0006] In some embodiments, embodiments of the present application provide a screen display device, the device comprising: A simulation module configured to generate main display virtual information for simulating a main display when receiving a display information acquisition request, the display information acquisition request being issued by a target instance, the target instance being any one instance among a plurality of instances, and a target display corresponding to the target instance being a main display or an auxiliary display; and The system further includes a feedback module that configures the target instance to determine a target display corresponding to the target instance as the main display by feeding back the main display virtual information to the target instance, and to display a rendered screen on the target display.
[0007] In some embodiments, the embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium storing at least one instruction or at least one program, and the at least one instruction or at least one program being loaded and executed by a processor to realize the above-mentioned screen display method.
[0008] In some embodiments, an embodiment of the present application provides an electronic device, which includes at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the instructions stored in the memory to realize the above-mentioned screen display method.
[0009] In some embodiments, embodiments of the present application provide a computer program product, which includes computer programs or instructions that, when executed by a processor, implement the above-described screen display method. Effect of the Invention
[0010] In the embodiment of the present application, the main display virtual information is simulated and the main display virtual information is sent to the target instance, so that the target instance determines the target display corresponding to the target instance as the main display, and displays the rendered screen on the target display, thereby realizing the isolation between different displays or different instances. The target instance can only see its corresponding target display and cannot sense the existence of other displays, so as to avoid various abnormalities and operation failures that may occur when the target instance senses the existence of other displays, and break through the bottleneck of parallel performance. [Brief description of the drawings]
[0011] In order to more clearly describe the technical solutions and advantages in the embodiments of the present application or related technologies, the following briefly introduces the drawings that need to be used in the description of the embodiments or related technologies. It is obvious that the drawings in the following description are only some examples for describing the embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative labor. [Figure 1] 1 is a flowchart of a multi-screen display in the related art. [Diagram 2]FIG. 13 is a diagram illustrating a load distribution of screen parallel display in the related art. [Diagram 3] FIG. 2 is a diagram showing a possible implementation framework of the screen display method provided in the embodiment of the present application. [Figure 4] 4 is a flowchart of a screen display method provided in an embodiment of the present application. [Diagram 5] FIG. 2 illustrates a screen display provided in an embodiment of the present application. [Figure 6] FIG. 10 is a diagram showing a comparison of the effects of screen displays provided in the embodiments of the present application. [Figure 7] FIG. 1 illustrates load test data provided in the examples of the present application. [Figure 8] FIG. 2 is a diagram showing the logic of the screen display provided in an embodiment of the present application. [Figure 9] FIG. 2 is a block diagram of a screen display device provided in an embodiment of the present application. [Figure 10] FIG. 2 is a diagram showing a display isolation device accessed by a simulation module provided in an embodiment of the present application. [Figure 11] FIG. 2 is a diagram showing the hardware configuration of an apparatus for implementing the method provided in the embodiment of the present application. [Figure 12] FIG. 11 is a diagram showing the hardware configuration of another device for implementing the method provided in the embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings of the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and are not all of the embodiments. In addition, all other embodiments that a person skilled in the art can obtain based on the embodiments of the present application without any creative work also belong to the protection scope of the present application.
[0013] In addition, the terms "first", "second", etc. in the specification, claims, and drawings of this application are used to distinguish between similar objects, and are not intended to limit a particular order or context. As will be understood, the data used in this manner can be interchanged where appropriate, whereby the embodiments of the application described herein may be performed according to orders other than those illustrated or described herein. In addition, the terms "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or server comprising a series of steps or units is not limited to the steps or units explicitly listed, but may also include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.
[0014] In order to make clearer the objectives, technical solutions and advantages disclosed in the embodiments of the present application, the embodiments of the present application will be described in detail below in conjunction with the drawings and examples. It can be understood that the specific embodiments described herein are merely examples for interpreting the embodiments of the present application, and do not limit the embodiments of the present application.
[0015] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying a relative importance or amount (quantity) of the technical features indicated. Therefore, a feature defined by "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more than two. In order to facilitate understanding of the technical solutions and technical effects thereof in the embodiments of the present application, the relevant technical terms are first introduced as follows:
[0016] 1) Intelligent Traffic System (ITS) or Intelligent Transportation System: An integrated transportation system that ensures security, improves efficiency, improves the environment, and conserves energy by effectively and comprehensively applying advanced science and technology (information technology, computer technology, data communications technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) to transportation, service control, and vehicle manufacturing, and strengthens the three-way connection between vehicles, roads, and users.
[0017] 2) Intelligent Vehicle Infrastructure Cooperative Systems (IVICS (registered trademark)): Abbreviated as vehicle infrastructure cooperative systems, IVICS is one of the development directions of intelligent transportation systems. Vehicle infrastructure cooperative systems adopt advanced wireless communication and new generation Internet technologies to realize dynamic real-time information interaction between vehicles and between vehicles and roads in all directions, and perform vehicle-initiated security control and road cooperative management based on the collection and fusion of dynamic traffic information in all space and time, thereby fully realizing effective cooperation between people, vehicles and roads, ensuring traffic security and improving traffic efficiency, thereby forming a safe, efficient and environmentally friendly road transportation system.
[0018] 3) Cloud gaming: A gaming method based on cloud computing. In the cloud gaming execution mode, all games are executed on the server side, and the rendered game screen is compressed and then transmitted to the client via the network. The client's game device does not need a high-end processor or graphics card, and only needs basic video decompression capabilities to support the execution of the game.
[0019] 4) Application Programming Interface (API): A set of predefined functions whose purpose is to provide application programs and developers with the ability to access a set of routines based on software or hardware without needing to access the source code or understanding the details of the internal working mechanisms.
[0020] 5) Graphics card virtualization: A scheme that provides one graphics card for use by multiple virtual machines (VMs) through corresponding technologies. The technologies are divided into two methods, namely hardware and software implementations, among which, hardware implementations of graphics card virtualization usually require technical support from graphics card manufacturers.
[0021] 6) Virtual Machine (VM): A complete computer system that is simulated by software, has the functionality of a complete hardware system, and runs in a completely isolated environment. VMs must run on a virtualization platform and are also called Guest machines.
[0022] 7) Container: Container technology effectively divides the resources of a single operating system into isolated groups to better balance conflicting resource usage needs among the isolated groups, and such technology is the container.
[0023] 8) Graphics Processing Unit (GPU): Also called a display core, visual processor, display chip, etc., it is a microprocessor specialized for image and graphics-related computation in personal computers, workstations, game consoles, and some mobile devices (e.g., tablet computers, smartphones, etc.). In an embodiment of the present application, the GPU can be a graphics card.
[0024] 9) Peripheral Component Interconnect Express (PCIe): A high-speed serial computer expansion bus standard. PCIe belongs to high-speed serial point-to-point dual channel high-bandwidth transmission, and connected devices are assigned exclusive (dedicated) channel bandwidth and do not share the bus bandwidth. It mainly supports functions such as active power management, error reporting, end-to-end high reliability transmission, hot swapping, and service quality assurance.
[0025] 10) Frames Per Second (FPS): FPS is an imaging definition that refers to the number of frames per second, or more generally, the number of screens in an animation or video. FPS is a measure of the amount of information used to store and display dynamic video. The more frames per second, the smoother the action displayed. Typically, 30 is the minimum to avoid jerky motion. Some computer video formats can only provide 15 frames per second.
[0026] 11) RGBA color space: A color space representing Red, Green, Blue and Alpha.
[0027] 12) Instance: In object-oriented program design, after a class is instantiated, it is called an instance. A class is static and does not occupy process memory, but an instance has dynamic memory. In a database, it refers to a database program that represents a collection of several programs and can support database operations.
[0028] Related art has proposed a number of schemes for performing screen display. Of course, the embodiments of the present application are not limited to application scenarios of screen display, and screen display can be performed in scenarios such as cloud gaming, cloud community, cloud e-commerce, and intelligent driving. Take cloud gaming as an example, cloud gaming is a gaming method based on cloud computing, and under the execution mode of cloud gaming, all games are executed on the server side, and the game screen after rendering is compressed and then transmitted to the client via a network. The electronic device that executes the client does not require a high-end processor or a graphics card, and can support the execution of the game with only basic video decompression and compression capabilities.
[0029] In a cloud gaming scenario, the server side can run one game instance through one operating system, and each game instance can correspond to one client, and the server side runs the game instance, compresses the displayed screen and transmits it to the client, and the client can decompress it to display the screen. Note that the embodiments of the present application are not limited to the game instance.
[0030] The embodiments of the present application may further be implemented based on virtual machine technology, and on the server side, one operating system can run one virtualized application, and each virtualized application can correspond to one client. The virtualized application is executed on the server side, and the displayed screen of the virtualized application is compressed and transmitted to the client, so that the client can decompress it to display the screen.
[0031] In some embodiments, under a cloud gaming scenario, multiple graphics cards may be further configured for one operating system on the server side to execute multi-game instances. The requirements for the cloud gaming execution environment are as follows: under a multi-graphics card system, each graphics card needs to be connected to one display, that is, the graphics card needs to establish one-to-one mapping with the display. The server usually provides a graphics card connected to a virtual display in a virtualization or simulation manner. Please refer to FIG. 1, which is a flowchart of multi-screen display in the related art.
[0032] In step 01, a cloud game is executed.
[0033] In step 02, the game engine of the cloud game enumerates information of a main display, specifically, the information of the display may be macroscopic quantity information of the display.
[0034] In step 03, information on each display device is obtained. Specifically, when the macroscopic quantity information is obtained, each display device in the server environment is obtained. These display devices may be physical display devices (real display devices) or virtual display devices.
[0035] In step 04, the position of the game window is set to the main display.
[0036] In step 05, the rendered screen is displayed in the game window.
[0037] After setting the position of the game window on the main display in step 04, calculation and rendering of the game screen are started, and the game screen is output to the above-mentioned window. Each game instance may correspond to one display (which may be either the main display or the auxiliary display, and the auxiliary display is a non-main display), and the graphic card corresponding to the display performs related calculation and rendering of the game screen, and displays the rendering result in the game window of the main display.
[0038] As can be seen from the above description of the screen display technology of cloud games, in the parallel scenario of multi-graphics card and multi-game instances, the cloud game server may bring about the following technical problems due to various interaction operations during the game:
[0039] First, there are problems of performance and cost. Since multiple game instances all set their windows to the position of the main display and the final game screen is output to the same display, the PCIe of the GPU connected to the main display may enter a bottleneck state, causing display performance problems, or the theoretical number of games that can be executed simultaneously is relatively low, resulting in an increase in the cost of running the game. Referring to FIG. 2, FIG. 2 is a diagram showing the load distribution of screen parallel display in the related art. GPU0, GPU1, GPU2, and GPUN are graphic cards, among which GPU0 is the graphic card corresponding to the main display. Each graphic card can provide calculation and screen rendering services for its corresponding game instance, but the final rendered screen can only be displayed in the window on the main display corresponding to GPU0, so the load of GPU0 is high. For example, if a game instance requires a resolution of 1920*1080, a frame rate of 60 FPS, and a size of RGBA graphics data of 1920*1080*4*60 / (1024*1024)=475 megabytes (MB), and the theoretical transmission speed of PCIe Gen3x16 is 16 thousand megabytes per second (GB / s), the theoretical number of concurrent executions that can be realized based on the above settings is about 30, which is severely limited.
[0040] In addition, there may be compatibility issues, such as some games not being able to start, window positions being abnormal, etc. In addition, there are differences in behavior and expression in different game instances.
[0041] In order to solve the above-mentioned problems of performance, cost and compatibility, an embodiment of the present application provides a screen display method, which can realize thorough isolation between graphics cards and between instances, and can not only realize parallelism at the level of screen rendering, but also realize separation on screen display, thereby avoiding the display of multiple screens on the same main display device, and not only breaking through performance bottlenecks and limitations on the number of concurrent executions, but also avoiding the emergence of compatibility problems.
[0042] The embodiments of the present application may involve cloud technology. Cloud technology refers to a hosting technology that realizes data calculation, storage, processing and sharing by integrating a series of resources such as hardware, software, and network in a wide area network or a local area network. Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the application of cloud computing commercial model, which forms a resource pool and can be used as needed, flexible and convenient. Cloud computing technology is expected to become an important support. The background service of technical network system requires a large amount of calculation and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item will have its own identifier and will need to be transmitted to the background system for logic processing, and data of different degrees and levels will be divided and processed, and data of each industry will require powerful system support, which must be realized by cloud computing.
[0043] The embodiments of the present application can be applied to various cloud applications provided based on cloud technology, such as medical clouds. Medical cloud refers to a medical health service cloud platform that uses "cloud computing" based on new technologies such as cloud computing, mobile technology, multimedia data, 4G communication, big data, and IoT in combination with medical technology, thereby realizing the sharing of medical resources and the expansion of medical coverage. By applying and combining cloud computing technology, the medical cloud can improve the service efficiency of medical institutions and make medical care convenient for residents. For example, hospital reservation registration, medical insurance accounting, etc. are all combinations of cloud computing and the medical field, and the medical cloud also has advantages such as data security, information sharing, dynamic expansion, and global layout.
[0044] Please refer to FIG. 3, which is a diagram showing a possible implementation framework of the screen display method provided in the embodiment of the present application. As shown in FIG. 3, the implementation framework may include at least a terminal device 01 and a screen display server 02. Wherein, the terminal device 01 may be an electronic device on the Internet, and can provide various Internet-based services for users, which are provided by the client in the embodiment of the present application. The terminal device 01 may include various types of user terminals, such as, but not limited to, notebook computers, tablet computers, desktop computers, set-top boxes, mobile devices, and in-vehicle terminals (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable game consoles). The client in the embodiment of the present application can provide applications in various scenarios, such as, but not limited to, cloud technology, cloud gaming, cloud rendering, artificial intelligence, intelligent transportation, driving assistance (assistance), video media, intelligent community, instant communication, etc.
[0045] The screen display server 02 provides services to the user by interacting with the terminal device 01. Specifically, the terminal device 01 can request a screen from the screen display server 02. In this case, the target instance corresponding to the terminal device 01 and executed on the screen display server 02 can issue a display information acquisition request. When the display information acquisition request is received, the screen display server 02 generates main display virtual information by simulation, and the display information acquisition request is issued by the target instance corresponding to the target display, and the target display is a main display or an auxiliary display. The main display virtual information is fed back to the target instance, so that the target instance determines the target display as the main display and displays the rendered screen on the target display. The target instance compresses the displayed screen and transmits it to the terminal device, so that the terminal device can display the screen in a decompressed manner. In this way, the client does not need to have screen calculation or screen rendering capabilities, but only needs basic decompression capabilities.
[0046] The screen display method in the embodiment of the present application is introduced below. The information in the embodiment of the present application can be information authorized by the user or fully authorized by each party.
[0047] FIG. 4 is a flowchart of a screen display method provided in an embodiment of the present application. In the embodiment of the present application, the operation steps of the method as shown in the embodiment or the flowchart are provided, but more or less operation steps may be included based on the work without common sense or creativity. The order of steps listed in the embodiment is only one way of performing the steps, and does not represent the only execution order. When executed by an actual system, terminal device, or server product, it may be executed according to the order of the method shown in the embodiment or the drawings, or may be executed in parallel (for example, in a parallel processor or multi-processing environment). The above-mentioned method may include the following steps:
[0048] In step S101, main display virtual information for simulating a main display is generated when a display information acquisition request is received, where the display information acquisition request is issued by a target instance, the target instance is any one instance among multiple instances, and the target display corresponding to the target instance is a main display or an auxiliary display.
[0049] As an example, when a display information acquisition request is received, main display virtual information is generated by simulation, and the above-mentioned display information acquisition request is issued by a target instance corresponding to a target display, and the above-mentioned target display is a main display or a non-main display.
[0050] Under a multi-instance scenario, each instance may be assigned one graphics card and have the corresponding graphics card perform its associated calculation or screen rendering. By assigning each instance its corresponding graphics card resource, the calculation or screen rendering of each instance is executed in parallel independently and does not affect each other. The premise for each graphics card to perform calculation or screen rendering is to associate its corresponding display with it. In the embodiment of the present application, the display associated with the graphics card is not limited, and it may be a physical display or a virtual display. In the embodiment of the present application, the target instance may be any one instance executed on the server. Speaking of a target instance, the server can assign it its suitable target graphics card and target display, and the target display may be a main display or an auxiliary display. For example, a server is configured with four graphics cards A, B, C, and D, which correspond to four displays A1, B1, C1, and D1, respectively, of which A1 is the main display and B1, C1, and D1 are auxiliary displays. If graphics card B can be associated with instance B-10 and instance B-10 is the target instance, then the target display is B1, which is obviously the auxiliary display. If graphics card A can be associated with instance A-10 and instance A-10 is the target instance, then the target display is A1, which is obviously the main display.
[0051] A target instance can communicate with its corresponding client, and in response to a client sending a screen request to its corresponding target instance, the target instance corresponding to the client issues a get display information request to the screen display server.
[0052] In some embodiments, the display information acquisition request includes a display quantity acquisition request, and the main display virtual information includes a display quantity or a main display identification (ID) feature. Generating the main display virtual information for simulating the main display when the display information acquisition request is received may be realized by the following technical solution: when a display quantity acquisition request is received, the display quantity or the main display identification feature is obtained from the display isolation device, wherein the display quantity is the display quantity that needs to be fed back in the case of the first target, and in the case of the first target, a screen corresponding to the target instance is displayed on the main display, and the main display identification feature is used to indicate that the target display is the main display.
[0053] As an example, when the above-mentioned display quantity acquisition request is received, the display isolation device is accessed to obtain the above-mentioned display quantity or the above-mentioned main display indicator feature output from the above-mentioned display isolation device, and the above-mentioned display isolation device is used to output the display quantity that needs to be fed back when displaying a screen corresponding to the above-mentioned target instance on the main display, or to output the main display indicator feature to indicate that the above-mentioned target display is the main display.
[0054] For example, the display isolation device should have the following key capabilities: when obtaining the total number of displays, in reality, only one should be returned each time, and there is no need to query the data of the displays. Of course, in the actual case, the number of displays may be greater than 1, which depends on the real number of graphic cards and displays in the server environment. When obtaining the judgment information representing whether the current display is the main display, only the judgment information representing that the current display is the main display is returned, and the judgment information is the indicator characteristic of the main server, so the target instance may mistakenly recognize the display corresponding to the indicator characteristic of the main server as the main display.
[0055] In some embodiments, the above-mentioned case of transmitting a screen corresponding to the target instance to the main display includes a case where a screen corresponding to the target instance is transmitted to the main display and the main display is the only display, where the target instance mistakenly believes that there is only one display in the server environment and this display is the main display.
[0056] In the embodiment of the present application, there is no limitation on the number of indicators or the main indicator characteristic indicators fed back, and it is sufficient that the objective of confusing the target instance can be achieved by the number of indicators or the main indicator characteristic indicators generated by simulation. If the target instance can be confused so that it mistakenly believes that its corresponding target indicator is the main indicator, the purpose of confusion can be achieved. For example, when the number of indicators fed back is 1, and the main indicator indicator characteristic indicates that the indicator currently associated with the target instance is the main indicator, the target instance can consider that there is only one indicator in the current server environment, and this indicator is the main indicator, and since the target instance knows that the target indicator exists in the current server environment, the target instance can naturally consider that the target indicator is the main indicator, thus achieving the purpose of confusion.
[0057] In some embodiments, the display information acquisition request includes a main display position characteristic request, and the main display virtual information includes the main display position characteristic. Generating the main display virtual information for simulating the main display when the above-mentioned display information acquisition request is received may be realized by the following technical solution: when the main display position characteristic request is received, the main display position characteristic is obtained from the display isolation device, in which the display isolation device is used to determine the main display position characteristic that needs to be fed back in the case of the second target, and in the case of the second target, a screen corresponding to the target instance is transmitted to the main display.
[0058] As an example, when the above-mentioned main display position characteristic request is received, a display isolation device is accessed to obtain the main display position characteristic output from the above-mentioned display isolation device, and the above-mentioned display isolation device is used to determine the above-mentioned main display position characteristic that needs to be fed back when transmitting a screen corresponding to the above-mentioned target instance to the main display.
[0059] Specifically, when a screen corresponding to the above-mentioned target instance is transmitted to the main display, the screen corresponding to the target instance is transmitted to the main display, and the main display is the only display, which corresponds to the target instance mistakingly believing that there is only one display in the server environment and that this display is the main display.
[0060] In the embodiment of the present application, the main display position characteristic is not limited, and the target instance can be confused by the simulated main display position characteristic. The confusion purpose can be achieved by confusing the target instance so that it can consider its corresponding target display as the main display. For example, if the main display position characteristic fed back is the position of the main display when there is only one main display in the server environment and no other display, the target instance can consider that there is only one display in the current server environment, and this display is the main display, and when the target instance knows that the target display exists in the current server environment, the target instance can naturally consider that the target display is the main display, thereby achieving the confusion purpose.
[0061] In the above two embodiments, the main display mark is simulated, the position is simulated, and the number of displays is simulated, but of course, other confusion methods may be adopted in the embodiments of the present application, which depend on the specific information about the main display that the target instance needs to obtain. In the embodiments of the present application, the purpose of confusion can be achieved by simulating the main display virtual information, so that the target instance can mistakenly believe that there is only one display in the server environment and that this display is the main display.
[0062] Taking cloud gaming as an example, cloud gaming usually obtains display information through the following steps:
[0063] First, obtain the display quantity, for example, the target game instance can obtain the display quantity through an application program interface, for example, the application program interface here can be "computer-only visible display function (GetSystemMetrics(SM_CMONITORS))" and "multi-display function (EnumDisplayMonitors / EnumDisplayDevices)". In this case, the API can be hijacked to intercept the call of the API and access the display isolation device to obtain the display quantity, and only one is actually returned each time, so that the target instance cannot obtain the relevant data of the display in the real server environment, thereby achieving the purpose of confusion.
[0064] Then, after obtaining the display quantity, the target game instance may use the API: EnumDisplaySetting to obtain display information. In this case, the API can be intercepted and then communicated with the display isolation device to obtain corresponding information, such as whether it is the main display, coordinates, resolution, etc. The isolation device can virtualize the coordinates of each display as (0,0), and also virtualize each display as the main display. In practice, the display information in the server is not enumerated.
[0065] In the embodiment of the present application, the display isolation device in a cloud gaming scenario needs to have the following key capabilities:
[0066] When cloud gaming gets the total number of displays, it actually only needs to return one each time, and does not query the data of the displays. Of course, in the actual case, the number of displays in the server environment may be greater than 1, which depends on the real number of graphics cards and displays in the server environment.
[0067] When the cloud game gets whether the current display is the main display, it only informs it that it is the main display, i.e., by feeding back the marking characteristics of the main server, it makes it mistakenly recognize its corresponding display as the main display.
[0068] When the cloud game gets the current display coordinate information, it informs it that the coordinate information is (0,0), and the true coordinate information is not (0,0).
[0069] Of course, all other related main display characteristics can be simulated according to need to achieve the purpose of confusing the target instance.
[0070] By performing the above steps, the target instance can only see the display of the graphics card it runs on, and considers it to be the main display, and has no idea that there are other displays in the current server environment, so it will not interact with other displays, thus achieving strict isolation between displays in a way that confuses the target instance.
[0071] In step S102, the main display virtual information is fed back to the target instance, so that the target instance determines the target display corresponding to the target instance as the main display, and displays the rendered screen on the target display.
[0072] For example, by feeding back the above-mentioned main display virtual information to the above-mentioned target instance, the above-mentioned target instance determines the above-mentioned target display as the above-mentioned main display, and displays the rendered screen on the above-mentioned target display.
[0073] The target instance can send rendered data only to the main display and trigger the main display to display its rendered screen, and the target instance can mistakenly recognize its corresponding target display as the main display; in this way, the target instance can only display rendered screens on the target display, and these screens will never be transmitted to the true main display for display, thereby achieving complete isolation of displays.
[0074] In a cloud gaming scenario, the server can inform a target instance running therein that there is only one display and that it is the main display, and can also inform the target instance of its location, attribute information, etc., thereby confusing the target instance and causing it to mistakenly believe that the target display associated with it is the main display, and thus send it a rendered screen.
[0075] Refer to FIG. 5, which is a diagram showing a screen display in an embodiment of the present application, in which GPU0, GPU1, GPU2, and GPUN represent each graphic card, and each graphic card has a corresponding display, in which Primary display is the main display, and the others are auxiliary displays. Whether the main display or the auxiliary display, the corresponding instance may be confused when performing the method in the embodiment of the present application when displaying a screen, and may misunderstand that the display corresponding to the instance is the only main display and there are no other displays, so that the rendered screen is displayed on the display corresponding to the instance, and does not need to be transmitted to the true main display for display as in FIG. 2, so that the load balance can be achieved and the load of the true main display can be avoided from being too high. As can be seen by comparing FIG. 2 and FIG. 5, there is a difference in display effect between the embodiment of the present application and the related technology. The game instance executed on each GPU is related only to the virtual display connected to the current GPU, and each GPU can be completely independent of the virtual display, without the problem of the PCIe load on the GPU connected to the main display becoming too heavy.
[0076] In the embodiment of the present application, the target instance performs screen rendering on the target graphic card corresponding to the target display, and displays the rendered screen on the display determined based on the main display virtual information. In the embodiment of the present application, since the display determined based on the main display virtual information is the target display associated with the target instance, after the graphic card associated with the target instance performs screen calculation and rendering, the screen can be directly displayed on the target display associated therewith, and there is no need to transmit the screen to the true main display for display. This can improve the display speed and isolate the display screen, and reduce the load on the true main display.
[0077] Specifically, the target instance determining its corresponding target display as the main display in step S102 actually means that the target instance determines the target display as the main display based on the main display virtual information, and the displaying the rendered screen on the target display in step S102 actually means that the target instance sets a window position corresponding to the screen in the target display and transmits the screen to the window position of the target display.
[0078] Refer to FIG. 6, which is a diagram showing the comparison of screen display effects. In FIG. 6, the upper diagram shows the screen display effect in the related art. As is clear, the screens corresponding to each example are all displayed on the main display, and the screens can be rendered in parallel by each graphic card, but ultimately they all need to be transmitted to the window on the main display and displayed. This places a heavy load on the PCIe bandwidth connected to the main display. Refer to FIG. 7, which is a diagram showing load test data. FIG. 7 shows one test data of the PCIe 3.0x8 version, in which the theoretical PCIe bidirectional bandwidth is 8GB / s, and in reality, the maximum is 6GB / s, and the current occupancy reaches more than 5GB / s, which fully explains the bottleneck phenomenon of the related technology on bandwidth occupancy.
[0079] The bottom diagram in FIG. 6 illustrates the screen display effect in the embodiment of the present application. As can be seen, the screen obtained by rendering each instance is displayed on the display corresponding to the instance, and each screen does not need to be transmitted to the main display for display. Isolation between displays is realized. Specifically, this is the thorough isolation between graphic cards and graphic cards under a multi-graphics card-multi-display scenario, and between different instances corresponding to different clients in different clients or servers, which is achieved based on the principle of implementing a virtual display in the embodiment of the present application.
[0080] Please refer to FIG. 8, which is a diagram showing the logic of screen display in an embodiment of the present application.
[0081] In step 11, cloud gaming is performed.
[0082] In step 12, the display information is enumerated.
[0083] In step 13, the display isolation device is accessed.
[0084] In step 14, the display isolation device outputs the main display virtual information.
[0085] In step 15, the target display is determined as the main display based on the main display virtual information, and the window position is set on the main display.
[0086] In step 16, the rendered screen is displayed at the window position.
[0087] Before displaying a screen, a display information acquisition request can be obtained, and after intercepting the request, a display isolation device can be accessed, and display information can be returned based on the access result, which can confuse a target instance, causing the target instance to mistakenly recognize the corresponding target display as a main display, set a window position on the target display, and display the rendered screen at the window position of the target display. Furthermore, the displayed screen can be compressed and transmitted to a client, so that the client can display the screen.
[0088] In the embodiment of the present application, a screen display scheme is provided, which simulates the main display virtual information to confuse the target instance, so that the target instance can determine the corresponding target display as the main display, and display the rendered screen on the target display, thereby realizing the isolation between different displays and different instances. Specifically, this scheme allows the target instance to only see its corresponding target display, and cannot sense the existence of other displays, so as to avoid various problems such as abnormalities and operation failures that may occur when the target instance senses the existence of other displays, and break through the bottleneck of parallel performance.
[0089] Taking cloud gaming as an example, the embodiments of the present application can achieve thorough isolation of the display, and when the data output from the game reaches the display, the data only passes through its own PCIe, so that the bottleneck problem of the PCIe bandwidth of a certain graphics card is not caused, and high performance and high concurrency can be ensured. In the cloud gaming environment, the game is executed locally, which has good compatibility and can support more games. Of course, the embodiments of the present application are not limited to the application scenario, and can be applied not only to the cloud gaming scenario, but also to the multi-graphics card multi-display scenario of the conventional gaming method. The embodiments of the present application are not limited to the operating system, and can support not only the Windows operating system, but also the Linux operating system or other multi-graphics card multi-display platforms.
[0090] Please refer to FIG. 9, which is a block diagram of a screen display device in this embodiment, which includes:
[0091] A simulation module 101 is configured to generate main display virtual information for simulating a main display when a display information acquisition request is received, the display information acquisition request being issued by a target instance, the target instance being any one instance among a plurality of instances, and the target display corresponding to the target instance being a main display or an auxiliary display; and Feedback module 102: configured to feed back main display virtual information to a target instance, causing the target instance to determine its corresponding target display as the main display and to display the rendered screen on the target display.
[0092] In some embodiments, the display information acquisition request includes a display quantity acquisition request, the main display virtual information includes a display quantity or a main display mark feature, and the simulation module is configured to perform the following operation: when receiving a display quantity acquisition request, obtain the display quantity or the main display mark feature from the display isolation device, in which the display quantity is the display quantity that needs to be fed back in the case of the first target, and in the case of the first target, a screen corresponding to the target instance is displayed on the main display, and the main display mark feature is used to indicate that the target display is the main display.
[0093] In some embodiments, the display information acquisition request includes a main display position characteristic request, and the main display virtual information includes the main display position characteristic, and the simulation module is configured to perform the following operation: when receiving the main display position characteristic request, obtain the main display position characteristic from the display isolation device, in which the display isolation device is used to determine the main display position characteristic that needs to be fed back in the case of the second target, and in the case of the second target, transmit a screen corresponding to the target instance to the main display.
[0094] 10, which is a diagram showing a display isolation device accessed by a simulation module. It includes a main display feature simulation module 100 and a display position information simulation module 200. Wherein, the main display feature simulation module 100 is configured to output a display quantity or a main display sign feature. The display position information simulation module 200 is configured to output a main display position feature.
[0095] In some embodiments, transmitting a screen corresponding to the target instance to the main display includes transmitting a screen corresponding to the target instance to the main display and the main display is the only display.
[0096] In some embodiments, the target instance is used to perform screen rendering on a target graphics card corresponding to a target display, and to display the rendered screen on a display determined based on the main display virtual information.
[0097] In some embodiments, the target instance is further configured to perform the following operations: the target instance determines the target display as a main display based on the main display virtual information; and sets a window position corresponding to the screen on the target display, and transmits the screen to the window position of the target display.
[0098] Since the apparatus embodiment of the present application is based on the same technical concept as the method embodiment, a detailed description thereof will be omitted here.
[0099] In an embodiment of the present application, a computer program product or a computer program is further provided, the computer program product or the computer program includes computer instructions, the computer instructions being stored in a computer-readable storage medium, a processor of a 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 screen display method.
[0100] An embodiment of the present application further provides a computer-readable storage medium, which can store a number of instructions, which can be loaded by a processor to execute the screen display method in the embodiment of the present application.
[0101] In some embodiments, the screen display method includes generating main display virtual information for simulating a main display when a display information acquisition request is received, the display information acquisition request being issued by a target instance, the target instance being any one instance among a plurality of instances, and the target display corresponding to the target instance being the main display or the auxiliary display; and feeding back the main display virtual information to the target instance, so that the target instance determines the target display corresponding to the target instance as the main display, and causes the target display to display the rendered screen.
[0102] In some embodiments, the display information acquisition request includes a display quantity acquisition request, and the main display virtual information includes a display quantity or a main display mark feature, and generating main display virtual information for simulating the main display when the display information acquisition request is received includes obtaining the display quantity or the main display mark feature from the display isolation device when the display quantity acquisition request is received, in which the display quantity is the display quantity that needs to be fed back in the case of the first target, and in the case of the first target, a screen corresponding to the target instance is displayed on the main display, and the main display mark feature is used to indicate that the target display is the main display.
[0103] In some embodiments, the display information acquisition request includes a main display position characteristic request, and the main display virtual information includes the main display position characteristic, and when the display information acquisition request is received, generating main display virtual information for simulating the main display includes obtaining the main display position characteristic from a display isolation device when the main display position characteristic request is received, in which the display isolation device is used to determine the main display position characteristic that needs to be fed back in the case of a second target, and in the case of the second target, transmitting a screen corresponding to the target instance to the main display.
[0104] In some embodiments, transmitting a screen corresponding to the target instance to the main display includes transmitting a screen corresponding to the target instance to the main display and the main display is the only display.
[0105] In some embodiments, prior to displaying the rendered screen on the target display, the method further includes the target instance rendering the screen on a target graphics card corresponding to the target display.
[0106] In some embodiments, the target instance determining a target display corresponding to the target instance as a main display includes the target instance determining the target display as the main display based on the main display virtual information, and displaying the rendered screen on the target display includes setting a window position corresponding to the screen on the target display and transmitting the screen to the window position of the target display.
[0107] In some embodiments, FIG. 11 is a diagram showing a hardware configuration of an apparatus (electronic device) for implementing the method provided in the embodiments of the present application. The apparatus may participate in or include the configuration of the apparatus or system provided in the embodiments of the present application. As shown in FIG. 11, the apparatus 10 may include one or more (indicated as 102a, 102b, ..., 102n in the figure) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for performing communication functions. In addition, the apparatus 10 may further include a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power source, and / or a camera. As can be understood by those skilled in the art, the configuration shown in FIG. 11 is merely an example and is not a limitation on the configuration of the electronic device. For example, device 10 may further include more or fewer components than those shown in FIG. 11, or may have a different arrangement than that shown in FIG.
[0108] It should be noted that the one or more processors 102 and / or other data processing circuits may be generally referred to herein as "data processing circuitry." The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination. Also, the data processing circuitry may be an independent processing module, or may be combined in whole or in part with any one of the other elements in the device 10 (or mobile device). In an embodiment of the present application, the data processing circuitry functions as a processor control (e.g., selection of variable resistance terminal paths connected to an interface).
[0109] The memory 104 is used to store software programs and modules of application software, for example, a storage device of program instructions / data corresponding to the methods in the embodiments of the present application, and the processor 102 executes the software programs and modules stored in the memory 104 to perform various functions and data processing to realize the screen display method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some embodiments, the memory 104 may further include a memory located remotely from the processor 102, and these remote memory devices may be connected to the device 10 via a network. Examples of networks include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.
[0110] The transmitting device 106 may be used to receive or transmit data via a network. An example of the network may include a wireless network provided by the communication provider of the device 10. In one example, the transmitting device 106 includes a network interface controller (NIC) that can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmitting device 106 may be a radio frequency (RF) module that can be used to communicate with the Internet in a wireless manner.
[0111] The display may be, for example, a touch sensitive liquid crystal display (LCD) that allows a user to interact with a user interface of device 10 (or a mobile device).
[0112] FIG. 12 is a block diagram of another electronic device according to an embodiment of the present application. For example, the electronic device 1900 can be provided as a server. As shown in FIG. 12, the electronic device 1900 includes a processing assembly 1922, which includes one or more processors, and further includes a storage resource 1932, which is used to store instructions that can be executed by the processing assembly 1922, such as an application program. The application program stored in the storage 1932 may include one or more modules, each corresponding to a set of instructions. Also, the processing assembly 1922 is configured to execute the instructions to realize a method.
[0113] The electronic device 1900 further includes a power assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 includes an operating system, such as Windows Server 2008 R2, stored in a memory 1932.TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM It can operate based on the above.
[0114] In an exemplary embodiment, a non-volatile computer readable storage medium is further provided, such as a memory 1932 containing computer program instructions that can be executed by the processing assembly 1922 of the electronic device 1900 to implement a method.
[0115] It should be noted that the order of the embodiments of this application is for illustrative purposes only and does not represent the superiority or inferiority of the embodiments. Also, although certain embodiments of the embodiments of this application have been described, other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims may be performed in an order different from that in the embodiments and still achieve desirable results. The processes depicted in the figures do not necessarily have to be performed in the particular order or sequential order shown to obtain desirable results. In some implementations, multitasking and parallel processing may also be possible or advantageous.
[0116] Each embodiment in the embodiments of the present application is described in a stepwise manner, and the same or similar parts between each embodiment can be referred to each other, and the main description in each embodiment is about the differences from other embodiments. In particular, as for the device and server embodiments, they are almost similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the corresponding description in the method embodiments.
[0117] As can be understood by those skilled in the art, all or part of the steps of the embodiments may be realized by hardware, or may be realized by instructing related hardware by a program. The program may be stored in a computer-readable storage medium, and the storage medium may be, for example, a read-only memory, a magnetic disk, or an optical disk.
[0118] Although the preferred embodiment of the present application has been described above, the present application is not limited to this embodiment, and any modification to the present application falls within the technical scope of the present application as long as it does not depart from the spirit of the present application.
Claims
1. A method for displaying a screen, executed by an electronic device, comprising: generating main display virtual information for simulating a main display when a display information acquisition request is received, the display information acquisition request being issued by a target instance, the target instance being any one instance among a plurality of instances, and a target display corresponding to the target instance being a main display or an auxiliary display; and The method includes a step of feeding back the main display virtual information to the target instance, causing the target instance to determine a target display corresponding to the target instance as the main display, and displaying a rendered screen on the target display.
2. 2. The method of claim 1, The display information acquisition request includes a display quantity acquisition request, and the main display virtual information includes a display quantity or a main display indicator feature; The step of generating main display virtual information for simulating a main display when the display information acquisition request is received includes: The method includes a step of reading the display quantity or the main display indicator feature from a display isolation device when the display quantity acquisition request is received, wherein the display quantity is a display quantity that needs to be fed back in the case of a first target, and in the case of the first target, a screen corresponding to the target instance is displayed on the main display, and the main display indicator feature is used to indicate that the target display is a main display.
3. 2. The method of claim 1, The display information acquisition request includes a main display position characteristic request, and the main display virtual information includes a main display position characteristic; The step of generating main display virtual information for simulating a main display when the display information acquisition request is received includes: A method comprising a step of obtaining the main display position characteristics from a display isolation device when the main display position characteristic request is received, the display isolation device being used to determine the main display position characteristics that need to be fed back in the case of a second target, where the second target is when a screen corresponding to the target instance is transmitted to the main display.
4. 4. The method according to claim 2 or 3, The method, wherein the main display is the only display.
5. 5. The method of claim 4, Prior to displaying the rendered screen on the target display, the method further comprises: The method further comprising the step of screen rendering the target instance on a target graphics card corresponding to the target display.
6. 2. The method of claim 1, Having the target instance determine a target display corresponding to the target instance as the main display includes: The target instance includes determining the target display as a main display based on the main display virtual information; causing the target instance to display the rendered screen on the target display, setting a window position in the target display corresponding to the screen, and transmitting the screen to the target display at the window position.
7. A device for displaying a screen, comprising: A simulation module configured to generate main display virtual information for simulating a main display when receiving a display information acquisition request, the display information acquisition request being issued by a target instance, the target instance being any one instance among a plurality of instances, and a target display corresponding to the target instance being a main display or an auxiliary display; and The device includes a feedback module configured to feed back the main display virtual information to the target instance, thereby causing the target instance to determine a target display corresponding to the target instance as the main display and to display a rendered screen on the target display.
8. An electronic device, At least one processor; and a memory coupled to at least one of said processors; The storage device stores a computer program, 4. An electronic device, the processor being configured to execute the computer program to implement the method according to any one of claims 1 to 3.
9. A program for causing a computer to execute the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Display card selection method and related device
CN111611017A
Image obtaining method and apparatus, server, and storage medium
US20210360086A1
Image acquisition method, device, server and storage medium
WO2020238846A1
