prepareChapter

open override fun prepareChapter(chapter: Int)

Lays out one chapter. This is where a book's time goes, so it is also the only thing a reader has to wait for: opening at chapter 20 prepares chapter 20, not chapters 0 to 20.

Pages laid out this way count as never used: a loader that walks the whole book behind the reader must not push the chapter being read out of the budget, so these are the first to drop.