love.js icon indicating copy to clipboard operation
love.js copied to clipboard

Performance issues with only some games

Open coltonoscopy opened this issue 7 years ago • 1 comments

Hello!

In testing ~8 different small games of mine with love.js, most of them work great, but there are a couple (a Super Mario clone and a Pokémon clone) that seem to run very slow in the browser (60 FPS when run native), though it's not obvious to me what the key difference is for these versus the others. Here are the links to the Mario repo and a deployment of the game for testing:

Original repo (mario subfolder): https://github.com/games50/mario Emscripten port: https://github.com/coltonoscopy/mario-love-emscripten Live Emscripten: https://coltonoscopy.github.io/mario-love-emscripten/

This game is really just a very simple platformer on a fairly small level with some creatures that have incredibly simple AI. Any clues or tips would be much appreciated; thank you!

coltonoscopy avatar Jun 15 '18 18:06 coltonoscopy

Check for sounds with the "streaming" option and try them with the "static" option. It speed up my game, and stopped the audio from breaking sometimes. It will use more memory but at least works well.

drmargarido avatar Feb 12 '19 14:02 drmargarido