melonJS icon indicating copy to clipboard operation
melonJS copied to clipboard

PreRender not Working with Tiled

Open aaschmitz opened this issue 13 years ago • 5 comments

Hi

Enabling the me.sys.preRender, the console displays the error "Uncaught TypeError: Cannot call method 'drawTile' of undefined melonJS-0.9.7.js:11486" when loading the Tiled level.

Tested with tmx and json, both displays the same error.

Thanks!

aaschmitz avatar Mar 13 '13 02:03 aaschmitz

roohh I actually didn't test pre-render with 0.9.7 !

ghost avatar Mar 13 '13 02:03 ghost

@ciangames that was a quick one, thanks again :)

ghost avatar Mar 13 '13 03:03 ghost

Olivier

Worked flawlessly!

Thanks!

aaschmitz avatar Mar 14 '13 02:03 aaschmitz

great thank you for (both) feedback !

now that you can enable it, do you see any improvements on android using cocoonJS ? pre-rendering allowing to highly limit the amount of draw operation, it should greatly help, specially with a fix level and dirtyRect enabled :)

ghost avatar Mar 14 '13 03:03 ghost

Hi Olivier

The first thing I did was test it in the CocoonJS and the FPS increased from 15-17fps to 16-19fps.

Some fps more, but still very slow, not playable :(

Perhaps the CocoonJS has some incompability with Android 2.3, I will try to migrate to Android 4 hereafter and try again.

Thanks for adjustments!

aaschmitz avatar Mar 15 '13 01:03 aaschmitz