Virtual display method and device of graph, electronic equipment and storage medium

By combining the virtual container and the target graphics library in the physical machine to divide and process graphics resources, the problem of low virtual display efficiency is solved and efficient virtual display effects are achieved.

CN118535757APending Publication Date: 2024-08-23CHINA FAW CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410682121.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology lacks a combination of adaptive container technology and display virtualization technology, resulting in low virtual display efficiency.

Method used

By introducing a virtual container and a target graphics library into the physical machine, it receives the graphics call request of the virtual application, divides the resources into sub-resources to be rendered and to be displayed, performs rendering and display processing respectively, and finally merges them to send them to the virtual application's virtual display screen.

Benefits of technology

It improves the efficiency of resource processing and virtual display, and realizes display virtualization of containers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535757A
    Figure CN118535757A
Patent Text Reader

Abstract

The invention discloses a graph virtual display method and device, electronic equipment and a storage medium. The method is applied to the physical machine, the physical machine comprises at least one virtual container and a target graphics library, the virtual container comprises at least one virtual application, and the method comprises the steps that a graphics calling request of the virtual application is received, and a target calling resource corresponding to the graphics calling request is determined through the target graphics library; dividing the target calling resource into a first sub-resource and a second sub-resource; performing rendering processing on the first sub-resource to obtain a rendered graph, and performing display processing on the second sub-resource to obtain a display graph; merging the rendering graph and the display graph to obtain a target graph; and displaying the target graph through a virtual display screen of the virtual application. According to the method and the device, the display virtualization of the container can be realized, and the efficiency of resource processing can be improved and the virtual display efficiency of the graph can be improved by dividing the resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a virtual display method, device, electronic equipment and storage medium for graphics. Background Art

[0002] Display virtualization is the virtualization of the computer's terminal system. With the continuous development of artificial intelligence, the application of display virtualization is becoming more and more extensive, but the requirements for virtual display are also getting higher and higher.

[0003] In the related technologies, display virtualization technology is mainly applied to physical machines or other traditional systems. In terms of containers, there is a lack of adapted display virtualization technology. In addition, the display virtualization technology currently applied to physical machines or other traditional systems is often less efficient in graphics rendering. Therefore, there is currently a lack of a method for combining container technology with display virtualization technology to perform efficient virtual display. Summary of the invention

[0004] The present invention provides a method, device, electronic device and storage medium for virtual display of graphics, so as to solve the current problem of lack of a method for combining container technology with display virtualization technology to perform efficient virtual display.

[0005] According to one aspect of the present invention, a virtual display method of graphics is provided, which is applied to a physical machine, wherein the physical machine includes at least one virtual container and a target graphics library, and the virtual container includes at least one virtual application, wherein the virtual display method of graphics includes:

[0006] receiving a graphics call request of the virtual application, and determining a target call resource corresponding to the graphics call request through the target graphics library;

[0007] Divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed;

[0008] Rendering the first sub-resource to obtain a rendered graphic, and displaying the second sub-resource to obtain a displayed graphic;

[0009] Merging the rendering graphic and the display graphic to obtain a target graphic;

[0010] The target graphic is sent to the virtual application, and the target graphic is displayed through a virtual display screen of the virtual application.

[0011] According to another aspect of the present invention, a virtual display device for graphics is provided, which is applied to a physical machine, wherein the physical machine includes at least one virtual container and a target graphics library, wherein the virtual container includes at least one virtual application, wherein the virtual display device for graphics includes:

[0012] A resource calling module, configured to receive a graphics calling request of the virtual application, and determine a target calling resource corresponding to the graphics calling request through the target graphics library;

[0013] A resource division module, used to divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed;

[0014] A resource processing module, configured to render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic;

[0015] A graphics merging module, used for merging the rendering graphics and the display graphics to obtain a target graphics;

[0016] The virtual display module is used to send the target graphic to the virtual application and display the target graphic through a virtual display screen of the virtual application.

