ebiten/internal
divVerent 574925cf7a
packing: remove redundant canAlloc checking and alloc allocating. (#2629)
By removing redundant work done in canAlloc and just calling alloc right away,
this removes 35% contribution to AAAAXY loading CPU time on the profile on
https://user-images.githubusercontent.com/251568/230496805-c5e32c19-9258-49c8-800b-a3f0bc3b072d.svg,
or - as measured via stopwatch - brings loading time on Moto G7 Play from
17.22s to 14.94s after already applying #2627.

This should be safe as there is no case in which alloc succeeds and the
allocated region isn't used; also, there is no case in which alloc mutates the
tree when it doesn't actually succeed (comment added in one place to justify
this).

Closes #2628
2023-04-08 22:03:16 +09:00
..
affine internal/affine: refactoring: use slices instead of array pointers 2022-09-30 22:20:32 +09:00
atlas internal/atlas: improve tests 2023-03-02 20:16:26 +09:00
buffered internal/buffer: refactoring 2023-02-26 02:20:07 +09:00
builtinshader internal/builtinshader: fix comments 2022-10-10 13:14:37 +09:00
clock all: update URLs in comments 2022-11-21 01:46:50 +09:00
cocoa all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
debug all: replace interface{} with any (#2430) 2022-11-03 15:33:09 +09:00
devicescale all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
file ebiten: implement DroppedFiles to replace AppendDroppedFiles 2023-01-25 14:27:11 +09:00
gamepad internal/gamepad: bug fix: possible crash at iterating gamepads 2023-03-17 11:40:24 +09:00
gamepaddb cmd/ebitenmobile: fix Xbox-ish gamepad axis assignment (#2596) 2023-03-12 22:32:30 +09:00
glfw ebiten: add AppendDroppedFiles 2023-01-22 17:22:25 +09:00
goglfw internal/goglfw: ignore invalid-window-handle error at DestroyWindow 2023-03-31 23:59:11 +09:00
graphics internal/graphics: rename constants 2023-03-23 20:48:39 +09:00
graphicscommand ebiten: omit the exceeding part of vertices at Draw* 2023-03-23 21:23:33 +09:00
graphicsdriver internal/goglfw: separate the Windows version detection to a new package winver 2023-03-31 02:16:01 +09:00
hooks internal/hooks: Enable to return error at suspend/resume audio 2021-05-04 23:09:01 +09:00
jsutil all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
microsoftgdk internal/microsoftgdk: improve forward compatibility 2022-12-25 22:00:22 +09:00
mipmap internal/graphics: use flatten []float32 slice instead of [][]float32 2022-12-03 20:23:58 +09:00
packing packing: remove redundant canAlloc checking and alloc allocating. (#2629) 2023-04-08 22:03:16 +09:00
png go generate 2023-03-15 03:18:28 +09:00
processtest internal/processtest: output a better error message when failing to compile a Go program 2023-04-01 04:01:39 +09:00
restorable internal/restorable: refactoring 2023-03-10 22:29:59 +09:00
shader internal/shader: bug fix: check the type for composite literal 2023-02-20 23:07:11 +09:00
shaderir all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
testing internal/testing: add the default exit code 1 2022-10-02 18:16:16 +09:00
thread all: separate the rendering thread from the main thread 2022-12-30 22:57:34 +09:00
ui internal/ui: a more robust fix for the unfocused-window loop 2023-04-01 03:36:51 +09:00
vibrate all: remove old // +build comments (#2431) 2022-11-03 12:55:14 +09:00
winver internal/goglfw: separate the Windows version detection to a new package winver 2023-03-31 02:16:01 +09:00