Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

iOS Performance (any tips or tricks?)

$
0
0

Hi all, on with another slot game at the moment, the last one we did had issues performance wise with iOS and looks like this one is going to be the same.  Android & desktop were fine, hitting between 30fps - 60fps depending on the hardware. iOS though CPU load was massive, we were using spines for the icons (the slot was a 6x5 grid) and in the end had to drop the majority of them to simple sprites.  We had tried rendering to texture off canvas, and whilst it had performance gains on android and desktop, minimal on iOS.

There were quite a lot of spines being used in the previous game as the repeating reel strips were in bunches of 5's so dropped that system this time around, and have something a lot more similar to the pixi slot demo, with just one extra icon per reel masked out on a loop.  Still spines but only one instance of each icon being rendered on the app ticker to a sprite textures.

Again performance on desktop and android more than acceptable even with some more filters applied (50-60fps on a Galaxy S7) and 60fps solid on a Note8.  iPhone 6 15fps. 

Tried many things yesterday, removing all filters & masks, stopping the spine animations, rendering only a single frame (not on the ticker) and could only still get it to 25fps.  Really seems to be an issue with iOS and wondered if there were any tips (renderer settings?) to make it more on par with android/desktop.

The game wouldn't even load on my ipad3 either, no way to see why (with no access to a mac at present) though that thing is so damn slow, even the pixi slot demo runs at around 20fps max.

Any advice greatly appreciated!

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles