nkrisztian89 / interstellar-armada

A Javascript-WebGL 3D space combat game under development.

Home Page:http://nkrisztian89.github.io/interstellar-armada

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pools with linked lists

nkrisztian89 opened this issue · comments

implement the Pool class using linked lists (one for used, one for free objects) instead of arrays, so that going through used objects is quicker (does not need to check all objects)

does not sound like such a good idea anymore, linked lists case a lot of jumping around in memory