mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
b019a3723a
This change skips rendering when 1) the screen is not cleared every frame (`SetScreenClearedEveryFrame(false)`) and 2) Draw doesn't draw anything onto the screen. The GPU usages decreased on some machines (e.g. GPU usage was 10% with an empty Ebitengine project and became 2-3 % on a Windows machine). Updates #2341 |
||
---|---|---|
.. | ||
ca | ||
mtl | ||
ns | ||
graphics_darwin.go | ||
README.md | ||
shader_darwin.go | ||
view_darwin.go | ||
view_ios.go | ||
view_macos_darwin.go |
These packages are copied from Dmitri Shuralyov's mtl packages and edited with Dmitri's permission:
github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ca
(copied fromdmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ca
)github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/mtl
(copied fromdmitri.shuralyov.com/gpu/mtl
)github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ns
(copied fromdmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ns
)