摘要
提高三维场景的运行速度一直以来都是程序开发人员需要面临的一大难题,随着面向主流应用的多核处理器的出现与普及,利用处理器提供的多个内核而不通过编写多线程的方法来提高程序的并行性成为了一种可能。本文介绍虚拟现实开发工具OpenGL和共享存储系统并行编程接口OpenMP;分析OpenGL绘制三维场景的一般过程;并以纹理映射为例着重探讨在OpenGL程序中使用OpenMP来提高程序并行性的方法。
Improving the speed of three-dimensional scene has always been a major challenge which programmers need to face. With the appearance and popularization of the multi-core processor, using the cores on processor instead multi-threading methods to improve parallelism of the program has become a possibility. This article introduces the development of vimaal reality tools OpenGL arid parallel programming interface OpenMP which is a shared-memory systems, analyzes the general process of using OpenGL to draw up the three-dimensional scene, and takes the texture-mapping as an example to discuss how to used OpenMP in the OpenGL program to enhance the parallelism.
出处
《计算机与现代化》
2010年第3期15-18,共4页
Computer and Modernization