hw3web Posted March 6, 2014 Share Posted March 6, 2014 What is the best way to empty memory from reloading this same scene to not double memory slot. I realize that each time I refresh page consumption of memory just adding. I try: var engine = null;var scene = null; or if (scene) { scene.dispose(); scene = null; } is there any other, best way to dump from memory scene and engine before start again this same or just remove any other so they not use memory and CPU!? Quote Link to comment Share on other sites More sharing options...
hw3web Posted March 6, 2014 Author Share Posted March 6, 2014 Or is there bug in firefox as in chromium refresh not add any consumption of memory ??? - I am bit confuse(.com ). Quote Link to comment Share on other sites More sharing options...
prtksxna Posted March 6, 2014 Share Posted March 6, 2014 I think you are looking for delete scene;? Quote Link to comment Share on other sites More sharing options...
hw3web Posted March 6, 2014 Author Share Posted March 6, 2014 I thought dispose() do that !??? - is not ?! Quote Link to comment Share on other sites More sharing options...
gwenael Posted March 16, 2014 Share Posted March 16, 2014 You should also follow this thread if it's not already the case: http://www.html5gamedevs.com/topic/4664-strange-fps-output-behaviour/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.