high resource usage when i build TD game.

kzsharekzshare Member, PRO Posts: 8

My Game
https://appurl.io/j357rxr4

first of all I wanna say sorry about my english.

I used high resource every sec for checking enemy position and bullet position for AOE Spell.

  • each enemy need to send position X and Y to DB every 0.2 sec (10 enemy = 10 times every 0.2sec and sometime number of enemy on screen more than 30)
  • each bullet will be check enemy position when reach to destination then damage calculate.
  • for continous spell such as fire wall need to check all enemy postition every sec.I try to using search position for get start index(first enemy id that position is in spell radius and last index) before loop again. it get better performance but still no good enough.

any idea for play smooth . i need at least Iphone6 for play with no lag.

thanks.

https://puu.sh/w23Rv/648a87688f.png

Sign In or Register to comment.