mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
examples/doomfile: Skip renderFire when possible
This commit is contained in:
parent
3f28592700
commit
b7c1d8db3c
@ -120,12 +120,12 @@ func renderFire() {
|
|||||||
|
|
||||||
func update(screen *ebiten.Image) error {
|
func update(screen *ebiten.Image) error {
|
||||||
updateFirePixels()
|
updateFirePixels()
|
||||||
renderFire()
|
|
||||||
|
|
||||||
if ebiten.IsDrawingSkipped() {
|
if ebiten.IsDrawingSkipped() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderFire()
|
||||||
screen.ReplacePixels(pixels)
|
screen.ReplacePixels(pixels)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user