[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the virtual display method of graphics described in any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the virtual display method of graphics described in any embodiment of the present invention when executed.

[0022] The technical solution of the embodiment of the present invention is to receive the graphics call request of the virtual application, determine the target call resource corresponding to the graphics call request through the target graphics library; divide the target call resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed; render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic; merge the rendered graphic and the displayed graphic to obtain a target graphic; send the target graphic to the virtual application, and display the target graphic through the virtual display screen of the virtual application. The present invention realizes the display virtualization of the container, and improves the efficiency of resource processing and the efficiency of virtual display of graphics by dividing resources.

[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 is a flowchart of a method for virtual display of graphics provided according to Embodiment 1 of the present invention;

[0026] Figure 2 is a flow chart of a method for virtual display of graphics provided according to Embodiment 2 of the present invention;

[0027] Figure 3 is a system architecture diagram of a virtual display method of graphics provided according to an embodiment of the present invention;

[0028] Figure 4 is an overall flow chart of a virtual display method of graphics provided according to an embodiment of the present invention;

[0029] Figure 5 is a flowchart of rendering a first sub-resource provided according to an embodiment of the present invention;

[0030] Figure 6 is a structural schematic diagram of a graphic virtual display device provided according to Embodiment 3 of the present invention;

[0031] Figure 7The present invention is a schematic diagram of the structure of an electronic device for implementing the virtual display method of graphics according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 A flowchart of a method for virtual display of graphics is provided for the first embodiment of the present invention. This embodiment is applicable to the case where an application in a container performs virtual display of graphics. The method can be executed by a virtual display device for graphics. The virtual display device for graphics can be implemented in the form of hardware and / or software. The virtual display device for graphics can be configured in a computer. Figure 1 As shown, the method includes:

[0036] S110: Receive a graphics call request of the virtual application, and determine a target call resource corresponding to the graphics call request through the target graphics library.

[0037] The virtual application is located in a physical machine, the physical machine includes at least one virtual container and a target graphics library, and the virtual container includes at least one virtual application.

[0038] The physical machine can be understood as a physical computer.

[0039] The virtual container may be understood as a virtualized container running on the physical machine. In the embodiment of the present invention, the physical machine may include one or more virtual containers.

[0040] The virtual application may be understood as a virtualized application running on the virtual container. In an embodiment of the present invention, each virtual container may include one or more virtual applications. Optionally, the virtual application may include a graphics application with a graphics display function.

[0041] The target graphic library can be understood as a database storing resources corresponding to graphics.

[0042] The graphics call request can be understood as a request to call resources in the target graphics library. Specifically, the graphics call request is determined in response to a graphics call operation for the virtual application. The graphics call operation can be preset according to scene requirements and is not specifically limited here. Optionally, the graphics call operation can include a trigger operation for a virtual call button on the virtual application.

[0043] The target calling resource may be understood as the resource requested to be called by the graphics calling request.

[0044] S120: Divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed.

[0045] Optionally, dividing the target calling resource into a first sub-resource and a second sub-resource may include:

[0046] Determine the resource type of each of the sub-resources in the target calling resource;

[0047] The target calling resource is divided into a first sub-resource and a second sub-resource based on the resource type.

[0048] The resource type may be understood as the type of the sub-resource. In an embodiment of the present invention, the resource type corresponding to each sub-resource may be stored in advance in the target graphics library. Optionally, the resource type may include: resources that require rendering and / or resources that do not require rendering.

[0049] S130: Render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic.

[0050] The rendered graphics may be understood as graphics obtained by rendering the first sub-resource.

[0051] The displayed graph may be understood as a graph obtained by displaying and processing the second sub-resource.

[0052] Based on the above embodiments, the present invention can achieve the effect of diversion processing for different types of resources, effectively improving the efficiency of resource processing.

[0053] S140: Merge the rendering graphic and the display graphic to obtain a target graphic.

[0054] The target graphic may be understood as a graphic obtained by combining the rendering graphic and the display graphic.

[0055] Optionally, after merging the rendering graphic and the display graphic to obtain a target graphic, the method further includes:

[0056] The target graph is stored in a target database, wherein the target database is located on the physical machine.

[0057] The target database may be understood as a database having a function of storing graphics.

[0058] Based on the above embodiments, the present invention can store the target graphics displayed by the virtual application in a virtualized manner, so as to facilitate user tracing and improve the user experience.

[0059] S150: Send the target graphic to the virtual application, and display the target graphic through a virtual display screen of the virtual application.

[0060] The virtual display screen may be understood as a display screen of the virtual application. Optionally, the virtual screen may be a screen with a function of virtualizing and displaying graphics.

[0061] The technical solution of the embodiment of the present invention is to receive the graphics call request of the virtual application, determine the target call resource corresponding to the graphics call request through the target graphics library; divide the target call resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed; render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic; merge the rendered graphic and the displayed graphic to obtain a target graphic; send the target graphic to the virtual application, and display the target graphic through the virtual display screen of the virtual application. The present invention realizes the display virtualization of the container, and improves the efficiency of resource processing and the efficiency of virtual display of graphics by dividing resources.

[0062] Embodiment 2

[0063] Figure 2 This is a flowchart of a virtual display method of a graphic provided in the second embodiment of the present invention. This embodiment is to render the first sub-resource as described in the above embodiment to obtain a rendered graphic for refinement. Figure 2 As shown, the method includes:

[0064] S210: Receive a graphics call request of the virtual application, and determine a target call resource corresponding to the graphics call request through the target graphics library.

[0065] S220. Divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed.

[0066] S230: Render the first sub-resource through a target processor to obtain a rendered graphic, wherein the target processor is located in a graphics card of the physical machine.

[0067] The target processor may be understood as a processor that performs rendering processing on the sub-resources. In an embodiment of the present invention, the target processor may be preset according to scene requirements and is not specifically limited herein. Optionally, the target processor may include at least one graphics processor (Graphics Processing Unit, GPU). The graphics processor may be understood as a processor with a graphics rendering function.

[0068] Optionally, before rendering the first sub-resource by the target processor, the method further includes:

[0069] Determine target load data of the first sub-resource, and determine a target processor corresponding to the target load data according to a preset mapping rule, wherein the target processor includes at least one graphics processor;

[0070] The preset mapping rule includes a plurality of candidate load data, a plurality of candidate processors, and a mapping relationship between the candidate load data and the candidate processors.

[0071] The target load data may be understood as data representing the situation in which the rendering flow loads the first sub-resource. The rendering flow may be understood as a data flow that loads the first sub-resource.

[0072] The preset mapping rule can be understood as a mapping rule between load data and a processor.

[0073] The candidate load data may be understood as candidate load data. In the embodiment of the present invention, the candidate load data may include multiple types, which are not specifically limited here.

[0074] The candidate processor may be understood as a processor that can be understood as a candidate. In an embodiment of the present invention, the candidate processor may include multiple processors. Exemplarily, the candidate processors include graphics processor 1, graphics processor 2, and graphics processor 3.

[0075] In the embodiment of the present invention, one candidate load data may correspond to one or more candidate processors.

[0076] Optionally, the rendering processing of the first sub-resource by a target processor to obtain a rendered graphic includes:

[0077] Determine at least one task to be rendered corresponding to the first sub-resource, and determine a queue to be processed based on the task to be rendered;

[0078] Sending the tasks to be rendered in the queue to be processed to the plurality of graphics processors in sequence through a task distributor, and performing task processing on the tasks to be rendered through the graphics processors to obtain task processing results;

[0079] The rendering graphic corresponding to the first sub-resource is determined based on the task processing result.

[0080] The tasks to be rendered may be understood as tasks to be rendered.

[0081] The queue to be processed may be understood as a queue containing the tasks to be rendered.

[0082] The task processing result may be understood as the processing result corresponding to the task to be rendered.

[0083] Optionally, determining the rendering graphic corresponding to the first sub-resource based on the task processing result includes:

[0084] The load balancer is used to monitor the task load of each graphics processor, and based on the task load of each graphics processor, the task dispatcher is used to send the tasks to be rendered in the processing queue to the plurality of graphics processors in sequence, and the graphics processors are used to process the tasks to be rendered to obtain the task processing results.

[0085] When the rendering process of the task to be rendered is completed, the rendering graphic corresponding to the first sub-resource is obtained.

[0086] The load balancer is used to monitor the task load of the graphics processor.

[0087] The task load condition may be understood as the task load condition corresponding to the graphics processor. Optionally, the task load condition may include at least two load levels. Optionally, the load level may include reallocatable tasks and / or non-reallocatable tasks.

[0088] Based on the above embodiments, the present invention processes the pending tasks through multiple graphics processors at the same time, thereby improving the efficiency of task processing; in the process of simultaneously processing the pending tasks through multiple graphics processors, the present invention monitors the task load of each graphics processor through a load balancer to redistribute tasks to each graphics processor, thereby avoiding task congestion and uneven task distribution, which may lead to the complexity and overload of the graphics processor and cause graphics processor failure. The present invention solves the above problems and avoids task congestion and processor failure during task processing.

[0089] Optionally, after the graphics processor performs task processing on the task to be rendered and obtains the task processing result, the method further includes:

[0090] Sending the task processing result to a frame buffer;

[0091] The obtaining the rendered graphics corresponding to the first sub-resource includes:

[0092] Acquire a plurality of the task processing results in the frame buffer through the video controller;

[0093] Based on the multiple task processing results, the rendering graphics corresponding to the first sub-resource are obtained.

[0094] The frame buffer can be understood as a buffer for temporarily storing the task processing result. In the implementation of the present invention, the physical machine includes at least one frame buffer.

[0095] The video controller can be understood as a controller having the function of obtaining the task processing result from the frame buffer. In the implementation of the present invention, the physical machine includes at least one video controller.

[0096] Based on the above embodiments, the present invention can temporarily store the task processing results determined by each target processor in the frame buffer, and after completing the rendering processing of the task to be rendered, obtain multiple task processing results in the frame buffer through the video controller, and obtain the rendering graphics corresponding to the first sub-resource based on the multiple task processing results, thereby avoiding the situation where the determined rendering graphics are incomplete, ensuring the integrity of the rendering graphics, and further ensuring the integrity and accuracy of the virtualized display target graphics determined based on the rendering graphics.

[0097] S240: Perform display processing on the second sub-resource to obtain a display graphic.

[0098] S250: Merge the rendering graphic and the display graphic to obtain a target graphic.

[0099] S260: Send the target graphic to the virtual application, and display the target graphic through a virtual display screen of the virtual application.

[0100] The technical solution of the embodiment of the present invention is to render the first sub-resource through a target processor to obtain a rendered graphic, wherein the target processor is located in the graphics card of the physical machine. The present invention improves the efficiency of rendering sub-resources.

[0101] Figure 3 1 is a system architecture diagram of a method for virtual display of graphics provided according to an embodiment of the present invention. Figure 3 As shown, the system architecture of the virtual display method of the graphics may include: a physical machine, which is used to render the part to be rendered (i.e., the first sub-resource) through GPU0, GPU1 and GPU2 (i.e., multiple target processors) located in the graphics card to obtain a rendered graphic. A graphics application (i.e., a virtual application running in a virtual container of the physical machine), which is used to generate a graphics call request and display the target graphics through a virtual display screen. A graphics library (i.e., the target graphics library) is used to store resources. A diversion device is used to divide the target call resource into a first sub-resource to be rendered and a second sub-resource to be displayed. A rendering forwarder is used to send the first sub-resource to be rendered to the target processor. A frame buffer is used to temporarily store the processing results of the target processor. A virtual screen (i.e., the virtual display screen) is used to display the target graphics. A memory (i.e., a target database) is used to store the target graphics.

[0102] Figure 4 FIG. 1 is an overall flow chart of a method for virtual display of graphics according to an embodiment of the present invention. Figure 4 As shown, the overall process of the virtual display method of the graphics may be:

[0103] Receive a graphics call request, and obtain the requested target call resource from a target graphics library; divide the target call resource into a second sub-resource to be displayed and a first sub-resource to be rendered; distribute the pending tasks corresponding to the first sub-resource to multiple graphics processors through a scheduling algorithm, and temporarily store the processing results of each graphics processing in a frame buffer; obtain the processing results in the frame buffer through a video controller, and determine the rendered graphics; perform display processing on the second sub-resource to obtain a display graphics; merge the rendered graphics and the display graphics to obtain a target graphics, and display the target graphics on a virtual display screen of the virtual application that issued the graphics call request.

[0104] Figure 5 FIG. 4 is a flowchart of rendering a first sub-resource according to an embodiment of the present invention. Figure 5 The process of rendering the first sub-resource may be:

[0105] The first sub-resource is divided into a plurality of tasks to be processed; and the tasks to be processed are sent to a queue to be processed; the load data corresponding to the first sub-resource is determined so that the algorithm selector sequentially distributes the tasks to be processed in the queue to be processed to a plurality of graphics processors based on the load data; in the process of the graphics processor processing the tasks to be processed, the task load of each graphics processor is monitored by a load balancer, and the unprocessed tasks to be processed in the queue to be processed are distributed to the graphics processor based on the task load of each graphics processor; and the task processing results of the graphics processor are sent to the frame buffer.

[0106] Based on the technical solution of the embodiments of the present invention, the efficiency, integrity and accuracy of the virtual display of graphics can be improved, and the problem of processor failure caused by excessive processor load during the virtual display of graphics is avoided, thereby ensuring the stable operation of the processor and improving the user experience.

[0107] Embodiment 3

[0108] Figure 6 This is a schematic diagram of the structure of a graphic virtual display device provided by Embodiment 3 of the present invention. Figure 6 As shown, the device is applied to a physical machine, the physical machine includes at least one virtual container and a target graphics library, the virtual container includes at least one virtual application, wherein the virtual display device of the graphics includes: a resource calling module 310, a resource partitioning module 320, a resource processing module 330, a graphics merging module 340 and a virtual display module 350; wherein,

[0109] A resource calling module 310 is used to receive a graphics calling request of the virtual application, and determine a target calling resource corresponding to the graphics calling request through the target graphics library; a resource partitioning module 320 is used to divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed; a resource processing module 330 is used to render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic; a graphics merging module 340 is used to merge the rendered graphic and the displayed graphic to obtain a target graphic; a virtual display module 350 is used to send the target graphic to the virtual application, and display the target graphic through the virtual display screen of the virtual application.

[0110] The technical solution of the embodiment of the present invention is to receive the graphics call request of the virtual application, determine the target call resource corresponding to the graphics call request through the target graphics library; divide the target call resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed; render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic; merge the rendered graphic and the displayed graphic to obtain a target graphic; send the target graphic to the virtual application, and display the target graphic through the virtual display screen of the virtual application. The present invention realizes the display virtualization of the container, and improves the efficiency of resource processing and the efficiency of virtual display of graphics by dividing resources.

[0111] Optionally, the resource processing module 330 includes: a rendering processing unit, configured to perform rendering processing on the first sub-resource through a target processor to obtain a rendered graphic, wherein the target processor is located in a graphics card of the physical machine.

[0112] Optionally, the resource processing module 330 further includes: a processor determining unit, configured to determine target load data of the first sub-resource before rendering the first sub-resource by the target processor, and determine a target processor corresponding to the target load data according to a preset mapping rule, wherein the target processor includes at least one graphics processor;

[0113] The preset mapping rule includes a plurality of candidate load data, a plurality of candidate processors, and a mapping relationship between the candidate load data and the candidate processors.

[0114] Optionally, the rendering processing unit includes: a task queue subunit, a task processing subunit and a rendering graphics determination subunit; wherein,

[0115] The task queue subunit is used to determine at least one task to be rendered corresponding to the first sub-resource, and determine a queue to be processed based on the task to be rendered;

[0116] The task processing subunit is used to send the tasks to be rendered in the queue to be processed to the plurality of graphics processors in sequence through a task distributor, and perform task processing on the tasks to be rendered through the graphics processors to obtain task processing results;

[0117] The rendering graphic determining subunit is configured to determine the rendering graphic corresponding to the first sub-resource based on the task processing result.

[0118] Optionally, the rendering graphics determination subunit is specifically used to:

[0119] The load balancer is used to monitor the task load of each graphics processor, and based on the task load of each graphics processor, the task dispatcher is used to send the tasks to be rendered in the processing queue to the plurality of graphics processors in sequence, and the graphics processors are used to process the tasks to be rendered to obtain the task processing results.

[0120] When the rendering process of the task to be rendered is completed, the rendering graphic corresponding to the first sub-resource is obtained.

[0121] Optionally, the graphic virtual display device further includes: a graphic cache module, configured to send the rendered graphic to a frame buffer after rendering the first sub-resource to obtain the rendered graphic;

[0122] The graphics merging module 340 is specifically used for:

[0123] Acquire the rendering graphics in the frame buffer through a video controller;

[0124] The rendering graphic and the display graphic are merged to obtain a target graphic.

[0125] Optionally, the virtual display device of the graphics further includes: a data storage module, which is used to store the target graphics in a target database after the rendering graphics and the display graphics are merged to obtain the target graphics, wherein the target database is located in the physical machine.

[0126] The virtual display device of graphics provided in the embodiment of the present invention can execute the virtual display method of graphics provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0127] Embodiment 4

[0128] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0129] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0130] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0131] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a virtual display method of graphics.

[0132] In some embodiments, the virtual display method of graphics may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the virtual display method of graphics described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the virtual display method of graphics in any other appropriate manner (e.g., by means of firmware).

[0133] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0134] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0135] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0136] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0137] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0138] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0139] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0140] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A virtual display method of graphics, characterized in that: Applied to a physical machine, the physical machine includes at least one virtual container and a target graphics library, the virtual container includes at least one virtual application, wherein the virtual display method of the graphics includes: receiving a graphics call request of the virtual application, and determining a target call resource corresponding to the graphics call request through the target graphics library; Divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed; Rendering the first sub-resource to obtain a rendered graphic, and displaying the second sub-resource to obtain a displayed graphic; Merging the rendering graphic and the display graphic to obtain a target graphic; The target graphic is sent to the virtual application, and the target graphic is displayed through a virtual display screen of the virtual application.

2. The method according to claim 1, characterized in that The rendering process of the first sub-resource to obtain a rendered graphic includes: The first sub-resource is rendered by a target processor to obtain a rendered graphic, wherein the target processor is located in a graphics card of the physical machine.

3. The method according to claim 2, characterized in that Before rendering the first sub-resource by the target processor, the method further includes: Determine target load data of the first sub-resource, and determine a target processor corresponding to the target load data according to a preset mapping rule, wherein the target processor includes at least one graphics processor; The preset mapping rule includes a plurality of candidate load data, a plurality of candidate processors, and a mapping relationship between the candidate load data and the candidate processors.

4. The method according to claim 2, characterized in that: The step of rendering the first sub-resource by a target processor to obtain a rendered graphic includes: Determine at least one task to be rendered corresponding to the first sub-resource, and determine a queue to be processed based on the task to be rendered; The task distributor sequentially sends the tasks to be rendered in the queue to be processed to the plurality of graphics processors, and performs task processing on the tasks to be rendered by the graphics processors to obtain task processing results; The rendering graphic corresponding to the first sub-resource is determined based on the task processing result.

5. The method according to claim 4, characterized in that The determining the rendering graphic corresponding to the first sub-resource based on the task processing result includes: The load balancer is used to monitor the task load of each graphics processor, and based on the task load of each graphics processor, the task dispatcher is used to send the tasks to be rendered in the processing queue to the plurality of graphics processors in sequence, and the graphics processors are used to process the tasks to be rendered to obtain the task processing results. When the rendering process of the task to be rendered is completed, the rendering graphic corresponding to the first sub-resource is obtained.

6. The method according to claim 5, characterized in that After the graphics processor processes the task to be rendered and obtains the task processing result, the method further includes: Sending the task processing result to a frame buffer; The obtaining the rendered graphics corresponding to the first sub-resource includes: Acquire a plurality of the task processing results in the frame buffer through the video controller; Based on the multiple task processing results, the rendering graphics corresponding to the first sub-resource are obtained.

