add {flush: false} option to endRendering to prevent a flush.
support passing {flush: true|false} to endRendering