hellochar / ggj2016

roguelike that uses web technologies and free web assets as much as possible
https://5-71942994-gh.circle-artifacts.com/0/home/ubuntu/ggj2016/build/index.html
MIT License
2 stars 0 forks source link

priority queue capable of handling arbitrary times #32

Open hellochar opened 7 years ago

hellochar commented 7 years ago

should improve perf a lot because trees no longer update themselves constantly doing nothing.

hellochar commented 7 years ago

Does the data structure need to be immutable? Is it part of the redux state?

It might make sense to make the actual priority queue part of it mutable (e.g. have a mutable priority queue class that does the actual logic), and then have a way to communicate back to Redux.