Skip to main content
alekop's user avatar
alekop's user avatar
alekop's user avatar
alekop
  • Member for 13 years, 2 months
  • Last seen more than a week ago
awarded
comment
Behavior tree: tick frequency and fast-running tasks
@Vaillancourt Hmm, I don't like the idea of completely asynchronous nodes... They can't be paused when the game is paused, and they run out of sync with the game loop, making things non-deterministic.
Loading…
Loading…
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
comment
Huge performance difference when using drawImage with IMG vs CANVAS
@SethBattin It may not be a good "question", but several people have found the information useful, and judging by the number of jsperf revisions, there is still interest in the topic.
accepted
awarded
awarded
comment
Canvas - darken sprites rendered by drawImage
Yeah, it would be faster, but the trouble is, I have 16 light levels, and I am considering going up because the difference from one tile to the next is still rather noticable. That would mean increasing the memory consumption by 16x! I guess I could give this technique a try, it just feels like it wouldn't be fast enough.
comment
Canvas - darken sprites rendered by drawImage
That's a good and simple technique, but I fear it would be too slow to be done on a per-tile basis.