Use github.com/bamiaux/rez instead of github.com/nfnt/resize for resampling the pyramid tiles. It is much faster but needs some testing.

This commit is contained in:
Sascha L. Teichmann
2015-12-25 22:07:54 +01:00
parent 6ae5936de9
commit f658d12641
3 changed files with 34 additions and 12 deletions

View File

@ -15,8 +15,13 @@ import (
"strconv"
"sync"
"time"
"github.com/bamiaux/rez"
)
// ResizeFilter is used to scale down the pyramid tiles.
var ResizeFilter = rez.NewLanczosFilter(3)
var rrand uint32
var rrandmu sync.Mutex