mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-15 15:37:28 +01:00
2ad0e9a9db
Since `debug.IsDebug` is a constant, by putting the `strings.Cut` calls inside the check this makes the `(*commandqueue).flush` method faster when Ebitengine is compiled without the debug build tag. Without the if `debug.IsDebug` check, unnecessary allocations occur (since the logger is a noop logger when debug is disabled). |
||
---|---|---|
.. | ||
command.go | ||
commandqueue.go | ||
doc.go | ||
export_test.go | ||
image_js.go | ||
image_notjs.go | ||
image_test.go | ||
image.go | ||
shader.go | ||
thread.go |