jwvhewitt / gearhead-1

GearHead: Arena, the first game in this roguelike mecha RPG series.
Other
88 stars 18 forks source link

Draw map to terminal by rows, not columns #86

Open o11c opened 7 years ago

o11c commented 7 years ago

Terminals are fundamentally row oriented, not column-oriented. This saves seek calls and avoids the visual lag as the screen updates.

o11c commented 7 years ago

Doing all drawing via a cell buffer (and flushing explicitly) would save in a lot more cases, but this patch is a trivial change for nontrivial benefit.