zetsubou Posted November 30, 2018 Share Posted November 30, 2018 I have already made a lot of stuff in my game(supermario-like), so now the only thing, that bothers me is performance, that im struggling with. When the game is just started, players movements are very slow and I don't have a clue why. Perhaps, it might be the size of map(or game bounds, that I widely expanded) - 2400x16000. I've read article about chunking map into small pieces to decrease CPU usage, but haven't tried it yet(should I? guess I will try it anyway, but still would like to listen to some good advices). Oh, almost forgot this case. It lags about 10-15 seconds every time I open page in the browser - switching to any other application(page in browser, application on PC, etc.) causes this effect. Link to comment Share on other sites More sharing options...
samme Posted November 30, 2018 Share Posted November 30, 2018 Could switch to dynamic tilemap layers, if you're using static. Link to comment Share on other sites More sharing options...
zetsubou Posted December 3, 2018 Author Share Posted December 3, 2018 On 12/1/2018 at 3:09 AM, samme said: Could switch to dynamic tilemap layers, if you're using static. Perhaps, it might have changed something, but I didn't notice(the difference is varying between 0-5 fps). And map is about to be expanded even more, than it's now. During this holidays I've come up with an idea of creating single image of ground blocks, rather than making a single block of tilemap separately. Though it seems to look ugly af at the end(what I am afraid of). Link to comment Share on other sites More sharing options...
zetsubou Posted December 3, 2018 Author Share Posted December 3, 2018 I wouldn't care about this issue, if game's framerate was bigger, than 30. However, sometimes, it drops right up to 15. Link to comment Share on other sites More sharing options...
Recommended Posts