简体   繁体   English

具有Flash的Pixel Bender是否会使用GPU?

[英]Does the Pixel Bender with Flash would use the GPU?

I write a Pixel Bender kernal for my flash. 我为Flash编写了Pixel Bender内核。

I know that the pbk would run in another thread. 我知道pbk将在另一个线程中运行。

But when I run my swf, the GPU usage shows 0%. 但是,当我运行swf时,GPU使用率显示为0%。

I want to know does the Pixel Bender with Flash would use the GPU. 我想知道带Flash的Pixel Bender是否会使用GPU。

Adobe say this about the GPU in Flash Player 10.1: Adobe对Flash Player 10.1中的GPU这么说:

"The desktop player still uses software rendering for this release." “桌面播放器仍在此版本中使用软件渲染。”

Source: http://help.adobe.com/en_US/as3/mobile/WS948100b6829bd5a6-54120f1012593d8f030-8000.html 来源: http : //help.adobe.com/zh_CN/as3/mobile/WS948100b6829bd5a6-54120f1012593d8f030-8000.html

Also see this: http://www.kaourantin.net/2008/05/adobe-pixel-bender-in-flash-player-10.html 另请参阅: http : //www.kaourantin.net/2008/05/adobe-pixel-bender-in-flash-player-10.html

It's a little old, but I believe it still to be true. 它有些旧,但我相信它仍然是真实的。

As Joony says, PixelBender does not (currently, 2010) use the GPU. 正如Joony所说,PixelBender(目前是2010年)没有使用GPU。 But it does run multi-threaded, not just in a different thread. 但是它确实运行多线程,而不仅仅是在不同的线程中运行。 On a multi-core machine (almost all, nowadays) this is still a big performance boost if you need to do a lot of independent computation. 在多核机器上(如今几乎是所有机器),如果您需要执行大量独立计算,这仍然可以极大地提高性能。 ActionScript can only (currently, 2010) run on one thread, while PixelBender can use lots. ActionScript只能(当前,2010年)在一个线程上运行,而PixelBender可以使用很多线程。

March 2011 update: the new Flash Player 11 (Molehill) APIs are GPU accelerated. 2011年3月更新:新的Flash Player 11(Molehill)API加速了GPU。 You can use PixelBender3D [1] in combination with the Program3D class [2] to get GPU acceleration with a software fall-back for incompatible machines. 您可以将PixelBender3D [1]与Program3D类[2]结合使用,以通过不兼容机器的软件后备来获得GPU加速。

Notes: PixelBender3D is an update of PixelBender. 注意:PixelBender3D是PixelBender的更新。 Also, this will only work with FP11 and not FP10. 此外,这仅适用于FP11,不适用于FP10。

  1. http://blogs.adobe.com/pixel-bender/2011/03/03/pixel-bender-3d-public-beta-now-available/ http://blogs.adobe.com/pixel-bender/2011/03/03/pixel-bender-3d-public-beta-now-available/
  2. http://labs.jam3.ca/asdocs/incubatorAsDoc/flash/display3D/Program3D.html http://labs.jam3.ca/asdocs/incubatorAsDoc/flash/display3D/Program3D.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM