Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Memory allocation for WebGL exports

srfstudio
Registered User
Quote
2018-09-07 18:05:10

Is there a way to allocate more memory in WebGL exports? Editor's Scene Metrics estimated memory amount seems very low since it's only 266mb.


niko
Moderator
Quote
2018-09-10 07:43:10

Not sure what for? The smaller the amount of memory need, the better, no?


srfstudio
Registered User
Quote
2018-09-10 22:08:42

Sure but my logic was that maybe more memory would make things a bit smoother in WebGL.

My level really does uses a nicely-small amount of memory while playing on Chrome & that's great but I was wondering if uneven frame-rate would maybe be smoothed out with higher memory usage.

According to Chrome's Task Manager, the level's memory consumption goes as high as 1gb at the level loading and than, once loaded, goes down to 260mb/300mb.

On separate note, I don't get the problems with Mozilla, all my exports are basically unplayable, the frame-rate is lower than 20 at best and keyboard input seems to be highly lagging, resulting in almost un-responsive controls.

It's not a huge problem, everything works normal on Chrome, Opera and, as I heard from people, Edge. But why not Mozilla? Usually things are more smooth on Mozilla comparing to other browsers. All my HTML5 apps worked the same if played on Chrome, Opera or Mozilla.


niko
Moderator
Quote
2018-09-11 07:50:53

From what you describe, this sounds like you have some huge level, and the browser needs a lot of time to draw a frame, causing your game and especially the input to lag. If this is the case, try splitting up your level, or hiding parts of it when far away, this usually helps very much.


j9907
Registered User
Quote
2018-09-11 10:45:29

Yes. i can vouch for the "hide areas" method. I had a level which was an apartment building and you start at floor 3, and there was a full outside area along with 2 other floors. It would drop to 20 the second the game would start. I made it so when you go to floor 1, it hides floors 2 and 3, along with all of the objects on those floors, and vice versa for the rest. It improved the framerate tenfold. Solid 60


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact