turn off draw list size debug, add todo

This commit is contained in:
Josh Deprez 2021-09-17 16:52:45 +10:00
parent e4c15fcd5d
commit baf255e8a8
2 changed files with 3 additions and 1 deletions

View file

@ -16,7 +16,7 @@ import (
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
)
const showDrawListSize = true
const showDrawListSize = false
var _ interface {
Disabler

View file

@ -152,6 +152,7 @@ func (p *Prism) DrawAfter(x Drawer) bool {
case *Prism:
// Fast path for other prisms
if p.pos.Z == x.pos.Z {
// TODO: account for projection
return p.pos.Y < x.pos.Y
}
return p.pos.Z > x.pos.Z
@ -181,6 +182,7 @@ func (p *Prism) DrawBefore(x Drawer) bool {
case *Prism:
// Fast path for other prisms
if p.pos.Z == x.pos.Z {
// TODO: account for projection
return p.pos.Y > x.pos.Y
}
return p.pos.Z < x.pos.Z