How to improve performance with many objects in game in HTML5? -


what things can when it's necessary show many objects , calculate position, collision detection, reaction, etc. , want smoothly? here's example i'm developing. want if have 100 balls on screen, can show them smoothly. don't have idea of how it. every suggestion appreciated.

the basic steps improve performance in canvas can seen in html5 rock's canvas performance tutorial.

and, if free handle collision detection without box2d, check quad-tree implementation. quad-tree doesn't deals collisions directly can improve performance reducing amount of comparisons needed detect collisions.

articles suggestion further reading:

broad phase collision detection using spatial partitioning

collision detection , response

making games box2dweb


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -