Gorpomon Posted June 20, 2016 Share Posted June 20, 2016 Hi all, I'm making a game in phaser and it is making my mac run very hot. I'm looking to find out what might be the cause. I noticed the first time it happened was when I made a shooter game that did not cache bullet objects, but instead just created new ones. After maybe 20 refreshes the game was causing my mac to run very hot (so much that you wouldn't want it on your lap). I fixed that and it cooled down. The second time was when I was logging 'this' in an update function, which I don't think should result in that but it was. Outside of not reusing objects what else can be a really big memory/processor suck in your game? Link to comment Share on other sites More sharing options...
Str1ngS Posted June 21, 2016 Share Posted June 21, 2016 Google Chrome has excellent profiling tools that can really help you see what your game is doing cpu/mum wise: For CPU: https://developer.chrome.com/devtools/docs/cpu-profiling And memory: https://developer.chrome.com/devtools/docs/javascript-memory-profiling These should help you find any cause of memory and/or cpu leaks. Don't forget to run them on un-minified code so you get the best result! DevJ and drhayes 2 Link to comment Share on other sites More sharing options...
3ddy Posted June 21, 2016 Share Posted June 21, 2016 For me setting rendering to Phaser.CANVAS when initialising game helped to lower temperature and increased fps specifically on MAC var game = new Phaser.Game(sizeX, sizeY, Phaser.CANVAS); Link to comment Share on other sites More sharing options...
Recommended Posts