shader: store a batch in Buffer to avoid a linear lookup for each render call.
Display more debug information in the title, including timings.
Merge pull request #90 from eddyb/gfx-perf-and-counters

Removed a source of quadratic behavior and added some timings.