Hi Constructors, I'm new to Construct 2 , and I made a game with some pixel tilemap as Land and Sky , When I tested the game on Chrome PC, it worked very well ,but I used CocoonJs on my android Nexus 7 , the FPS drop to 15-24 . Then I delete the tilemap , it worked fine on android again (FPS 50-60) . So the problem has something to do with the tilemap or its settings.My tilemap images are very small , about 1KB,made with PyxelEdit
This is my Project settings :
Pixel Rounding : On
Window Size : 720p
Fullscreen in browser : Letterbox integer scale
Use High-DPI display : Yes
Sampling : Point
Clear Background ; No
Capx Download: dropbox.com/s/nsj0bc26hke7t4v/Sugar.capx
BitMaps: dropbox.com/s/vc8v87ifci0hehi/SugarPicture.rar
It was solved , thanks !
Solutions:
Ashley
that's a very inefficient use of tilemaps. Since you're just using it to repeat a single image, it would be far, far more efficient to use the Tiled Background object.
If you run it in the debugger you can see it reports 441 draw rects for that tilemap, mainly because every tile is different and there are no areas of the same tile. This means it's about the same work as drawing 441 sprites. If you used a single tiled background object, it would take 1 draw call, which would be approximately 400 times more efficient.
ThunderZ
How amazing bad use of tilemap and C2.
As Ashley say use tiled background.
Exemple :
1 pixel color gradiant for your blue background (non alpha) + 1 tiled sprite for 'clouds' with alpha. (the size you want placed at top of the gradiant sprite).