摘要
OpenGL库没有提供直接的文本显示和处理函数,文献[4]给出一种基于GDI的OpenGL文本绘制方法,但该方法效率低,CPU占用量大。考虑到Windows多线程机制,对上述方法做出改进,提出了一种基于多线程的OpenGL文本绘制方法。该方法可有效利用多核处理器的优势,在对实时性要求较高或进行大批量文本数据绘制等方面有明显优势。实验结果表明,使用此方法能够有效提高文本绘制效率,改善用户体验。
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 quan- tities of text data drawing. Experimental results show that the application of this method can improve text drawing efficiency and improve user' s experience.
出处
《中国民航大学学报》
CAS
2013年第4期23-26,共4页
Journal of Civil Aviation University of China
基金
国家科技支撑计划项目(2011BAH24B12)
中央高校基本科研业务费专项(ZXH2012C004)