7. The method according to claim 1, characterized in that After the rendering graphic and the display graphic are merged to obtain a target graphic, the method further includes: The target graph is stored in a target database, wherein the target database is located on the physical machine.

8. A graphic virtual display device, characterized in that: Applied to a physical machine, the physical machine includes at least one virtual container and a target graphics library, the virtual container includes at least one virtual application, wherein the virtual display device of the graphics includes: A resource calling module, configured to receive a graphics calling request of the virtual application, and determine a target calling resource corresponding to the graphics calling request through the target graphics library; A resource division module, used to divide the target calling resource into a first sub-resource and a second sub-resource, wherein the first sub-resource is a sub-resource to be rendered, and the second sub-resource is a sub-resource to be displayed; A resource processing module, configured to render the first sub-resource to obtain a rendered graphic, and display the second sub-resource to obtain a displayed graphic; A graphics merging module, used for merging the rendering graphics and the display graphics to obtain a target graphics; The virtual display module is used to send the target graphic to the virtual application and display the target graphic through a virtual display screen of the virtual application.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the virtual display method of graphics according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the virtual display method of graphics according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Graphic rendering method and electronic equipment

    CN110209444A

  • Task processing method and device in graphics processor, electronic equipment and storage medium

    CN113256481A

  • Display picture rendering method and device and terminal equipment

    CN115988265A

  • Resource scheduling method and device, electronic equipment and storage medium

    CN116414561A

  • Display method and device, equipment and storage medium

    CN116611990A