mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
a18cddb39f
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. |
||
---|---|---|
.. | ||
affine | ||
buffered | ||
clock | ||
devicescale | ||
driver | ||
glfw | ||
graphics | ||
graphicscommand | ||
graphicsdriver | ||
hooks | ||
jsutil | ||
mipmap | ||
packing | ||
png | ||
restorable | ||
shareable | ||
testflock | ||
thread | ||
uidriver | ||
web |