Topic: [Feature] Add the wmode='direct' tag

Posted under Site Bug Reports & Feature Requests

Requested feature overview description.
Please support wmode='direct' on swfs, the param is currently being ignored and cause swfs attempting to create gpu contexts to crash.

Please add the tag following tag: <param name="wmode" value="direct"> before the <embed> tag. This is a mostly unused tag that allows the swf to be transparent on the page, fill a popup window, or other odd things. Setting it to 'direct' allows the swf to render directly on the screen instead of trying to overlay html elements on of top/behind it.

Why would it be useful?
The default wmode prevents gpu rendering, so please set it to "direct" or "gpu". It offers big power savings and better graphic performance by using the gpu if it's available. There are no relevant downsides as swfs that do not attempt to create 3d contexts aren't affected.

What part(s) of the site page(s) are affected?
The /post/show page with swfs.

Let me know if I can be more clear, I'd really like to create a performant game and this tag really hurts.

Updated

the first page of google doesn't mention any security exploits with this tag, so it might be "safe" on that level, unless somebody blatantly hijacks the screen like with your filling a popup situation. i actually have Flash disabled, so i don't know much about the program.

Updated by anonymous

gpu mode isn't supported by all browsers, and I don't know if it is possible to set fallback params.
direct should be "ok". It doesn't expose any part of the webpage to the flash file, flash files can toast the GPU more than usual though.
I would be OK with it but ultimate decision is up to Kira and Nimmy.
But I would find the best solution to kill flash off completely and replace with html5 canvas/webgl but unfortunately there is no 100% safe way to sandbox it. :(

Updated by anonymous

Chaser said:
But I would find the best solution to kill flash off completely and replace with html5 canvas/webgl but unfortunately there is no 100% safe way to sandbox it. :(

I'd love this as well, I'm a performance focused game programmer. Being forced to use Flash without the gpu to make anything for the furry community really hurts. 3:

Also, I'm pretty sure Flash is just as exploitable as html5. Sites like Facebook have been sandboxing html5 for years now, I assume there's no html5 on e6 because of the work it would take, not because it's insecure, am I wrong?

Updated by anonymous

  • 1