Mochi preloader and Kong's wmode parameter

6 posts

Flag Post

I don’t want my game to be hardware accelerated rather than software rendered. But every time I upload my game with the Mochi preloader integrated, wmode html parameter in Kong’s source was set to direct.

I checked the embed source on Kongregate for the both swfs. The wmode parameter for the one with the Mochi preloader is set to direct whereas the one without Mochi preloader doesn’t have any wmode set.

// source with preloader -————————-

swfobject.embedSWF(swf_location, “gamediv”,“800”,“600”,“6”,“/flashexpressInstall.swf”,swfobject_flash_vars, {“bgcolor”:“#cccccc”,“allownetworking”:“all”,“allowscriptaccess”:“never”, “base”:“http://assets.kongregate.com/gamez/0018/6331/live/”;},{});

// without Mochi preloader -———————

swfobject.embedSWF(swf_location, “gamediv”,“800”,“600”,“6”,“/flashexpressInstall.swf”,swfobject_flash_vars, {“wmode”:“direct”,“bgcolor”:“#cccccc”,“allownetworking”:“all”,“allowscriptaccess”:“never”, “base”:“http://assets.kongregate.com/gamez/0018/6331/preview/”;},{});


no wmode is set :- preview (this doesn’t have a preloader)

There is a preview version with preloader ready to be published.. no way to show it here though. But here is the direct link to the swf that has a preloader
http://assets.kongregate.com/gamez/0018/6331/preview/Broken_Wind.swf?kongregate_game_version=1381296633

I’m trying to get my head around this.. so how can I use Mochi preloader without affecting wmode settings in Kongregate source?

 
Flag Post
Originally posted by reversiblean:

I don’t want my game to be hardware accelerated rather than software rendered.

Why not?

 
Flag Post
Originally posted by player_03:
Originally posted by reversiblean:

I don’t want my game to be hardware accelerated rather than software rendered.

Why not?

Because then it’ll run smoother and perfectly even on fairly old hardware. As I know that it lags on my old laptop whenever I set wmode to direct.

 
Flag Post

I believe that if a machine is incapable of utilising a certain type of hardware acceleration, it switches back to not using it. I could be wrong though.

 
Flag Post

It definitely falls back to software rendering, according to something I vaguely remember reading somewhere.

I mean, what else would it do? Simulate a GPU on the CPU?


As for wmode=direct causing lag, you’ll have to ask someone else because I don’t know. Same with the preloader, but ideally you’d find a way to make wmode=direct not lag.

 
Flag Post

Try using Context3DRenderMode.SOFTWARE when requesting Context3D.