This application claims the priority benefit of Taiwan application serial no. 107111608, filed on Apr. 2, 2018. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The invention relates to a display system having a plurality of graphics processing units and a display method thereof
In the example of
In other words, if the output unit 50 displays the frame 14 of the first program 10 in the first display device 18 via wireless transmission, then the first graphics processing unit 12 is responsible for the execution of the first program 10 to generate the frame 14 and the encoding operation 16 encoding the frame 14. At this point, the computing load of the first graphics processing unit 12 is too heavy, and wireless transmission may be unstable.
The invention provides a display system and a display method that can distribute the computing load of graphics processing units in an electronic device having a plurality of graphics processing units.
The invention provides a display system. The display system has an electronic device and a first display device. The electronic device has a first graphics processing unit and a second graphics processing unit. The first graphics processing unit of the electronic device executes a first program and generates at least one frame corresponding to the first program. The second graphics processing unit of the electronic device obtains the frame and encodes the frame. The electronic device transmits the frame encoded by the second graphics processing unit to the first display device and the first display device decodes the encoded frame to display the frame.
In an embodiment of the invention, in the operation in which the second graphics processing unit of the electronic device obtains the frame, a driver executed by the electronic device transmits a memory location of the frame in the electronic device to the second graphics processing unit, and the second graphics processing unit of the electronic device obtains the frame according to the memory location.
In an embodiment of the invention, in the operation in which the electronic device transmits the frame encoded by the second graphics processing unit to the first display device, the electronic device transmits the frame encoded by the second graphics processing unit to the first display device via a wireless communication method.
In an embodiment of the invention, the first display device is a wearable display device.
In an embodiment of the invention, the display system further includes a second display device connected to the electronic device in a wired manner. The second display device obtains the frame from the first graphics processing unit and displays the frame.
The invention provides a display method suitable for a display system. The display system includes an electronic device and a first display device. The electronic device has a first graphics processing unit and a second graphics processing unit. The method includes the following. A first program is executed via the first graphics processing unit of the electronic device and at least one frame corresponding to the first program is generated. The frame is obtained via the second graphics processing unit of the electronic device and the frame is encoded. The frame encoded by the second graphics processing unit is transmitted to the first display device via the electronic device. The encoded frame is decoded via the first display device to display the frame.
In an embodiment of the invention, the step of obtaining the frame via the second graphics processing unit of the electronic device includes the following. A memory location of the frame in the electronic device is transmitted to the second graphics processing unit via a driver executed by the electronic device. The frame is obtained according to the memory location via the second graphics processing unit of the electronic device.
In an embodiment of the invention, the step in which the image encoded by the second graphics processing unit is transmitted to the first display device via the electronic device includes the following: the frame encoded by the second graphics processing unit is transmitted to the first display device via a wireless communication method via the electronic device.
In an embodiment of the invention, the first display device is a wearable display device.
In an embodiment of the invention, the display system further includes connection to the second display device of the electronic device via a wired method, and the method further includes the following: the frame is obtained from the first graphics processing unit via the second display device and the frame is displayed.
Based on the above, the display system and the display method of the invention can distribute the computing load of graphics processing units in an electronic device having a plurality of graphics processing units. When wireless transmission is to be executed and the frame needs to be compressed via an encoding operation, a program can be executed via a graphics processing unit to generate a frame, and an encoding operation can be executed for the generated frame via another graphics processing unit. As a result, computation overload of a single graphics processing unit can be prevented, and unstable wireless transmission can be prevented.
To make the aforementioned more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Hereinafter, exemplary embodiments of the invention are described in detail with reference to figures. In addition, whenever possible, devices/members having the same reference numerals represent the same or similar parts in the figures and embodiments.
Referring to
Moreover, the second display device 240 is connected to the electronic device 200 via a wired method for wired transmission. The second display device 240 is, for instance, a regular computer screen or other display devices.
The electronic device 200 includes a processing unit 30, a first graphics processing unit 31, a second graphics processing unit 32, a communication unit 33, and a storage unit 34. In particular, the first graphics processing unit 31, the second graphics processing unit 32, the communication unit 33, and the storage unit 34 are respectively coupled to the processing unit 30. The electronic device 200 is, for instance, an electronic device such as a mobile phone, tablet computer, or notebook computer, and is not limited thereto.
The processing unit 30 can be a central processing unit (CPU) or a programmable general-purpose or application-specific microprocessor, digital signal processor (DSP), programmable controller, application-specific integrated circuit (ASIC), other similar devices, or a combination of the devices.
The first graphics processing unit 31 and the second graphics processing unit 32 can be regular graphics processing units (GPUs), display cores, visual processors, display chips, or graphic chips. The first graphics processing unit 31 and the second graphics processing unit 32 can be microprocessors executing graphics operations specifically on a personal computer, workstation, game console, and some mobile devices (such as a tablet computer or smart phone).
The communication unit 33 can be a global system for mobile communication (GSM), personal handy-phone system (PHS), code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, long term evolution (LTE) system, worldwide interoperability for microwave access (WiMAX) system, wireless fidelity (Wi-Fi) system, Bluetooth, Wireless Gigabit Alliance (WiGig) technique, or other wired signal transmission devices. The electronic device 200 can respectively communicate with the first display device 220 and the second display device 240 via the communication unit 33.
The storage unit 34 can be any type of fixed or movable random-access memory (RAM), read-only memory (ROM), flash memory, a similar device, or a combination of the devices.
In the present exemplary embodiment, a plurality of code snippets is stored in the storage unit 34 of the electronic device 200, and after the code snippets are installed, the code snippets are executed by the processing unit 30. For instance, the storage unit 34 includes a plurality of modules, and each operation of the electronic device 200 applied in the display system 1000 is respectively executed via the modules, wherein each module is foil red by one or a plurality of code snippets. However, the invention is not limited thereto, and the various operations of the electronic device 200 can also be implemented in other hardware forms.
Referring to
Specifically, the first graphics processing unit 31 of the electronic device 200 executes a first program 10 (such as a 3D game) and generates at least one frame 40 corresponding to the first program 10. Next, a driver executed by the electronic device 200 transmits a memory location (which is corresponding to the sharing memory unit) of the frame 40 in the electronic device 200 to the output unit 50 and the second graphics processing unit 32. The second graphics processing unit 32 of the electronic device 200 can obtain the frame 40 according to the memory location which is corresponding to the sharing memory unit and transmitted by the driver. After the second graphics processing unit 32 of the electronic device 200 obtains the frame 40, the second graphics processing unit 32 performs an encoding operation 42 on the frame 40 and transmits the encoded frame to the output unit 50. Next, the electronic device 200 transmits the frame encoded by the second graphics processing unit 32 to the output unit 50 via a wireless transmission (i.e., wireless communication) method. As a result, the output unit 50 can output the encoded frame to the first display device 220 via a wired transmission method. The first display device 220 decodes the received encoded frame to display the frame 40.
Moreover, in an embodiment, the first display device 220 can also obtain the frame 40 generated after the first graphics processing unit 31 executes the first program 10 directly via the output unit 50 to display the frame 40.
It should be mentioned that, although not shown in
Referring to
It should be noted that, in the examples presented in the disclosure, the first graphics processing unit 31 may offload some image manipulations to the second graphics processing unit 32. For example, the second graphics processing unit 32 may execute a second program which is configured to color correction, scaling, vision computing or deep learning. However, the first graphics processing unit 31 may also offload other type of image manipulation to the second graphics processing unit 32. The type of second program is not limited thereto.
Based on the above, the display system and the display method of the invention can distribute the computing load of graphics processing units in an electronic device having a plurality of graphics processing units. When wireless transmission is to be executed and the frame needs to be compressed via an encoding operation, a program can be executed via a graphics processing unit to generate a frame, and an encoding operation can be executed for the generated frame via another graphics processing unit. As a result, computation overload of a single graphics processing unit can be prevented, and unstable wireless transmission can be prevented.
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
107111608 | Apr 2018 | TW | national |