Unity Web - putting game into frozen state to reduce memory use

Hi,

We have a unity file that fills the browser window. When something is clicked we show an iframe over the top that contains various content, including another unity file. However having the full screen unity file in the background is making the one in the foreground very laggy. I was wondering if there was a way to put the background movie into some sort of frozen state when content is being shown over the top, that would allow the computer to allocate more memory to the foreground movie?

I have tried setting Time.timeScale=0 but that didn’t help.

Example of problem: http://scienceisland.com/

I have “Run in Background” unchecked. Is there a way to trick the plugin into thinking it is in the background when the iframe is shown over the top?

Any suggestions would be great.

Thanks

jumping the background movie to a very plain scene when the other content is be shown seems to have helped a lot, but would be happy to hear any other suggestions.

Thanks

Unity does not work very well if multiple unity web-player are running at the same time at the same page…
And since unity expects to only rune once per tab / page it will not get the focus lost if you open another plugin view (so the Run in Background is not working)

Thanks for that. Couldn’t the iframe be seen as another page?

My guess is that the iframe counts as the same page but im not a web expert.