Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and terminal for drawing graphics based on X window system

A graphics rendering and windowing system technology, applied in the direction of program control device, processor architecture/configuration, user interface execution, etc., can solve the problems of low performance of X window system, inability to take advantage of GPU parallel processing data, etc., to improve performance. Effect

Pending Publication Date: 2019-03-05
LOONGSON TECH CORP
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a method, device and terminal for graphics drawing based on the X window system to solve the problem of Unable to take advantage of GPU parallel processing data, resulting in low performance of the X window system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and terminal for drawing graphics based on X window system
  • Method, device and terminal for drawing graphics based on X window system
  • Method, device and terminal for drawing graphics based on X window system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 1 It is a flowchart of a method for drawing graphics based on the X Window System provided by Embodiment 1 of the present invention. The embodiment of the present invention aims at the problem that the current X window system cannot take advantage of the advantages of GPU parallel processing of data in the process of drawing graphics, resulting in low performance of the X window system, and provides a method for drawing graphics based on the X window system, such as figure 1 As shown, the specific steps of the method are as follows:

[0033] Step S101 , acquiring a target instruction, and determining an instruction type of the target instruction, where the instruction type includes a hardware acceleration instruction and a software acceleration instruction.

[0034] Wherein, the target instruction is an acceleration instruction to be processed.

[0035] In this embodiment, the acceleration instruction may include the following instruction information: instructi...

Embodiment 2

[0061] figure 2 It is a flowchart of a method for drawing graphics based on the X Window System provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, if the target command is a software acceleration command, the graphics drawing function corresponding to the target command is called, and after the graphics drawing function corresponding to the target command is executed, the corresponding graphics drawing function of the target command is called Synchronous function; obtain the next acceleration instruction executed after the target instruction, judge the instruction type of the next acceleration instruction, and perform drawing processing according to the instruction type of the next acceleration instruction. like figure 2 As shown, the specific steps of the method are as follows:

[0062] Step S201, acquiring a target instruction, and determining an instruction type of the target instruction, where the instruct...

Embodiment 3

[0086] image 3 It is a flow chart of a method for drawing graphics based on the X Window System provided by Embodiment 3 of the present invention. On the basis of any of the above embodiments, in this embodiment, before acquiring the target instruction, it further includes: creating an instruction queue; and sequentially adding acceleration instructions to be executed to the instruction queue in real time according to a preset execution order.

[0087] Specifically, an instruction queue can be created after the X window system is started, and after receiving a graphics drawing command issued by an upper layer application, converting the graphics drawing command into at least one acceleration instruction, packaging each acceleration instruction into a form that can be stored in the instruction queue , and the packaged acceleration instructions are sequentially added to the instruction queue according to the preset execution order. Wherein, the preset execution sequence may be...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method, a device and a terminal for drawing graphics based on an X window system. The embodiment of the invention obtains a target instruction, and if the target instruction is a hardware acceleration instruction, the corresponding graphics drawing function is called; obtaining the next acceleration instruction, if the next acceleration instruction is still hardware acceleration instruction, temporarily do not call hardware synchronization function, continuing to process the next acceleration instruction; if the next acceleration instruction is a software acceleration instruction, the hardware synchronization function is called to synchronize the system data, and then the next acceleration instruction is processed. Such that when at least two hardware acceleration instructions are executed consecutively, calling the graphics drawing function corresponding to each hardware acceleration instruction in turn. At least two hardware acceleration instructions are successively submitted to the GPU, and after the hardware acceleration instructions submitted to the GPU are processed, a hardware synchronization function is called once to complete thesystem data synchronization of multiple hardware acceleration instructions, so that the advantages of the GPU are brought into better play, and the performance of the X window system is improved.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of window graphics systems, in particular to a method, device and terminal for drawing graphics based on the X window system. Background technique [0002] X Window System (X Window System) is a Unix-like window graphics system based on bitmap drawing. It provides a basic graphics framework protocol and has been widely used in Linux, Unix and other operating systems. The X window system is used to draw and present images and move program windows on the screen, and also accept, run, and manage interactive programs with the mouse, keyboard, touch screen, etc. The hardware acceleration layer in the X window graphics system is generally implemented by using a Graphics Processing Unit (GPU for short). GPU is a microprocessor dedicated to image computing work on personal computers, workstations, game consoles, and some mobile devices (such as tablets, smartphones, etc.). The GPU is speciall...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/451G06T1/20
CPCG06T1/20Y02D10/00
Inventor 王洪虎高翔朱琛
Owner LOONGSON TECH CORP