This commit is contained in:
NatureFreshMilk 2019-01-17 15:59:59 +01:00
parent 5547cdec0f
commit 7694ebbd41
3 changed files with 6 additions and 1 deletions

View File

@ -10,3 +10,7 @@ $(STATIC_VFS):
build: $(STATIC_VFS)
go build
profile:
go test -cpuprofile=cprof ./tilerenderer
go tool pprof --text cprof

View File

@ -130,6 +130,7 @@ func (db *Sqlite3Accessor) CountBlocks(pos1 coords.MapBlockCoords, pos2 coords.M
if len(poslist) > 999 {
//https://stackoverflow.com/questions/7106016/too-many-sql-variables-error-in-django-witih-sqlite3
//TODO: return before nested for loops
return -1, nil
}

View File

@ -58,7 +58,7 @@ func TestTileRender(t *testing.T) {
panic("no renderer")
}
coord := coords.NewTileCoords(0,0,11,0)
coord := coords.NewTileCoords(0,0,12,0)
data, err := tr.Render(coord)