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 {
|
||||
updateFirePixels()
|
||||
renderFire()
|
||||
|
||||
if ebiten.IsDrawingSkipped() {
|
||||
return nil
|
||||
}
|
||||
|
||||
renderFire()
|
||||
screen.ReplacePixels(pixels)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user