Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multithreading-based OpenGL quick drawing method

A multi-threaded and fast technology, applied in 3D image processing, instrumentation, calculation, etc., can solve the problems that multiple threads cannot MakeCurrent the same drawing context at the same time, limit the efficiency of resource drawing, etc., so as to reduce the window drawing time and improve the drawing efficiency. effect of speed

Inactive Publication Date: 2017-01-18
JIANGSU ELECTRIC POWER INFORMATION TECH +1
View PDF6 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, rendering resources to the FBO rendering context can only be done in a single thread, and multiple threads cannot simultaneously MakeCurrent to the same rendering context
In the existing technology, a single thread is used in the whole process from the calculation of the target resource to the rendering and drawing, which limits the efficiency of resource drawing

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
  • Multithreading-based OpenGL quick drawing method
  • Multithreading-based OpenGL quick drawing method
  • Multithreading-based OpenGL quick drawing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] Below in conjunction with accompanying drawing and specific implementation, the processing flow of the present invention is further elaborated

[0016] A multithread-based OpenGL fast drawing method, the steps are as follows:

[0017] Step 1: Create a bitmap. The main thread generates a bitmap in the memory area according to the rendering target size.

[0018] Step 2: Regional division. Divide the bitmap generated in the previous step into several areas, and pass the relevant information to the corresponding sub-threads.

[0019] Step 3: Drawing in blocks. Each sub-thread receives the area information sent by the main thread, and calculates the image information pixel by pixel by using interpolation calculation and other techniques according to the sampling points.

[0020] Step 4: The main thread creates a FBO.

[0021] Step 5: In the main thread, render the bitmap to the specified position of the FBO.

[0022] Step 6: Screen drawing. Output the drawn FBO direct...

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 invention discloses a multithreading-based OpenGL quick drawing method. Firstly a bitmap having the same size of the output target size is generated, and the bitmap is partitioned according to the area; then multithreading concurrence is enabled, and each thread is responsible for computing and drawing of one block of the bitmap in a pixel-point-by-pixel-point manner; the overall bitmap is rendered to an FBO after completion of drawing of the bitmap; and finally the FBP is outputted to a screen. The multithreading technology is introduced in the resource drawing process, the resource is firstly outputted to one bitmap saved in the memory, the system resource is fully utilized by applying the parallel computation capacity of the processor, and then a frame buffer area is utilized so that window drawing time is effectively reduced and resource rendering and drawing speed can be enhanced on the whole.

Description

technical field [0001] The invention relates to a method for quickly rendering and drawing images by using multithreading, in particular to a multithreading-based OpenGL fast drawing method. Background technique [0002] OpenGL provides a graphics hardware interface for program developers, which is a powerful and easy-to-call underlying graphics function library. However, when the rendering target is complex and the number of vertices is large, directly using OpenGL to render and draw on the desktop window, the output speed is slow, which has always been an important factor restricting the display effect of the program. [0003] EXT_framebuffer_object is an extension of OpenGL that allows an off-screen buffer to be the target of program rendering operations. Using FBO (Frame Buffer Object) technology, the image is first rendered to the FBO frame buffer block and stored in the memory of the graphics card, and then the image data can be quickly displayed on the monitor, there...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06T15/00G06F3/14
CPCG06F3/14G06T15/005
Inventor 胡军曹震许斌锋
Owner JIANGSU ELECTRIC POWER INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products