如何在单板计算机上利用 2d/3d 图形加速

发布于 2024-10-26 20:17:44 字数 226 浏览 5 评论 0原文

这可能是一个有点愚蠢的问题,但如果您正在使用一台声称具有 2d/3d 图形加速功能的单板计算机,那么这实际上意味着什么?

如果它支持 DirectX 或 OpenGL,显然我可以使用该框架,但我不熟悉从这方面开始工作。我不知道这是否意味着它能够将这些库包含到操作系统中,或者它只是意味着它可以更快地执行某些类型的数学(默认情况下或通过其他进程)

任何关于这意味着什么的澄清或我可以使用的资源位置将不胜感激。

This may be a somewhat silly question, but if you are working with a single board computer that boasts that it has 2d/3d graphics acceleration, what does this actually mean?

If it supports DirectX or OpenGL obviously I could just use that framework, but I am not familiar with working from this end of things. I do not know if that means that it is capable of having those libraries included into the OS or if it just means that it does certain kinds of math more quickly (either by default or through some other process)

Any clarification on what this means or locations of resources I could use on such would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

长发绾君心 2024-11-02 20:17:44

在嵌入式系统上,2D/3D 图形加速可能意味着很多事情。例如,通过 DirectFB 加速帧缓冲区操作,或者支持 OpenGL ES。

事实上,主板制造商通常会提供这些库,因为图形加速本身与硬件密切相关。

最好与您的制造商联系并询问他们支持哪些硬件加速的图形库。

On embedded system's, 2D/3D Graphics Acceleration could mean a lot of things. For instance, that framebuffer operations are accelerated through DirectFB, or that OpenGL ES is supported.

The fact is that the manufacturer of the board usually provides these libraries since the acceleration of the graphics itself is deeply connected to the hardware.

It's best to get in touch with your manufacturer and ask which graphics libraries they support that are hardware accelerated.

长亭外,古道边 2024-11-02 20:17:44

2D/3D 显卡有两个非常重要的功能:

  1. 减轻 CPU 的负载
  2. 加载速度比 CPU 快得多的进程,因为它具有专门为图形中常见的计算而设计的特殊指令集(例如转换)

有时其他作业会传递到 GPU,因为作业需要非常适合 GPU 指令的计算。例如,物理库需要大量矩阵计算,因此可以使用 GPU 来完成此操作。 NVIDIA 打造 PHYSIX 正是为了做到这一点。 另请参阅此常见问题解答

There are two very important features of 2D/3D graphics cards:

  1. Take a load away from the CPU
  2. Process that load much faster than the CPU can do because it has a special instruction set that was designed explicitly for calculations that are common in graphics (e.g. transformations)

Sometimes other jobs are passed on to the GPU because a job requires calculations that fit very good to the instructions of the GPU. E.g. a physics library requires lots of matrix calculation so a GPU could be used to do that. NVIDIA made PHYSIX to do exactly that. See this FAQ also

趁微风不噪 2024-11-02 20:17:44

图形显示所需的最低限度是允许设置各个像素的状态(颜色)。这允许您在显示器的分辨率和颜色深度内渲染任何图像,但对于复杂的绘图任务和非常高分辨率的显示器,这将非常慢。

图形加速是指卸载到硬件的任何图形处理功能。最简单地说,这可能意味着绘制和填充图形基元(例如直线和多边形)以及“位块传输”(将像素块从一个位置移动到另一个位置)。从技术上讲,图形加速已在很大程度上被图形处理器 (GPU) 取代,尽管效果是相同的 - 更快的图形。 GPU 更加灵活,因为硬件加速器只能加速它们硬编码执行的一组操作,这可能比其他应用程序更有利于某些应用程序。

现代 GPU 图形硬件执行更高级别的图形处理。还可以使用 GPU 通过 Nvidia CUDA 等接口执行更通用的矩阵计算任务,从而可以加速除图形之外但需要相同类型数学运算的计算任务。

维基百科“图形处理单元”文章有图形加速器和 GPU 的历史

The minumum a graphics display required is to allow the setting of the state (colour) of individual pixels. This allows you to render any image within the resolution and colour depth of the display, but for complex drawing tasks and very high resolution displays this would be very slow.

Graphics acceleration refers to any graphics processing function off-loaded to hardware. At its simplest this may mean the drawing and filling of graphics primitives such as lines, and polygons, and 'blitting' - the moving of blocks of pixels from one location to another. Technically graphics acceleration has been largely replaced by graphics processors (GPUs), though the affect is the same - faster graphics. GPUs are more flexible since a hardware accelerator can accelerate only the set of operations they are hard wrired to perform, which may benefit some applications more than others.

Modern GPU graphics hardware performs far higher level graphics processing. It is also possible to use the GPU to perform more general purpose matrix computation tasks using interfaces such as Nvidia's CUDA, which can then accelerate computational tasks other than graphics but which require teh same kind of mathematical operations.

The Wikipedia "Graphics processing unit" article has a history of Graphics Accelerators and GPUs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文