Added elapsed time control in flushDeletedTextureObjects