turn off draw list size debug, add todo
This commit is contained in:
parent
e4c15fcd5d
commit
baf255e8a8
2 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
|
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
const showDrawListSize = true
|
const showDrawListSize = false
|
||||||
|
|
||||||
var _ interface {
|
var _ interface {
|
||||||
Disabler
|
Disabler
|
||||||
|
|
|
@ -152,6 +152,7 @@ func (p *Prism) DrawAfter(x Drawer) bool {
|
||||||
case *Prism:
|
case *Prism:
|
||||||
// Fast path for other prisms
|
// Fast path for other prisms
|
||||||
if p.pos.Z == x.pos.Z {
|
if p.pos.Z == x.pos.Z {
|
||||||
|
// TODO: account for projection
|
||||||
return p.pos.Y < x.pos.Y
|
return p.pos.Y < x.pos.Y
|
||||||
}
|
}
|
||||||
return p.pos.Z > x.pos.Z
|
return p.pos.Z > x.pos.Z
|
||||||
|
@ -181,6 +182,7 @@ func (p *Prism) DrawBefore(x Drawer) bool {
|
||||||
case *Prism:
|
case *Prism:
|
||||||
// Fast path for other prisms
|
// Fast path for other prisms
|
||||||
if p.pos.Z == x.pos.Z {
|
if p.pos.Z == x.pos.Z {
|
||||||
|
// TODO: account for projection
|
||||||
return p.pos.Y > x.pos.Y
|
return p.pos.Y > x.pos.Y
|
||||||
}
|
}
|
||||||
return p.pos.Z < x.pos.Z
|
return p.pos.Z < x.pos.Z
|
||||||
|
|
Loading…
Reference in a new issue