Commit Graph

2 Commits

Author SHA1 Message Date
4d1ef84568 Try initializing and move trains in Web Workers
Unfortunately, all of the train data has to be copied from the train web worker
to the main thread on every tick so it knows the new positions of the trains to
render. So every few ticks, the GC causes a little lag as it collects ~90+MB of
obsolete train arrays. There's no way for the two threads to share the same data
thanks to Spectre.
2018-04-22 18:40:20 -04:00
35b4ef25bb Use image sprite for trains 2018-04-15 04:02:54 -04:00