ebiten/internal
corfe83 a18cddb39f
Reduce heap allocations in thread.go and input.go (#1085)
I've been doing some profiling of a very simple ebiten project, and noticed that thread.go was doing a bunch of unnecessary allocations to accomplish its work. This change seeks to reduce GC work.

Input.go was also doing some unnecessary allocations.

The thread.go change reduces the total number of allocations per frame from 1342 to 852 (~36% reduction). The input.go change reduces it further to 752 (~44% total reduction). Perf tests were done on windows.
2020-02-21 09:59:45 +09:00
..
affine affine: Add ColorM.Scale tests 2019-01-23 02:50:30 +09:00
buffered graphics: Allow ReplacePixels on a sub-image 2020-02-16 22:18:07 +09:00
clock clock: Avoid calling (js.Value).Get() for performance 2019-09-28 01:47:48 +09:00
devicescale devicescale: Remove the updating loop 2019-05-08 01:14:22 +09:00
driver driver: Remove the return value from RunWithoutMainLoop 2020-02-11 23:56:53 +09:00
glfw Revert "ui: Add SetInitFocused" 2020-02-10 01:10:40 +09:00
graphics graphics: Remove PutQuadVertices 2019-09-21 04:14:25 +09:00
graphicscommand graphics: Fill the screenshot in black when the screen is not transparent 2020-02-06 03:08:16 +09:00
graphicsdriver graphicsdriver/metal: Bug fix: avoid using mtl.LoadActionDontCare 2020-02-11 20:29:03 +09:00
hooks audio: More intellegent suspending/resuming (#617) 2018-05-26 23:31:04 +09:00
jsutil graphicsdriver/opengl: Use glBufferSubData instead of glTexSubImage2D on browsers 2020-01-02 16:27:51 +09:00
mipmap graphics: Fill the screenshot in black when the screen is not transparent 2020-02-06 03:08:16 +09:00
packing Typo Corrections from https://goreportcard.com/ (#1042) 2020-01-01 23:59:56 +09:00
png png: Add stdlibfuzz.go 2019-11-26 00:13:50 +09:00
restorable graphics: Fill the screenshot in black when the screen is not transparent 2020-02-06 03:08:16 +09:00
shareable graphics: Fill the screenshot in black when the screen is not transparent 2020-02-06 03:08:16 +09:00
testflock Small cleanup (#877) 2019-05-26 18:06:43 +09:00
thread Reduce heap allocations in thread.go and input.go (#1085) 2020-02-21 09:59:45 +09:00
uidriver mobile/ebitenmobileview: Handle keyboard keys on Android (ebitenmobile) 2020-02-20 01:53:51 +09:00
web web: Bug fix: iPad was not recognized as iOS 2019-11-10 16:52:49 +09:00