mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 23:14:28 +01:00
parent
ed99719fdb
commit
cdc408d2c2
@ -220,13 +220,16 @@ func (i *Image) DrawImage(img *Image, vertices []float32, indices []uint16, colo
|
|||||||
i.backend.restorable.DrawImage(img.backend.restorable, vertices, indices, colorm, mode, filter)
|
i.backend.restorable.DrawImage(img.backend.restorable, vertices, indices, colorm, mode, filter)
|
||||||
|
|
||||||
i.countForShare = 0
|
i.countForShare = 0
|
||||||
if !img.isShared() && img.shareable() {
|
|
||||||
img.countForShare++
|
// TODO: Reusing shared images is temporarily suspended for performance. See #661.
|
||||||
if img.countForShare >= MaxCountForShare {
|
//
|
||||||
img.forceShared()
|
// if !img.isShared() && img.shareable() {
|
||||||
img.countForShare = 0
|
// img.countForShare++
|
||||||
}
|
// if img.countForShare >= MaxCountForShare {
|
||||||
}
|
// img.forceShared()
|
||||||
|
// img.countForShare = 0
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) ReplacePixels(p []byte) {
|
func (i *Image) ReplacePixels(p []byte) {
|
||||||
|
Loading…
Reference in New Issue
Block a user