Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/graphicscommand: add a debug.IsDebug check before splitting …
…strings (#3134) 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).
- Loading branch information