mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
parent
ef31a6bb21
commit
27dbf1bbb7
@ -355,7 +355,8 @@ func (i *Image) appendDrawImageHistory(image *Image, vertices []float32, indices
|
|||||||
if i.stale || i.volatile || i.screen {
|
if i.stale || i.volatile || i.screen {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const maxDrawImageHistoryNum = 100
|
// TODO: Would it be possible to merge draw image history items?
|
||||||
|
const maxDrawImageHistoryNum = 1024
|
||||||
if len(i.drawImageHistory)+1 > maxDrawImageHistoryNum {
|
if len(i.drawImageHistory)+1 > maxDrawImageHistoryNum {
|
||||||
i.makeStale()
|
i.makeStale()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user