›› 2013, Vol. 31 ›› Issue (4): 23-26.

• Civil Aviation • Previous Articles     Next Articles

Efficient method for multi-thread text drawing based on OpenGL

WU Ren-biao,WU Hai-ning,QU Jing-yi,JIA Yun-fei   

  1. (Tianjin Key Laboratory for Advanced Signal Processing,CAUC,Tianjin 300300,China)
  • Received:2012-11-09 Revised:2012-12-17 Online:2013-08-25 Published:2013-10-08

Abstract:

The OpenGL Library has not offer the function of text display and processing directly. Literature 4 provided a method of OpenGL drawing text based on GDI,but the efficiency was low and occupied too much of CPU time.Considering the feature of Windows multi-threading mechanism,some improvements are made,and a new method for text drawing in OpenGL based on multi-thread is proposed. This method can effectively utilize the advantages of multi-core processor,and add obvious advantages to high requirement of real-time or large quantities of text data drawing. Experimental results show that the application of this method can improve text drawing efficiency and improve user爷s experience.

Key words: OpenGL, GDI, multi-thread, text drawing, drawing efficiency

CLC Number: