Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00ba400d15 | ||
|
|
a24f547709 | ||
|
|
9df98ef73d | ||
|
|
f65b0354df | ||
|
|
cc196afd2e | ||
|
|
8d9faaaee0 | ||
|
|
41fb0a3d5a | ||
|
|
dcf5ea29b0 | ||
|
|
70784b0f1b | ||
|
|
deef204bd3 | ||
|
|
25dd3aa920 | ||
|
|
0d4cdbd8ca | ||
|
|
9727aa4d7a | ||
|
|
b8b05954b1 | ||
|
|
58a2d5267e | ||
|
|
cd29426bbe | ||
|
|
b32255ebc5 | ||
|
|
e6be17fb71 | ||
|
|
85d475314f | ||
|
|
4dced062a5 | ||
|
|
cf888f26cd | ||
|
|
248e57d3f0 | ||
|
|
3539943e4e | ||
|
|
209e774230 | ||
|
|
4dc173ecee | ||
|
|
5041753bad | ||
|
|
9e680c62fe | ||
|
|
589f2bd45c | ||
|
|
c720774c79 | ||
|
|
c1f3d0e61b | ||
|
|
a85380fb71 | ||
|
|
21d2a2c0e4 | ||
|
|
d488161433 | ||
|
|
49a3b8a682 | ||
|
|
35420b7344 | ||
|
|
2c209da3b2 | ||
|
|
5040446ec1 | ||
|
|
269578548a | ||
|
|
90da5934d7 | ||
|
|
4aa3ed6ed8 | ||
|
|
fbae54aef0 | ||
|
|
eea672023f |
@@ -48,6 +48,10 @@ jobs:
|
|||||||
- name: Odin version
|
- name: Odin version
|
||||||
run: odin version
|
run: odin version
|
||||||
|
|
||||||
|
# assetbake tests need vendor:stb native libs
|
||||||
|
- name: Build Odin STB libraries
|
||||||
|
run: make -C "$(odin root)/vendor/stb/src"
|
||||||
|
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,14 @@
|
|||||||
*.bin
|
*.bin
|
||||||
tutorials/
|
tutorials/
|
||||||
|
|
||||||
|
# Flamegraph / perf profiling artifacts
|
||||||
|
tools/FlameGraph/
|
||||||
|
perf.data
|
||||||
|
perf.data.old
|
||||||
|
flame-*.svg
|
||||||
|
flame-*.jpg
|
||||||
|
flame-*-report.txt
|
||||||
|
flame.svg
|
||||||
|
flame.jpg
|
||||||
|
flame-report.txt
|
||||||
|
*_perf
|
||||||
|
|||||||
@@ -1,14 +1,42 @@
|
|||||||
.PHONY: shaders-vulkan shaders-d3d12 shaders-metal shaders-all toad check test help
|
.PHONY: shaders-vulkan shaders-d3d12 shaders-metal shaders-all bake toad hello_sprite crowd crowd_batch crowd_overdraw clip_thrash camera_sandbox clips check test help
|
||||||
|
.PHONY: flame flame-build flame-record flame-svg flame-report flame-tools
|
||||||
|
|
||||||
|
# Flamegraph profiling (needs: pacman -S perf). Example: make flame or make flame FLAME_EXAMPLE=crowd_batch
|
||||||
|
FLAME_EXAMPLE ?= crowd
|
||||||
|
FLAME_BIN := $(FLAME_EXAMPLE)_perf
|
||||||
|
FLAMEGRAPH_DIR ?= tools/FlameGraph
|
||||||
|
FLAME_OUT_DIR ?= flame
|
||||||
|
# One stamp per `make` invocation so svg/jpg/report share a name.
|
||||||
|
ifndef FLAME_STAMP
|
||||||
|
FLAME_STAMP := $(shell date +%Y%m%d-%H%M%S)
|
||||||
|
endif
|
||||||
|
FLAME_PREFIX := $(FLAME_OUT_DIR)/$(FLAME_EXAMPLE)-$(FLAME_STAMP)
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "Targets:"
|
@echo "Targets:"
|
||||||
@echo " shaders-vulkan Compile SPIR-V into shaders/vulkan/"
|
@echo " bake Bake all characters under content/characters/"
|
||||||
@echo " shaders-d3d12 Compile DXIL into shaders/d3d12/ (needs shadercross)"
|
@echo " shaders-vulkan Compile SPIR-V into shaders/vulkan/"
|
||||||
@echo " shaders-metal Compile MSL into shaders/metal/ (needs shadercross)"
|
@echo " shaders-d3d12 Compile DXIL into shaders/d3d12/ (needs shadercross)"
|
||||||
@echo " shaders-all Build all shader backends"
|
@echo " shaders-metal Compile MSL into shaders/metal/ (needs shadercross)"
|
||||||
@echo " test Run engine unit tests"
|
@echo " shaders-all Build all shader backends"
|
||||||
@echo " check Typecheck examples/toad"
|
@echo " test Run engine unit tests"
|
||||||
@echo " toad Run the toad example"
|
@echo " check Typecheck all examples"
|
||||||
|
@echo " toad Run the toad example (full demo)"
|
||||||
|
@echo " hello_sprite Minimal load + draw"
|
||||||
|
@echo " crowd Many sprites, one Character_Data"
|
||||||
|
@echo " crowd_batch Multi-texture batching stress (two toad loads)"
|
||||||
|
@echo " crowd_overdraw Stacked sprites overdraw stress"
|
||||||
|
@echo " clip_thrash Per-frame idle/walk clip flip stress"
|
||||||
|
@echo " camera_sandbox Pan camera / Space toggles follow"
|
||||||
|
@echo " clips Keys 1/2 switch idle/walk"
|
||||||
|
@echo " flame Build+record+SVG+JPG+text report (FLAME_EXAMPLE=$(FLAME_EXAMPLE))"
|
||||||
|
@echo " flame-build Optimized debug binary ($(FLAME_BIN))"
|
||||||
|
@echo " flame-record perf record (play, then quit)"
|
||||||
|
@echo " flame-svg Convert perf.data -> $(FLAME_PREFIX).svg/.jpg"
|
||||||
|
@echo " flame-report Convert perf.data -> $(FLAME_PREFIX)-report.txt"
|
||||||
|
|
||||||
|
bake:
|
||||||
|
./scripts/bake_all.sh
|
||||||
|
|
||||||
shaders-vulkan:
|
shaders-vulkan:
|
||||||
./scripts/shaders_vulkan.sh
|
./scripts/shaders_vulkan.sh
|
||||||
@@ -23,9 +51,68 @@ shaders-all: shaders-vulkan shaders-d3d12 shaders-metal
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
odin test engine
|
odin test engine
|
||||||
|
odin test assetbake
|
||||||
|
|
||||||
check:
|
check:
|
||||||
odin check examples/toad -collection:pkg=.
|
odin check examples/toad -collection:pkg=.
|
||||||
|
odin check examples/hello_sprite -collection:pkg=.
|
||||||
|
odin check examples/crowd -collection:pkg=.
|
||||||
|
odin check examples/crowd_batch -collection:pkg=.
|
||||||
|
odin check examples/crowd_overdraw -collection:pkg=.
|
||||||
|
odin check examples/clip_thrash -collection:pkg=.
|
||||||
|
odin check examples/camera_sandbox -collection:pkg=.
|
||||||
|
odin check examples/clips -collection:pkg=.
|
||||||
|
|
||||||
toad:
|
toad:
|
||||||
odin run examples/toad -collection:pkg=.
|
odin run examples/toad -collection:pkg=.
|
||||||
|
|
||||||
|
hello_sprite:
|
||||||
|
odin run examples/hello_sprite -collection:pkg=.
|
||||||
|
|
||||||
|
crowd:
|
||||||
|
odin run examples/crowd -collection:pkg=.
|
||||||
|
|
||||||
|
crowd_batch:
|
||||||
|
odin run examples/crowd_batch -collection:pkg=.
|
||||||
|
|
||||||
|
crowd_overdraw:
|
||||||
|
odin run examples/crowd_overdraw -collection:pkg=.
|
||||||
|
|
||||||
|
clip_thrash:
|
||||||
|
odin run examples/clip_thrash -collection:pkg=.
|
||||||
|
|
||||||
|
camera_sandbox:
|
||||||
|
odin run examples/camera_sandbox -collection:pkg=.
|
||||||
|
|
||||||
|
clips:
|
||||||
|
odin run examples/clips -collection:pkg=.
|
||||||
|
|
||||||
|
flame-tools:
|
||||||
|
@if [ ! -x "$(FLAMEGRAPH_DIR)/stackcollapse-perf.pl" ] || [ ! -x "$(FLAMEGRAPH_DIR)/flamegraph.pl" ]; then \
|
||||||
|
echo "Cloning FlameGraph scripts into $(FLAMEGRAPH_DIR)..."; \
|
||||||
|
git clone --depth 1 https://github.com/brendangregg/FlameGraph.git "$(FLAMEGRAPH_DIR)"; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
flame-build:
|
||||||
|
odin build examples/$(FLAME_EXAMPLE) -collection:pkg=. -out:$(FLAME_BIN) -debug -o:speed
|
||||||
|
|
||||||
|
flame-record: flame-build
|
||||||
|
@echo ">>> Profiling ./$(FLAME_BIN) — play for ~10–20s under load, then quit the window."
|
||||||
|
@echo ">>> If perf fails with permissions: sudo sysctl kernel.perf_event_paranoid=1"
|
||||||
|
perf record -F 99 -g --call-graph dwarf -- ./$(FLAME_BIN)
|
||||||
|
|
||||||
|
flame-svg: flame-tools
|
||||||
|
@test -f perf.data || { echo "No perf.data — run: make flame-record"; exit 1; }
|
||||||
|
@mkdir -p "$(FLAME_OUT_DIR)"
|
||||||
|
perf script | "$(FLAMEGRAPH_DIR)/stackcollapse-perf.pl" | "$(FLAMEGRAPH_DIR)/flamegraph.pl" > "$(FLAME_PREFIX).svg"
|
||||||
|
magick "$(FLAME_PREFIX).svg" "$(FLAME_PREFIX).jpg"
|
||||||
|
@echo "Wrote $(FLAME_PREFIX).svg and $(FLAME_PREFIX).jpg"
|
||||||
|
|
||||||
|
flame-report:
|
||||||
|
@test -f perf.data || { echo "No perf.data — run: make flame-record"; exit 1; }
|
||||||
|
@mkdir -p "$(FLAME_OUT_DIR)"
|
||||||
|
perf report --stdio --no-children > "$(FLAME_PREFIX)-report.txt"
|
||||||
|
@echo "Wrote $(FLAME_PREFIX)-report.txt"
|
||||||
|
|
||||||
|
flame: flame-record flame-svg flame-report
|
||||||
|
@echo "Artifacts: $(FLAME_PREFIX).{svg,jpg} $(FLAME_PREFIX)-report.txt"
|
||||||
|
|||||||
@@ -56,10 +56,12 @@ Char_Def :: struct {
|
|||||||
|
|
||||||
// Packed atlas pixels + per-frame rects (indexed like the combined frames list)
|
// Packed atlas pixels + per-frame rects (indexed like the combined frames list)
|
||||||
Atlas :: struct {
|
Atlas :: struct {
|
||||||
pixels: []u8,
|
pixels: []u8,
|
||||||
width: int,
|
width: int,
|
||||||
height: int,
|
height: int,
|
||||||
rects: [][4]int, // [x, y, w, h] per frame; sizes may differ across clips
|
rects: [][4]int,
|
||||||
|
source_sizes: [][2]int,
|
||||||
|
trim_offsets: [][2]int,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Where one clip's frames sit inside the packed atlas frame list
|
// Where one clip's frames sit inside the packed atlas frame list
|
||||||
@@ -95,6 +97,8 @@ bake_character :: proc(in_dir, out_dir: string) {
|
|||||||
atlas := pack_atlas(frames)
|
atlas := pack_atlas(frames)
|
||||||
defer delete(atlas.pixels)
|
defer delete(atlas.pixels)
|
||||||
defer delete(atlas.rects)
|
defer delete(atlas.rects)
|
||||||
|
defer delete(atlas.source_sizes)
|
||||||
|
defer delete(atlas.trim_offsets)
|
||||||
|
|
||||||
ensure_dir(out_dir)
|
ensure_dir(out_dir)
|
||||||
|
|
||||||
@@ -283,22 +287,60 @@ destroy_frames :: proc(frames: []^image.Image) {
|
|||||||
delete(frames)
|
delete(frames)
|
||||||
}
|
}
|
||||||
|
|
||||||
// pack_atlas packs variable-size frames with stb_rect_pack and blits them into one sheet.
|
opaque_bounds_rgba :: proc(pixels: []u8, iw, ih: int, alpha_min: u8 = 1) -> (x, y, w, h: int) {
|
||||||
// Caller owns atlas.pixels and atlas.rects.
|
min_x, min_y := iw, ih
|
||||||
|
max_x, max_y := -1, -1
|
||||||
|
|
||||||
|
for py in 0 ..< ih {
|
||||||
|
for px in 0 ..< iw {
|
||||||
|
i := (py * iw + px) * 4
|
||||||
|
if i + 3 >= len(pixels) do continue
|
||||||
|
a := pixels[i + 3]
|
||||||
|
if a >= alpha_min {
|
||||||
|
if px < min_x do min_x = px
|
||||||
|
if py < min_y do min_y = py
|
||||||
|
if px > max_x do max_x = px
|
||||||
|
if py > max_y do max_y = py
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if max_x < min_x {
|
||||||
|
return 0, 0, 1, 1
|
||||||
|
}
|
||||||
|
return min_x, min_y, max_x - min_x + 1, max_y - min_y + 1
|
||||||
|
}
|
||||||
|
|
||||||
|
opaque_bounds :: proc(img: ^image.Image, alpha_min: u8 = 1) -> (x, y, w, h: int) {
|
||||||
|
iw, ih := int(img.width), int(img.height)
|
||||||
|
pixels := bytes.buffer_to_bytes(&img.pixels)
|
||||||
|
return opaque_bounds_rgba(pixels, iw, ih, alpha_min)
|
||||||
|
}
|
||||||
|
|
||||||
pack_atlas :: proc(frames: []^image.Image) -> Atlas {
|
pack_atlas :: proc(frames: []^image.Image) -> Atlas {
|
||||||
PADDING :: 1 // 1px gap to reduce bleeding if filtered later
|
PADDING :: 1
|
||||||
|
|
||||||
pack_rects := make([]stbrp.Rect, len(frames))
|
pack_rects := make([]stbrp.Rect, len(frames))
|
||||||
defer delete(pack_rects)
|
defer delete(pack_rects)
|
||||||
|
|
||||||
|
trims := make([][4]int, len(frames))
|
||||||
|
defer delete(trims)
|
||||||
|
source_sizes := make([][2]int, len(frames))
|
||||||
|
trim_offsets := make([][2]int, len(frames))
|
||||||
|
|
||||||
total_area := 0
|
total_area := 0
|
||||||
max_w := 0
|
max_w := 0
|
||||||
max_h := 0
|
max_h := 0
|
||||||
for frame, i in frames {
|
for frame, i in frames {
|
||||||
w := frame.width + PADDING
|
tx, ty, tw, th := opaque_bounds(frame)
|
||||||
h := frame.height + PADDING
|
trims[i] = {tx, ty, tw, th}
|
||||||
|
source_sizes[i] = {int(frame.width), int(frame.height)}
|
||||||
|
trim_offsets[i] = {tx, ty}
|
||||||
|
|
||||||
|
w := tw + PADDING
|
||||||
|
h := th + PADDING
|
||||||
pack_rects[i] = stbrp.Rect {
|
pack_rects[i] = stbrp.Rect {
|
||||||
id = c.int(i), // pack_rects may reorder; id maps back to frame index
|
id = c.int(i),
|
||||||
w = stbrp.Coord(w),
|
w = stbrp.Coord(w),
|
||||||
h = stbrp.Coord(h),
|
h = stbrp.Coord(h),
|
||||||
}
|
}
|
||||||
@@ -307,7 +349,6 @@ pack_atlas :: proc(frames: []^image.Image) -> Atlas {
|
|||||||
max_h = max(max_h, h)
|
max_h = max(max_h, h)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grow a square-ish atlas until everything fits
|
|
||||||
side := max(max_w, max_h, int(math.ceil(math.sqrt(f64(total_area)))))
|
side := max(max_w, max_h, int(math.ceil(math.sqrt(f64(total_area)))))
|
||||||
atlas_w, atlas_h := 0, 0
|
atlas_w, atlas_h := 0, 0
|
||||||
packed := false
|
packed := false
|
||||||
@@ -326,10 +367,9 @@ pack_atlas :: proc(frames: []^image.Image) -> Atlas {
|
|||||||
os.exit(1)
|
os.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
pixels := make([]u8, atlas_w * atlas_h * 4) // transparent
|
pixels := make([]u8, atlas_w * atlas_h * 4)
|
||||||
rects := make([][4]int, len(frames))
|
rects := make([][4]int, len(frames))
|
||||||
|
|
||||||
// Blit using each rect's id (array order may have changed during packing)
|
|
||||||
for pr in pack_rects {
|
for pr in pack_rects {
|
||||||
if !pr.was_packed {
|
if !pr.was_packed {
|
||||||
fmt.eprintfln("frame %d was not packed", pr.id)
|
fmt.eprintfln("frame %d was not packed", pr.id)
|
||||||
@@ -337,27 +377,30 @@ pack_atlas :: proc(frames: []^image.Image) -> Atlas {
|
|||||||
}
|
}
|
||||||
idx := int(pr.id)
|
idx := int(pr.id)
|
||||||
frame := frames[idx]
|
frame := frames[idx]
|
||||||
fw := frame.width
|
trim := trims[idx]
|
||||||
fh := frame.height
|
tx, ty, tw, th := trim[0], trim[1], trim[2], trim[3]
|
||||||
dst_x := int(pr.x)
|
dst_x := int(pr.x)
|
||||||
dst_y := int(pr.y)
|
dst_y := int(pr.y)
|
||||||
|
|
||||||
src := bytes.buffer_to_bytes(&frame.pixels)
|
src := bytes.buffer_to_bytes(&frame.pixels)
|
||||||
for y in 0 ..< fh {
|
src_w := int(frame.width)
|
||||||
src_row := src[y * fw * 4:(y + 1) * fw * 4]
|
for y in 0 ..< th {
|
||||||
|
src_row := src[((ty + y) * src_w + tx) * 4:][:tw * 4]
|
||||||
dst_i := ((dst_y + y) * atlas_w + dst_x) * 4
|
dst_i := ((dst_y + y) * atlas_w + dst_x) * 4
|
||||||
copy(pixels[dst_i:], src_row)
|
copy(pixels[dst_i:], src_row)
|
||||||
}
|
}
|
||||||
|
|
||||||
rects[idx] = {dst_x, dst_y, fw, fh}
|
rects[idx] = {dst_x, dst_y, tw, th}
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.printfln("packed atlas %dx%d", atlas_w, atlas_h)
|
fmt.printfln("packed atlas %dx%d", atlas_w, atlas_h)
|
||||||
return Atlas {
|
return Atlas {
|
||||||
pixels = pixels,
|
pixels = pixels,
|
||||||
width = atlas_w,
|
width = atlas_w,
|
||||||
height = atlas_h,
|
height = atlas_h,
|
||||||
rects = rects,
|
rects = rects,
|
||||||
|
source_sizes = source_sizes,
|
||||||
|
trim_offsets = trim_offsets,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -422,8 +465,8 @@ build_char_def :: proc(
|
|||||||
r := atlas.rects[slot]
|
r := atlas.rects[slot]
|
||||||
frame_defs[i] = Frame_Def {
|
frame_defs[i] = Frame_Def {
|
||||||
rect = r,
|
rect = r,
|
||||||
source_size = {r[2], r[3]},
|
source_size = atlas.source_sizes[slot],
|
||||||
trim_offset = {0, 0}, // no trimming in v1
|
trim_offset = atlas.trim_offsets[slot],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "core:testing"
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
opaque_bounds_inset :: proc(t: ^testing.T) {
|
||||||
|
// 4x4, opaque 2x2 at (1,1)
|
||||||
|
pixels := make([]u8, 4 * 4 * 4)
|
||||||
|
defer delete(pixels)
|
||||||
|
for y in 1 ..= 2 {
|
||||||
|
for x in 1 ..= 2 {
|
||||||
|
i := (y * 4 + x) * 4
|
||||||
|
pixels[i + 3] = 255
|
||||||
|
}
|
||||||
|
}
|
||||||
|
x, y, w, h := opaque_bounds_rgba(pixels, 4, 4)
|
||||||
|
testing.expect_value(t, x, 1)
|
||||||
|
testing.expect_value(t, y, 1)
|
||||||
|
testing.expect_value(t, w, 2)
|
||||||
|
testing.expect_value(t, h, 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
opaque_bounds_full :: proc(t: ^testing.T) {
|
||||||
|
pixels := make([]u8, 2 * 2 * 4)
|
||||||
|
defer delete(pixels)
|
||||||
|
for i := 3; i < len(pixels); i += 4 {
|
||||||
|
pixels[i] = 255
|
||||||
|
}
|
||||||
|
x, y, w, h := opaque_bounds_rgba(pixels, 2, 2)
|
||||||
|
testing.expect_value(t, x, 0)
|
||||||
|
testing.expect_value(t, y, 0)
|
||||||
|
testing.expect_value(t, w, 2)
|
||||||
|
testing.expect_value(t, h, 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
opaque_bounds_empty :: proc(t: ^testing.T) {
|
||||||
|
pixels := make([]u8, 3 * 3 * 4)
|
||||||
|
defer delete(pixels)
|
||||||
|
x, y, w, h := opaque_bounds_rgba(pixels, 3, 3)
|
||||||
|
testing.expect_value(t, x, 0)
|
||||||
|
testing.expect_value(t, y, 0)
|
||||||
|
testing.expect_value(t, w, 1)
|
||||||
|
testing.expect_value(t, h, 1)
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.6 MiB |
@@ -10,588 +10,572 @@
|
|||||||
"clips": {
|
"clips": {
|
||||||
"walk": {
|
"walk": {
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"fps": 10.00000000,
|
"fps": 15.00000000,
|
||||||
"frames": [
|
"frames": [
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
0,
|
1253,
|
||||||
0,
|
630,
|
||||||
268,
|
204,
|
||||||
326
|
311
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
9,
|
||||||
0
|
14
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
269,
|
1256,
|
||||||
0,
|
0,
|
||||||
268,
|
218,
|
||||||
326
|
314
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
9,
|
||||||
0
|
10
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
538,
|
1458,
|
||||||
0,
|
630,
|
||||||
268,
|
231,
|
||||||
326
|
310
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
9,
|
||||||
0
|
8
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
807,
|
643,
|
||||||
0,
|
943,
|
||||||
268,
|
243,
|
||||||
326
|
295
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
10,
|
||||||
0
|
7
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1076,
|
881,
|
||||||
0,
|
1245,
|
||||||
268,
|
254,
|
||||||
326
|
278
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
11,
|
||||||
0
|
8
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1345,
|
|
||||||
0,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1614,
|
|
||||||
0,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
0,
|
0,
|
||||||
327,
|
944,
|
||||||
268,
|
247,
|
||||||
326
|
288
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
10,
|
||||||
0
|
7
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
269,
|
1669,
|
||||||
327,
|
941,
|
||||||
268,
|
236,
|
||||||
326
|
305
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
9,
|
||||||
0
|
8
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
538,
|
|
||||||
327,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
807,
|
|
||||||
327,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1076,
|
|
||||||
327,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1345,
|
|
||||||
327,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1614,
|
|
||||||
327,
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
268,
|
|
||||||
326
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
0,
|
0,
|
||||||
654,
|
316,
|
||||||
268,
|
223,
|
||||||
326
|
313
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
9,
|
||||||
0
|
9
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
269,
|
1458,
|
||||||
654,
|
941,
|
||||||
268,
|
210,
|
||||||
326
|
310
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
9,
|
||||||
0
|
13
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
538,
|
224,
|
||||||
654,
|
316,
|
||||||
268,
|
211,
|
||||||
326
|
313
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
11,
|
||||||
0
|
11
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
807,
|
1032,
|
||||||
654,
|
630,
|
||||||
268,
|
220,
|
||||||
326
|
311
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
268,
|
268,
|
||||||
326
|
326
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
|
13,
|
||||||
|
7
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
1032,
|
||||||
|
942,
|
||||||
|
228,
|
||||||
|
302
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
268,
|
||||||
|
326
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
16,
|
||||||
|
4
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
0,
|
0,
|
||||||
0
|
1233,
|
||||||
|
237,
|
||||||
|
286
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
268,
|
||||||
|
326
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
18,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
643,
|
||||||
|
1239,
|
||||||
|
237,
|
||||||
|
286
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
268,
|
||||||
|
326
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
18,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
414,
|
||||||
|
943,
|
||||||
|
228,
|
||||||
|
302
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
268,
|
||||||
|
326
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
16,
|
||||||
|
4
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
1690,
|
||||||
|
630,
|
||||||
|
220,
|
||||||
|
310
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
268,
|
||||||
|
326
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
13,
|
||||||
|
7
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
436,
|
||||||
|
316,
|
||||||
|
210,
|
||||||
|
313
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
268,
|
||||||
|
326
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
11,
|
||||||
|
11
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"idle": {
|
"idle": {
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"fps": 10.00000000,
|
"fps": 15.00000000,
|
||||||
"frames": [
|
"frames": [
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1883,
|
414,
|
||||||
0,
|
630,
|
||||||
213,
|
205,
|
||||||
319
|
312
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
6,
|
||||||
0
|
7
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1883,
|
647,
|
||||||
320,
|
316,
|
||||||
213,
|
206,
|
||||||
319
|
313
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
5,
|
||||||
0
|
6
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1883,
|
854,
|
||||||
640,
|
316,
|
||||||
213,
|
206,
|
||||||
319
|
313
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
5,
|
||||||
0
|
6
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1076,
|
1684,
|
||||||
654,
|
0,
|
||||||
213,
|
207,
|
||||||
319
|
314
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
4,
|
||||||
0
|
5
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1290,
|
1256,
|
||||||
654,
|
315,
|
||||||
213,
|
207,
|
||||||
319
|
314
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
4,
|
||||||
0
|
5
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1504,
|
420,
|
||||||
654,
|
0,
|
||||||
213,
|
208,
|
||||||
319
|
315
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
3,
|
||||||
0
|
4
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1718,
|
1475,
|
||||||
960,
|
0,
|
||||||
213,
|
208,
|
||||||
319
|
314
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
3,
|
||||||
0
|
4
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1076,
|
629,
|
||||||
974,
|
0,
|
||||||
213,
|
208,
|
||||||
319
|
315
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
3,
|
||||||
0
|
3
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1290,
|
|
||||||
974,
|
|
||||||
213,
|
|
||||||
319
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
213,
|
|
||||||
319
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rect": [
|
|
||||||
1504,
|
|
||||||
974,
|
|
||||||
213,
|
|
||||||
319
|
|
||||||
],
|
|
||||||
"source_size": [
|
|
||||||
213,
|
|
||||||
319
|
|
||||||
],
|
|
||||||
"trim_offset": [
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
0,
|
0,
|
||||||
981,
|
0,
|
||||||
213,
|
209,
|
||||||
319
|
315
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
2,
|
||||||
0
|
3
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
214,
|
210,
|
||||||
981,
|
0,
|
||||||
213,
|
209,
|
||||||
319
|
315
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
2,
|
||||||
0
|
3
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
428,
|
838,
|
||||||
981,
|
0,
|
||||||
213,
|
208,
|
||||||
319
|
315
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
3,
|
||||||
0
|
3
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
642,
|
1047,
|
||||||
981,
|
0,
|
||||||
213,
|
208,
|
||||||
319
|
315
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
3,
|
||||||
0
|
4
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
856,
|
1464,
|
||||||
981,
|
315,
|
||||||
213,
|
207,
|
||||||
319
|
314
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
4,
|
||||||
0
|
5
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1718,
|
1672,
|
||||||
1280,
|
315,
|
||||||
213,
|
207,
|
||||||
319
|
314
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
4,
|
||||||
0
|
5
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1070,
|
0,
|
||||||
1294,
|
630,
|
||||||
213,
|
206,
|
||||||
319
|
313
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
5,
|
||||||
0
|
6
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rect": [
|
"rect": [
|
||||||
1284,
|
207,
|
||||||
1294,
|
630,
|
||||||
213,
|
206,
|
||||||
319
|
313
|
||||||
],
|
],
|
||||||
"source_size": [
|
"source_size": [
|
||||||
213,
|
213,
|
||||||
319
|
319
|
||||||
],
|
],
|
||||||
"trim_offset": [
|
"trim_offset": [
|
||||||
0,
|
5,
|
||||||
0
|
6
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
620,
|
||||||
|
630,
|
||||||
|
205,
|
||||||
|
312
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
213,
|
||||||
|
319
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
6,
|
||||||
|
7
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rect": [
|
||||||
|
826,
|
||||||
|
630,
|
||||||
|
205,
|
||||||
|
312
|
||||||
|
],
|
||||||
|
"source_size": [
|
||||||
|
213,
|
||||||
|
319
|
||||||
|
],
|
||||||
|
"trim_offset": [
|
||||||
|
6,
|
||||||
|
7
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 42 KiB |
@@ -5,12 +5,12 @@
|
|||||||
"clips": {
|
"clips": {
|
||||||
"idle": {
|
"idle": {
|
||||||
"folder": "Idle",
|
"folder": "Idle",
|
||||||
"fps": 10,
|
"fps": 15,
|
||||||
"loop": true
|
"loop": true
|
||||||
},
|
},
|
||||||
"walk": {
|
"walk": {
|
||||||
"folder": "Walk",
|
"folder": "Walk",
|
||||||
"fps": 10,
|
"fps": 15,
|
||||||
"loop": true
|
"loop": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,289 @@
|
|||||||
|
package engine
|
||||||
|
|
||||||
|
import "core:testing"
|
||||||
|
|
||||||
|
make_test_character :: proc(allocator := context.allocator) -> Character_Data {
|
||||||
|
data: Character_Data
|
||||||
|
data.def.clips = make(map[string]Clip_Def, allocator)
|
||||||
|
|
||||||
|
idle_frames := make([]Frame_Def, 3, allocator)
|
||||||
|
idle_frames[0] = {
|
||||||
|
rect = {0, 0, 10, 10},
|
||||||
|
}
|
||||||
|
idle_frames[1] = {
|
||||||
|
rect = {10, 0, 10, 10},
|
||||||
|
}
|
||||||
|
idle_frames[2] = {
|
||||||
|
rect = {20, 0, 10, 10},
|
||||||
|
}
|
||||||
|
data.def.clips["idle"] = Clip_Def {
|
||||||
|
loop = true,
|
||||||
|
fps = 10,
|
||||||
|
frames = idle_frames,
|
||||||
|
}
|
||||||
|
|
||||||
|
once_frames := make([]Frame_Def, 3, allocator)
|
||||||
|
once_frames[0] = {
|
||||||
|
rect = {0, 10, 10, 10},
|
||||||
|
}
|
||||||
|
once_frames[1] = {
|
||||||
|
rect = {10, 10, 10, 10},
|
||||||
|
}
|
||||||
|
once_frames[2] = {
|
||||||
|
rect = {20, 10, 10, 10},
|
||||||
|
}
|
||||||
|
data.def.clips["once"] = Clip_Def {
|
||||||
|
loop = false,
|
||||||
|
fps = 10,
|
||||||
|
frames = once_frames,
|
||||||
|
}
|
||||||
|
|
||||||
|
hold_frames := make([]Frame_Def, 2, allocator)
|
||||||
|
hold_frames[0] = {
|
||||||
|
rect = {0, 20, 10, 10},
|
||||||
|
}
|
||||||
|
hold_frames[1] = {
|
||||||
|
rect = {10, 20, 10, 10},
|
||||||
|
}
|
||||||
|
data.def.clips["hold"] = Clip_Def {
|
||||||
|
loop = true,
|
||||||
|
fps = 0,
|
||||||
|
frames = hold_frames,
|
||||||
|
}
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy_test_character :: proc(data: ^Character_Data) {
|
||||||
|
if data == nil do return
|
||||||
|
keys := make([dynamic]string, context.temp_allocator)
|
||||||
|
for key, clip in data.def.clips {
|
||||||
|
delete(clip.frames)
|
||||||
|
append(&keys, key)
|
||||||
|
}
|
||||||
|
for key in keys {
|
||||||
|
delete_key(&data.def.clips, key)
|
||||||
|
}
|
||||||
|
delete(data.def.clips)
|
||||||
|
data^ = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
character_clip_found_and_missing :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
clip, ok := character_clip(&data, "idle")
|
||||||
|
testing.expect(t, ok, "character_clip should find idle")
|
||||||
|
testing.expect_value(t, len(clip.frames), 3)
|
||||||
|
testing.expect(t, clip.loop, "idle clip should loop")
|
||||||
|
testing.expect_value(t, clip.fps, f32(10))
|
||||||
|
|
||||||
|
_, ok = character_clip(&data, "missing")
|
||||||
|
testing.expect(t, !ok, "character_clip should miss unknown name")
|
||||||
|
|
||||||
|
data.def.clips["empty"] = Clip_Def {
|
||||||
|
loop = true,
|
||||||
|
fps = 10,
|
||||||
|
frames = nil,
|
||||||
|
}
|
||||||
|
_, ok = character_clip(&data, "empty")
|
||||||
|
testing.expect(t, !ok, "character_clip should reject empty frames")
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
set_sprite_clip_switch_and_guards :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
sprite := spawn_sprite(&data, {0, 0}, "idle", 0)
|
||||||
|
testing.expect_value(t, sprite.clip, "idle")
|
||||||
|
|
||||||
|
sprite.frame = 2
|
||||||
|
sprite.time = 0.05
|
||||||
|
set_sprite_clip(&sprite, "once")
|
||||||
|
testing.expect_value(t, sprite.clip, "once")
|
||||||
|
testing.expect_value(t, sprite.frame, 0)
|
||||||
|
testing.expect_value(t, sprite.time, f32(0))
|
||||||
|
|
||||||
|
sprite.frame = 1
|
||||||
|
sprite.time = 0.09
|
||||||
|
set_sprite_clip(&sprite, "once")
|
||||||
|
testing.expect_value(t, sprite.frame, 1)
|
||||||
|
testing.expect_value(t, sprite.time, f32(0.09))
|
||||||
|
|
||||||
|
set_sprite_clip(&sprite, "nope")
|
||||||
|
testing.expect_value(t, sprite.clip, "once")
|
||||||
|
testing.expect_value(t, sprite.frame, 1)
|
||||||
|
testing.expect_value(t, sprite.time, f32(0.09))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
set_sprite_clip_caches_clip_def :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
sprite := spawn_sprite(&data, {}, "idle", 0)
|
||||||
|
testing.expect(t, sprite.has_clip, "spawn should cache a valid clip")
|
||||||
|
testing.expect_value(t, sprite.clip, "idle")
|
||||||
|
testing.expect(t, sprite.clip_def.loop, "idle clip loops")
|
||||||
|
testing.expect_value(t, sprite.clip_def.fps, f32(10))
|
||||||
|
testing.expect_value(t, len(sprite.clip_def.frames), 3)
|
||||||
|
|
||||||
|
set_sprite_clip(&sprite, "once")
|
||||||
|
testing.expect(t, sprite.has_clip, "switch should refresh cache")
|
||||||
|
testing.expect_value(t, sprite.clip, "once")
|
||||||
|
testing.expect(t, !sprite.clip_def.loop, "once clip does not loop")
|
||||||
|
testing.expect_value(t, sprite.clip_def.fps, f32(10))
|
||||||
|
testing.expect_value(t, len(sprite.clip_def.frames), 3)
|
||||||
|
|
||||||
|
set_sprite_clip(&sprite, "nope")
|
||||||
|
testing.expect(t, sprite.has_clip, "bad clip must leave cache intact")
|
||||||
|
testing.expect_value(t, sprite.clip, "once")
|
||||||
|
testing.expect(t, !sprite.clip_def.loop, "cached once clip preserved")
|
||||||
|
testing.expect_value(t, len(sprite.clip_def.frames), 3)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
set_sprite_clip_def_applies_and_guards :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
sprite := spawn_sprite(&data, {}, "idle", 0)
|
||||||
|
sprite.frame = 2
|
||||||
|
sprite.time = 0.05
|
||||||
|
|
||||||
|
once := data.def.clips["once"]
|
||||||
|
set_sprite_clip_def(&sprite, "once", once)
|
||||||
|
testing.expect_value(t, sprite.clip, "once")
|
||||||
|
testing.expect(t, sprite.has_clip, "def apply should mark clip present")
|
||||||
|
testing.expect_value(t, sprite.frame, 0)
|
||||||
|
testing.expect_value(t, sprite.time, f32(0))
|
||||||
|
testing.expect(t, !sprite.clip_def.loop, "once clip does not loop")
|
||||||
|
testing.expect_value(t, len(sprite.clip_def.frames), 3)
|
||||||
|
|
||||||
|
sprite.frame = 1
|
||||||
|
sprite.time = 0.09
|
||||||
|
set_sprite_clip_def(&sprite, "once", once)
|
||||||
|
testing.expect_value(t, sprite.frame, 1)
|
||||||
|
testing.expect_value(t, sprite.time, f32(0.09))
|
||||||
|
|
||||||
|
set_sprite_clip_def(&sprite, "empty", Clip_Def{loop = true, fps = 10, frames = nil})
|
||||||
|
testing.expect_value(t, sprite.clip, "once")
|
||||||
|
testing.expect_value(t, sprite.frame, 1)
|
||||||
|
|
||||||
|
set_sprite_clip_def(nil, "once", once)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
spawn_sprite_valid_and_invalid :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {1, 2}, "idle", 0)
|
||||||
|
testing.expect_value(t, s.clip, "idle")
|
||||||
|
testing.expect_value(t, s.frame, 0)
|
||||||
|
testing.expect_value(t, s.time, f32(0))
|
||||||
|
testing.expect_value(t, s.position, Vec2{1, 2})
|
||||||
|
|
||||||
|
s2 := spawn_sprite(&data, {}, "idle", 2)
|
||||||
|
testing.expect_value(t, s2.clip, "idle")
|
||||||
|
testing.expect_value(t, s2.frame, 2)
|
||||||
|
|
||||||
|
s3 := spawn_sprite(&data, {}, "idle", 99)
|
||||||
|
testing.expect_value(t, s3.frame, 2)
|
||||||
|
|
||||||
|
bad := spawn_sprite(&data, {}, "missing", 0)
|
||||||
|
testing.expect_value(t, bad.clip, "")
|
||||||
|
testing.expect_value(t, bad.frame, 0)
|
||||||
|
testing.expect_value(t, bad.time, f32(0))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_advances_one_frame :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {}, "idle", 0)
|
||||||
|
update_sprite(&s, 0.1)
|
||||||
|
testing.expect_value(t, s.frame, 1)
|
||||||
|
testing.expect_value(t, s.time, f32(0))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_advances_multiple_frames :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {}, "idle", 0)
|
||||||
|
update_sprite(&s, 0.25)
|
||||||
|
testing.expect_value(t, s.frame, 2)
|
||||||
|
testing.expect(t, s.time > 0.049 && s.time < 0.051, "leftover time after multi-frame advance should be ~0.05")
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_loops :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {}, "idle", 2)
|
||||||
|
update_sprite(&s, 0.1)
|
||||||
|
testing.expect_value(t, s.frame, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_non_loop_holds_last :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {}, "once", 2)
|
||||||
|
s.time = 0.05
|
||||||
|
update_sprite(&s, 0.1)
|
||||||
|
testing.expect_value(t, s.frame, 2)
|
||||||
|
testing.expect_value(t, s.time, f32(0))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_fps_zero_holds :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {}, "hold", 0)
|
||||||
|
update_sprite(&s, 1.0)
|
||||||
|
testing.expect_value(t, s.frame, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_dt_non_positive_noop :: proc(t: ^testing.T) {
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := spawn_sprite(&data, {}, "idle", 0)
|
||||||
|
update_sprite(&s, 0)
|
||||||
|
update_sprite(&s, -0.1)
|
||||||
|
testing.expect_value(t, s.frame, 0)
|
||||||
|
testing.expect_value(t, s.time, f32(0))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
update_sprite_nil_and_missing_clip_safe :: proc(t: ^testing.T) {
|
||||||
|
update_sprite(nil, 0.1)
|
||||||
|
|
||||||
|
data := make_test_character()
|
||||||
|
defer destroy_test_character(&data)
|
||||||
|
|
||||||
|
s := Sprite {
|
||||||
|
data = &data,
|
||||||
|
clip = "missing",
|
||||||
|
frame = 0,
|
||||||
|
time = 0,
|
||||||
|
}
|
||||||
|
update_sprite(&s, 0.1)
|
||||||
|
testing.expect_value(t, s.frame, 0)
|
||||||
|
|
||||||
|
s2 := Sprite {
|
||||||
|
data = nil,
|
||||||
|
clip = "idle",
|
||||||
|
}
|
||||||
|
update_sprite(&s2, 0.1)
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package engine
|
package engine
|
||||||
|
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
|
import "core:mem"
|
||||||
import "core:path/filepath"
|
import "core:path/filepath"
|
||||||
import sdl "vendor:sdl3"
|
import sdl "vendor:sdl3"
|
||||||
|
|
||||||
@@ -10,7 +11,21 @@ Vertex :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SPRITE_VERT_COUNT :: 6
|
SPRITE_VERT_COUNT :: 6
|
||||||
VERTEX_BUFFER_SIZE :: SPRITE_VERT_COUNT * size_of(Vertex)
|
MAX_SPRITES :: 128
|
||||||
|
SPRITE_VERTS_SIZE :: SPRITE_VERT_COUNT * size_of(Vertex)
|
||||||
|
VERTEX_BUFFER_SIZE :: MAX_SPRITES * SPRITE_VERTS_SIZE
|
||||||
|
|
||||||
|
Queued_Sprite :: struct {
|
||||||
|
texture: ^sdl.GPUTexture,
|
||||||
|
verts: [SPRITE_VERT_COUNT]Vertex,
|
||||||
|
batch_group: u32, // 0 = strict order; nonzero = caller permits regrouping
|
||||||
|
}
|
||||||
|
|
||||||
|
Draw_Batch :: struct {
|
||||||
|
start: int,
|
||||||
|
count: int,
|
||||||
|
texture: ^sdl.GPUTexture,
|
||||||
|
}
|
||||||
|
|
||||||
App :: struct {
|
App :: struct {
|
||||||
window: ^sdl.Window,
|
window: ^sdl.Window,
|
||||||
@@ -25,6 +40,9 @@ App :: struct {
|
|||||||
swapchain_h: u32,
|
swapchain_h: u32,
|
||||||
vertex_buffer: ^sdl.GPUBuffer,
|
vertex_buffer: ^sdl.GPUBuffer,
|
||||||
transfer_buffer: ^sdl.GPUTransferBuffer,
|
transfer_buffer: ^sdl.GPUTransferBuffer,
|
||||||
|
draw_list: [dynamic]Queued_Sprite,
|
||||||
|
clear_color: sdl.FColor,
|
||||||
|
camera: Camera,
|
||||||
}
|
}
|
||||||
|
|
||||||
Shader_Backend :: enum {
|
Shader_Backend :: enum {
|
||||||
@@ -54,7 +72,7 @@ init :: proc(app: ^App, title: cstring, width, height: i32) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
requested: sdl.GPUShaderFormat = {.SPIRV, .DXIL, .MSL}
|
requested: sdl.GPUShaderFormat = {.SPIRV, .DXIL, .MSL}
|
||||||
app.device = sdl.CreateGPUDevice(requested, true, nil)
|
app.device = sdl.CreateGPUDevice(requested, false, nil)
|
||||||
if app.device == nil {
|
if app.device == nil {
|
||||||
fmt.eprintfln("CreateGPUDevice failed: %s", sdl.GetError())
|
fmt.eprintfln("CreateGPUDevice failed: %s", sdl.GetError())
|
||||||
return false
|
return false
|
||||||
@@ -65,6 +83,23 @@ init :: proc(app: ^App, title: cstring, width, height: i32) -> bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !sdl.SetGPUAllowedFramesInFlight(app.device, 3) {
|
||||||
|
fmt.eprintfln("SetGPUAllowedFramesInFlight failed: %s", sdl.GetError())
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prefer uncapped present for profiling; fall back if unsupported.
|
||||||
|
present := sdl.GPUPresentMode.VSYNC
|
||||||
|
if sdl.WindowSupportsGPUPresentMode(app.device, app.window, .IMMEDIATE) {
|
||||||
|
present = .IMMEDIATE
|
||||||
|
} else if sdl.WindowSupportsGPUPresentMode(app.device, app.window, .MAILBOX) {
|
||||||
|
present = .MAILBOX
|
||||||
|
}
|
||||||
|
if present != .VSYNC {
|
||||||
|
if !sdl.SetGPUSwapchainParameters(app.device, app.window, .SDR, present) {
|
||||||
|
fmt.eprintfln("SetGPUSwapchainParameters failed: %s", sdl.GetError())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ok: bool
|
ok: bool
|
||||||
app.shader, ok = choose_shader_runtime(app.device)
|
app.shader, ok = choose_shader_runtime(app.device)
|
||||||
if !ok do return false
|
if !ok do return false
|
||||||
@@ -112,10 +147,16 @@ init :: proc(app: ^App, title: cstring, width, height: i32) -> bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.draw_list = make([dynamic]Queued_Sprite)
|
||||||
|
|
||||||
|
app.camera = camera_default()
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
shutdown :: proc(app: ^App) {
|
shutdown :: proc(app: ^App) {
|
||||||
|
delete(app.draw_list)
|
||||||
|
|
||||||
if app.device != nil {
|
if app.device != nil {
|
||||||
ok := sdl.WaitForGPUIdle(app.device)
|
ok := sdl.WaitForGPUIdle(app.device)
|
||||||
if !ok {
|
if !ok {
|
||||||
@@ -164,9 +205,13 @@ events :: proc() -> bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
begin_frame :: proc(app: ^App, clear: sdl.FColor = {0.12, 0.12, 0.16, 1}) {
|
begin_frame :: proc(app: ^App, clear_color: sdl.FColor = {0.12, 0.12, 0.16, 1}) {
|
||||||
app.cmd = sdl.AcquireGPUCommandBuffer(app.device)
|
clear(&app.draw_list)
|
||||||
|
app.clear_color = clear_color
|
||||||
|
app.render_pass = nil
|
||||||
|
app.swapchain_texture = nil
|
||||||
|
|
||||||
|
app.cmd = sdl.AcquireGPUCommandBuffer(app.device)
|
||||||
if app.cmd == nil {
|
if app.cmd == nil {
|
||||||
fmt.eprintfln("AcquireGPUCommandBuffer failed: %s", sdl.GetError())
|
fmt.eprintfln("AcquireGPUCommandBuffer failed: %s", sdl.GetError())
|
||||||
return
|
return
|
||||||
@@ -181,36 +226,102 @@ begin_frame :: proc(app: ^App, clear: sdl.FColor = {0.12, 0.12, 0.16, 1}) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if !ok || app.swapchain_texture == nil {
|
if !ok || app.swapchain_texture == nil {
|
||||||
|
app.swapchain_texture = nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
end_frame :: proc(app: ^App) {
|
||||||
|
if app.cmd == nil {
|
||||||
|
clear(&app.draw_list)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
cmd := app.cmd
|
||||||
|
defer {
|
||||||
|
app.render_pass = nil
|
||||||
|
app.swapchain_texture = nil
|
||||||
|
app.cmd = nil
|
||||||
|
clear(&app.draw_list)
|
||||||
|
}
|
||||||
|
|
||||||
|
if app.swapchain_texture == nil {
|
||||||
|
if !sdl.SubmitGPUCommandBuffer(cmd) {
|
||||||
|
fmt.eprintfln("SubmitGPUCommandBuffer failed")
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
n := len(app.draw_list)
|
||||||
|
batches: [dynamic]Draw_Batch
|
||||||
|
defer delete(batches)
|
||||||
|
if n > 0 {
|
||||||
|
prepare_draw_batches(app.draw_list[:], &batches)
|
||||||
|
|
||||||
|
map_ptr := sdl.MapGPUTransferBuffer(app.device, app.transfer_buffer, false)
|
||||||
|
if map_ptr == nil {
|
||||||
|
fmt.eprintfln("MapGPUTransferBuffer failed: %s", sdl.GetError())
|
||||||
|
if !sdl.SubmitGPUCommandBuffer(cmd) {
|
||||||
|
fmt.eprintfln("SubmitGPUCommandBuffer failed")
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
for i in 0 ..< n {
|
||||||
|
q := &app.draw_list[i]
|
||||||
|
offset := i * SPRITE_VERTS_SIZE
|
||||||
|
mem.copy(
|
||||||
|
rawptr(uintptr(map_ptr) + uintptr(offset)),
|
||||||
|
raw_data(q.verts[:]),
|
||||||
|
SPRITE_VERTS_SIZE,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
sdl.UnmapGPUTransferBuffer(app.device, app.transfer_buffer)
|
||||||
|
|
||||||
|
copy_pass := sdl.BeginGPUCopyPass(cmd)
|
||||||
|
src := sdl.GPUTransferBufferLocation {
|
||||||
|
transfer_buffer = app.transfer_buffer,
|
||||||
|
offset = 0,
|
||||||
|
}
|
||||||
|
dst := sdl.GPUBufferRegion {
|
||||||
|
buffer = app.vertex_buffer,
|
||||||
|
offset = 0,
|
||||||
|
size = u32(n * SPRITE_VERTS_SIZE),
|
||||||
|
}
|
||||||
|
sdl.UploadToGPUBuffer(copy_pass, src, dst, false)
|
||||||
|
sdl.EndGPUCopyPass(copy_pass)
|
||||||
|
}
|
||||||
|
|
||||||
color_info := sdl.GPUColorTargetInfo {
|
color_info := sdl.GPUColorTargetInfo {
|
||||||
texture = app.swapchain_texture,
|
texture = app.swapchain_texture,
|
||||||
clear_color = clear,
|
clear_color = app.clear_color,
|
||||||
load_op = .CLEAR,
|
load_op = .CLEAR,
|
||||||
store_op = .STORE,
|
store_op = .STORE,
|
||||||
}
|
}
|
||||||
|
app.render_pass = sdl.BeginGPURenderPass(cmd, &color_info, 1, nil)
|
||||||
app.render_pass = sdl.BeginGPURenderPass(app.cmd, &color_info, 1, nil)
|
|
||||||
|
|
||||||
sdl.BindGPUGraphicsPipeline(app.render_pass, app.pipeline)
|
sdl.BindGPUGraphicsPipeline(app.render_pass, app.pipeline)
|
||||||
}
|
|
||||||
|
|
||||||
end_frame :: proc(app: ^App) {
|
for batch in batches {
|
||||||
if app.render_pass != nil {
|
sampler_binding := sdl.GPUTextureSamplerBinding {
|
||||||
sdl.EndGPURenderPass(app.render_pass)
|
texture = batch.texture,
|
||||||
app.render_pass = nil
|
sampler = app.sampler,
|
||||||
}
|
|
||||||
|
|
||||||
if app.cmd != nil {
|
|
||||||
ok := sdl.SubmitGPUCommandBuffer(app.cmd)
|
|
||||||
if !ok {
|
|
||||||
fmt.eprintfln("SubmitGPUCommandBuffer failed")
|
|
||||||
}
|
}
|
||||||
app.cmd = nil
|
sdl.BindGPUFragmentSamplers(app.render_pass, 0, &sampler_binding, 1)
|
||||||
}
|
|
||||||
|
|
||||||
app.swapchain_texture = nil
|
vb_binding := sdl.GPUBufferBinding {
|
||||||
|
buffer = app.vertex_buffer,
|
||||||
|
offset = u32(batch.start * SPRITE_VERTS_SIZE),
|
||||||
|
}
|
||||||
|
sdl.BindGPUVertexBuffers(app.render_pass, 0, &vb_binding, 1)
|
||||||
|
|
||||||
|
sdl.DrawGPUPrimitives(app.render_pass, u32(batch.count * SPRITE_VERT_COUNT), 1, 0, 0)
|
||||||
|
}
|
||||||
|
sdl.EndGPURenderPass(app.render_pass)
|
||||||
|
app.render_pass = nil
|
||||||
|
|
||||||
|
if !sdl.SubmitGPUCommandBuffer(cmd) {
|
||||||
|
fmt.eprintfln("SubmitGPUCommandBuffer failed")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
load_gpu_shader :: proc(
|
load_gpu_shader :: proc(
|
||||||
@@ -338,3 +449,74 @@ create_sprite_pipeline :: proc(app: ^App) -> ^sdl.GPUGraphicsPipeline {
|
|||||||
|
|
||||||
return pipeline
|
return pipeline
|
||||||
}
|
}
|
||||||
|
|
||||||
|
texture_run_len :: proc(list: []Queued_Sprite, start: int) -> int {
|
||||||
|
if start < 0 || start >= len(list) do return 0
|
||||||
|
|
||||||
|
tex := list[start].texture
|
||||||
|
n := 1
|
||||||
|
|
||||||
|
for i in start + 1 ..< len(list) {
|
||||||
|
if list[i].texture != tex do break
|
||||||
|
n += 1
|
||||||
|
}
|
||||||
|
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
|
texture_run_count :: proc(list: []Queued_Sprite) -> int {
|
||||||
|
if len(list) == 0 do return 0
|
||||||
|
count := 0
|
||||||
|
i := 0
|
||||||
|
for i < len(list) {
|
||||||
|
run := texture_run_len(list, i)
|
||||||
|
count += 1
|
||||||
|
i += run
|
||||||
|
}
|
||||||
|
return count
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare_draw_batches :: proc(list: []Queued_Sprite, batches: ^[dynamic]Draw_Batch) {
|
||||||
|
clear(batches)
|
||||||
|
group_texture_runs(list)
|
||||||
|
i := 0
|
||||||
|
for i < len(list) {
|
||||||
|
run := texture_run_len(list, i)
|
||||||
|
append(batches, Draw_Batch{start = i, count = run, texture = list[i].texture})
|
||||||
|
i += run
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Within each contiguous nonzero batch_group, stably sort by texture so
|
||||||
|
// consecutive same-texture sprites become one draw. Group 0 and group
|
||||||
|
// boundaries are never crossed.
|
||||||
|
group_texture_runs :: proc(list: []Queued_Sprite) {
|
||||||
|
start := 0
|
||||||
|
for start < len(list) {
|
||||||
|
group := list[start].batch_group
|
||||||
|
if group == 0 {
|
||||||
|
start += 1
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
end := start + 1
|
||||||
|
for end < len(list) && list[end].batch_group == group {
|
||||||
|
end += 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// Stable insertion sort is sufficient while MAX_SPRITES is 128.
|
||||||
|
for i in start + 1 ..< end {
|
||||||
|
item := list[i]
|
||||||
|
j := i
|
||||||
|
for j > start {
|
||||||
|
if uintptr(list[j - 1].texture) <= uintptr(item.texture) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
list[j] = list[j - 1]
|
||||||
|
j -= 1
|
||||||
|
}
|
||||||
|
list[j] = item
|
||||||
|
}
|
||||||
|
start = end
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,366 @@
|
|||||||
|
package engine
|
||||||
|
|
||||||
|
import "core:testing"
|
||||||
|
import sdl "vendor:sdl3"
|
||||||
|
|
||||||
|
fake_tex :: proc(id: uintptr) -> ^sdl.GPUTexture {
|
||||||
|
return cast(^sdl.GPUTexture)id
|
||||||
|
}
|
||||||
|
|
||||||
|
queued :: proc(tex_id: uintptr, group: u32, marker: f32) -> Queued_Sprite {
|
||||||
|
q: Queued_Sprite
|
||||||
|
q.texture = fake_tex(tex_id)
|
||||||
|
q.batch_group = group
|
||||||
|
q.verts[0].pos = {marker, 0}
|
||||||
|
return q
|
||||||
|
}
|
||||||
|
|
||||||
|
marker_of :: proc(q: Queued_Sprite) -> f32 {
|
||||||
|
return q.verts[0].pos.x
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
texture_run_len_empty_or_oob :: proc(t: ^testing.T) {
|
||||||
|
testing.expect_value(t, texture_run_len(nil, 0), 0)
|
||||||
|
list := []Queued_Sprite{}
|
||||||
|
testing.expect_value(t, texture_run_len(list, 0), 0)
|
||||||
|
list = make([]Queued_Sprite, 1)
|
||||||
|
defer delete(list)
|
||||||
|
list[0] = {texture = fake_tex(1)}
|
||||||
|
testing.expect_value(t, texture_run_len(list, -1), 0)
|
||||||
|
testing.expect_value(t, texture_run_len(list, 1), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
texture_run_len_single :: proc(t: ^testing.T) {
|
||||||
|
list := make([]Queued_Sprite, 1)
|
||||||
|
defer delete(list)
|
||||||
|
list[0] = {texture = fake_tex(1)}
|
||||||
|
testing.expect_value(t, texture_run_len(list, 0), 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
texture_run_len_same_texture :: proc(t: ^testing.T) {
|
||||||
|
tex := fake_tex(1)
|
||||||
|
list := make([]Queued_Sprite, 3)
|
||||||
|
defer delete(list)
|
||||||
|
list[0] = {texture = tex}
|
||||||
|
list[1] = {texture = tex}
|
||||||
|
list[2] = {texture = tex}
|
||||||
|
testing.expect_value(t, texture_run_len(list, 0), 3)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
texture_run_len_breaks_on_change :: proc(t: ^testing.T) {
|
||||||
|
a := fake_tex(1)
|
||||||
|
b := fake_tex(2)
|
||||||
|
list := make([]Queued_Sprite, 3)
|
||||||
|
defer delete(list)
|
||||||
|
list[0] = {texture = a}
|
||||||
|
list[1] = {texture = a}
|
||||||
|
list[2] = {texture = b}
|
||||||
|
testing.expect_value(t, texture_run_len(list, 0), 2)
|
||||||
|
testing.expect_value(t, texture_run_len(list, 2), 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
texture_run_len_all_different :: proc(t: ^testing.T) {
|
||||||
|
list := make([]Queued_Sprite, 3)
|
||||||
|
defer delete(list)
|
||||||
|
list[0] = {texture = fake_tex(1)}
|
||||||
|
list[1] = {texture = fake_tex(2)}
|
||||||
|
list[2] = {texture = fake_tex(3)}
|
||||||
|
testing.expect_value(t, texture_run_len(list, 0), 1)
|
||||||
|
testing.expect_value(t, texture_run_len(list, 1), 1)
|
||||||
|
testing.expect_value(t, texture_run_len(list, 2), 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_strict_order_unchanged :: proc(t: ^testing.T) {
|
||||||
|
// Group 0 alternates textures; sorting must not reorder (alpha order).
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(2, 0, 1),
|
||||||
|
queued(1, 0, 2),
|
||||||
|
queued(2, 0, 3),
|
||||||
|
queued(1, 0, 4),
|
||||||
|
}
|
||||||
|
before_runs := texture_run_count(list)
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, texture_run_count(list), before_runs)
|
||||||
|
testing.expect_value(t, marker_of(list[0]), f32(1))
|
||||||
|
testing.expect_value(t, marker_of(list[1]), f32(2))
|
||||||
|
testing.expect_value(t, marker_of(list[2]), f32(3))
|
||||||
|
testing.expect_value(t, marker_of(list[3]), f32(4))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_reduces_runs_inside_group :: proc(t: ^testing.T) {
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(2, 1, 1),
|
||||||
|
queued(1, 1, 2),
|
||||||
|
queued(2, 1, 3),
|
||||||
|
queued(1, 1, 4),
|
||||||
|
}
|
||||||
|
testing.expect_value(t, texture_run_count(list), 4)
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, texture_run_count(list), 2)
|
||||||
|
testing.expect(t, list[0].texture == fake_tex(1), "lower texture pointer first")
|
||||||
|
testing.expect(t, list[1].texture == fake_tex(1), "same texture run")
|
||||||
|
testing.expect(t, list[2].texture == fake_tex(2), "second texture run")
|
||||||
|
testing.expect(t, list[3].texture == fake_tex(2), "second texture run cont")
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_stable_same_texture :: proc(t: ^testing.T) {
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(2, 1, 10),
|
||||||
|
queued(1, 1, 20),
|
||||||
|
queued(2, 1, 30),
|
||||||
|
queued(1, 1, 40),
|
||||||
|
}
|
||||||
|
group_texture_runs(list)
|
||||||
|
// Same-texture relative order preserved (stable sort).
|
||||||
|
testing.expect_value(t, marker_of(list[0]), f32(20))
|
||||||
|
testing.expect_value(t, marker_of(list[1]), f32(40))
|
||||||
|
testing.expect_value(t, marker_of(list[2]), f32(10))
|
||||||
|
testing.expect_value(t, marker_of(list[3]), f32(30))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_respects_group_boundaries :: proc(t: ^testing.T) {
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(2, 1, 1),
|
||||||
|
queued(1, 1, 2),
|
||||||
|
queued(2, 0, 3), // strict barrier
|
||||||
|
queued(1, 2, 4),
|
||||||
|
queued(2, 2, 5),
|
||||||
|
}
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, marker_of(list[2]), f32(3)) // barrier stays put
|
||||||
|
testing.expect(t, list[0].texture == fake_tex(1))
|
||||||
|
testing.expect(t, list[1].texture == fake_tex(2))
|
||||||
|
testing.expect(t, list[3].texture == fake_tex(1))
|
||||||
|
testing.expect(t, list[4].texture == fake_tex(2))
|
||||||
|
testing.expect_value(t, list[0].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[1].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[2].batch_group, u32(0))
|
||||||
|
testing.expect_value(t, list[3].batch_group, u32(2))
|
||||||
|
testing.expect_value(t, list[4].batch_group, u32(2))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_does_not_merge_across_different_groups :: proc(t: ^testing.T) {
|
||||||
|
// Adjacent nonzero groups with different ids must not merge runs across.
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(1, 1, 1),
|
||||||
|
queued(2, 1, 2),
|
||||||
|
queued(1, 2, 3),
|
||||||
|
queued(2, 2, 4),
|
||||||
|
}
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, texture_run_count(list), 4)
|
||||||
|
testing.expect_value(t, list[0].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[1].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[2].batch_group, u32(2))
|
||||||
|
testing.expect_value(t, list[3].batch_group, u32(2))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_empty :: proc(t: ^testing.T) {
|
||||||
|
list := []Queued_Sprite{}
|
||||||
|
testing.expect_value(t, texture_run_count(list), 0)
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, texture_run_count(list), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_already_optimal :: proc(t: ^testing.T) {
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(1, 1, 10),
|
||||||
|
queued(1, 1, 20),
|
||||||
|
queued(2, 1, 30),
|
||||||
|
queued(2, 1, 40),
|
||||||
|
}
|
||||||
|
testing.expect_value(t, texture_run_count(list), 2)
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, texture_run_count(list), 2)
|
||||||
|
testing.expect_value(t, marker_of(list[0]), f32(10))
|
||||||
|
testing.expect_value(t, marker_of(list[1]), f32(20))
|
||||||
|
testing.expect_value(t, marker_of(list[2]), f32(30))
|
||||||
|
testing.expect_value(t, marker_of(list[3]), f32(40))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
group_texture_runs_noncontiguous_same_group_id :: proc(t: ^testing.T) {
|
||||||
|
// Same nonzero id split by group 0: each window regroups alone.
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(2, 1, 1),
|
||||||
|
queued(1, 1, 2),
|
||||||
|
queued(2, 0, 3),
|
||||||
|
queued(2, 1, 4),
|
||||||
|
queued(1, 1, 5),
|
||||||
|
}
|
||||||
|
group_texture_runs(list)
|
||||||
|
testing.expect_value(t, marker_of(list[2]), f32(3))
|
||||||
|
testing.expect(t, list[0].texture == fake_tex(1))
|
||||||
|
testing.expect(t, list[1].texture == fake_tex(2))
|
||||||
|
testing.expect_value(t, list[2].batch_group, u32(0))
|
||||||
|
testing.expect(t, list[3].texture == fake_tex(1))
|
||||||
|
testing.expect(t, list[4].texture == fake_tex(2))
|
||||||
|
testing.expect_value(t, list[0].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[1].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[3].batch_group, u32(1))
|
||||||
|
testing.expect_value(t, list[4].batch_group, u32(1))
|
||||||
|
}
|
||||||
|
|
||||||
|
make_test_draw_app :: proc() -> App {
|
||||||
|
app: App
|
||||||
|
app.cmd = cast(^sdl.GPUCommandBuffer)uintptr(1)
|
||||||
|
app.swapchain_texture = fake_tex(99)
|
||||||
|
app.swapchain_w = 800
|
||||||
|
app.swapchain_h = 600
|
||||||
|
app.camera = camera_default()
|
||||||
|
app.draw_list = make([dynamic]Queued_Sprite)
|
||||||
|
return app
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy_test_draw_app :: proc(app: ^App) {
|
||||||
|
if app == nil do return
|
||||||
|
delete(app.draw_list)
|
||||||
|
app^ = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
make_test_draw_character :: proc() -> Character_Data {
|
||||||
|
data: Character_Data
|
||||||
|
data.texture = fake_tex(42)
|
||||||
|
data.width = 100
|
||||||
|
data.height = 100
|
||||||
|
data.def.pivot = {0.5, 1.0}
|
||||||
|
data.def.clips = make(map[string]Clip_Def)
|
||||||
|
frames := make([]Frame_Def, 1)
|
||||||
|
frames[0] = Frame_Def {
|
||||||
|
rect = {0, 0, 10, 10},
|
||||||
|
source_size = {10, 10},
|
||||||
|
trim_offset = {0, 0},
|
||||||
|
}
|
||||||
|
data.def.clips["idle"] = Clip_Def {
|
||||||
|
loop = true,
|
||||||
|
fps = 10,
|
||||||
|
frames = frames,
|
||||||
|
}
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy_test_draw_character :: proc(data: ^Character_Data) {
|
||||||
|
if data == nil do return
|
||||||
|
keys := make([dynamic]string, context.temp_allocator)
|
||||||
|
for key, clip in data.def.clips {
|
||||||
|
delete(clip.frames)
|
||||||
|
append(&keys, key)
|
||||||
|
}
|
||||||
|
for key in keys {
|
||||||
|
delete_key(&data.def.clips, key)
|
||||||
|
}
|
||||||
|
delete(data.def.clips)
|
||||||
|
data^ = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
draw_sprite_stamps_batch_group_zero :: proc(t: ^testing.T) {
|
||||||
|
app := make_test_draw_app()
|
||||||
|
defer destroy_test_draw_app(&app)
|
||||||
|
data := make_test_draw_character()
|
||||||
|
defer destroy_test_draw_character(&data)
|
||||||
|
|
||||||
|
sprite := spawn_sprite(&data, {100, 200}, "idle", 0)
|
||||||
|
draw_sprite(&app, &sprite)
|
||||||
|
|
||||||
|
testing.expect_value(t, len(app.draw_list), 1)
|
||||||
|
testing.expect_value(t, app.draw_list[0].batch_group, u32(0))
|
||||||
|
testing.expect(t, app.draw_list[0].texture == data.texture)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
draw_sprite_batched_stamps_batch_group :: proc(t: ^testing.T) {
|
||||||
|
app := make_test_draw_app()
|
||||||
|
defer destroy_test_draw_app(&app)
|
||||||
|
data := make_test_draw_character()
|
||||||
|
defer destroy_test_draw_character(&data)
|
||||||
|
|
||||||
|
sprite := spawn_sprite(&data, {100, 200}, "idle", 0)
|
||||||
|
draw_sprite_batched(&app, &sprite, 7)
|
||||||
|
|
||||||
|
testing.expect_value(t, len(app.draw_list), 1)
|
||||||
|
testing.expect_value(t, app.draw_list[0].batch_group, u32(7))
|
||||||
|
testing.expect(t, app.draw_list[0].texture == data.texture)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
draw_sprite_batched_guards_leave_list_unchanged :: proc(t: ^testing.T) {
|
||||||
|
app := make_test_draw_app()
|
||||||
|
defer destroy_test_draw_app(&app)
|
||||||
|
data := make_test_draw_character()
|
||||||
|
defer destroy_test_draw_character(&data)
|
||||||
|
sprite := spawn_sprite(&data, {100, 200}, "idle", 0)
|
||||||
|
|
||||||
|
app.cmd = nil
|
||||||
|
draw_sprite_batched(&app, &sprite, 1)
|
||||||
|
testing.expect_value(t, len(app.draw_list), 0)
|
||||||
|
app.cmd = cast(^sdl.GPUCommandBuffer)uintptr(1)
|
||||||
|
|
||||||
|
app.swapchain_texture = nil
|
||||||
|
draw_sprite_batched(&app, &sprite, 1)
|
||||||
|
testing.expect_value(t, len(app.draw_list), 0)
|
||||||
|
app.swapchain_texture = fake_tex(99)
|
||||||
|
|
||||||
|
draw_sprite_batched(&app, nil, 1)
|
||||||
|
testing.expect_value(t, len(app.draw_list), 0)
|
||||||
|
|
||||||
|
no_data := sprite
|
||||||
|
no_data.data = nil
|
||||||
|
draw_sprite_batched(&app, &no_data, 1)
|
||||||
|
testing.expect_value(t, len(app.draw_list), 0)
|
||||||
|
|
||||||
|
no_tex := sprite
|
||||||
|
tex_data := data
|
||||||
|
tex_data.texture = nil
|
||||||
|
no_tex.data = &tex_data
|
||||||
|
draw_sprite_batched(&app, &no_tex, 1)
|
||||||
|
testing.expect_value(t, len(app.draw_list), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
prepare_draw_batches_regroups_then_plans_runs :: proc(t: ^testing.T) {
|
||||||
|
list := []Queued_Sprite {
|
||||||
|
queued(2, 1, 1),
|
||||||
|
queued(1, 1, 2),
|
||||||
|
queued(2, 1, 3),
|
||||||
|
queued(1, 1, 4),
|
||||||
|
queued(3, 0, 5),
|
||||||
|
queued(1, 0, 6),
|
||||||
|
}
|
||||||
|
batches := make([dynamic]Draw_Batch)
|
||||||
|
defer delete(batches)
|
||||||
|
|
||||||
|
prepare_draw_batches(list, &batches)
|
||||||
|
|
||||||
|
testing.expect_value(t, len(batches), 4)
|
||||||
|
testing.expect_value(t, batches[0].start, 0)
|
||||||
|
testing.expect_value(t, batches[0].count, 2)
|
||||||
|
testing.expect(t, batches[0].texture == fake_tex(1))
|
||||||
|
testing.expect_value(t, batches[1].start, 2)
|
||||||
|
testing.expect_value(t, batches[1].count, 2)
|
||||||
|
testing.expect(t, batches[1].texture == fake_tex(2))
|
||||||
|
testing.expect_value(t, batches[2].start, 4)
|
||||||
|
testing.expect_value(t, batches[2].count, 1)
|
||||||
|
testing.expect(t, batches[2].texture == fake_tex(3))
|
||||||
|
testing.expect_value(t, batches[3].start, 5)
|
||||||
|
testing.expect_value(t, batches[3].count, 1)
|
||||||
|
testing.expect(t, batches[3].texture == fake_tex(1))
|
||||||
|
|
||||||
|
// Group 0 submission order preserved.
|
||||||
|
testing.expect_value(t, marker_of(list[4]), f32(5))
|
||||||
|
testing.expect_value(t, marker_of(list[5]), f32(6))
|
||||||
|
testing.expect_value(t, list[4].batch_group, u32(0))
|
||||||
|
testing.expect_value(t, list[5].batch_group, u32(0))
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package engine
|
||||||
|
|
||||||
|
Camera :: struct {
|
||||||
|
position: Vec2,
|
||||||
|
anchor: Vec2,
|
||||||
|
}
|
||||||
|
|
||||||
|
camera_default :: proc() -> Camera {
|
||||||
|
return Camera{position = {0, 0}, anchor = {0.5, 0.5}}
|
||||||
|
}
|
||||||
|
|
||||||
|
world_to_screen :: proc(cam: Camera, world: Vec2, viewport: Vec2) -> Vec2 {
|
||||||
|
return {
|
||||||
|
world.x - cam.position.x + viewport.x * cam.anchor[0],
|
||||||
|
world.y - cam.position.y + viewport.y * cam.anchor[1],
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package engine
|
||||||
|
|
||||||
|
import "core:testing"
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
camera_default_values :: proc(t: ^testing.T) {
|
||||||
|
cam := camera_default()
|
||||||
|
testing.expect_value(t, cam.position, Vec2{0, 0})
|
||||||
|
testing.expect_value(t, cam.anchor, Vec2{0.5, 0.5})
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
world_to_screen_centered_identity :: proc(t: ^testing.T) {
|
||||||
|
cam := Camera {
|
||||||
|
position = {400, 500},
|
||||||
|
anchor = {0.5, 0.5},
|
||||||
|
}
|
||||||
|
viewport := Vec2{800, 600}
|
||||||
|
screen := world_to_screen(cam, cam.position, viewport)
|
||||||
|
testing.expect_value(t, screen.x, f32(400))
|
||||||
|
testing.expect_value(t, screen.y, f32(300))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
world_to_screen_origin_cam :: proc(t: ^testing.T) {
|
||||||
|
cam := Camera {
|
||||||
|
position = {0, 0},
|
||||||
|
anchor = {0.5, 0.5},
|
||||||
|
}
|
||||||
|
screen := world_to_screen(cam, {10, 20}, {200, 100})
|
||||||
|
testing.expect_value(t, screen.x, f32(110))
|
||||||
|
testing.expect_value(t, screen.y, f32(70))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
world_to_screen_top_left_anchor :: proc(t: ^testing.T) {
|
||||||
|
cam := Camera {
|
||||||
|
position = {5, 7},
|
||||||
|
anchor = {0, 0},
|
||||||
|
}
|
||||||
|
screen := world_to_screen(cam, {15, 27}, {800, 600})
|
||||||
|
testing.expect_value(t, screen.x, f32(10))
|
||||||
|
testing.expect_value(t, screen.y, f32(20))
|
||||||
|
}
|
||||||
@@ -170,7 +170,10 @@ load_character_data :: proc(app: ^App, character_json_path: string) -> (Characte
|
|||||||
sdl.EndGPUCopyPass(copy_pass)
|
sdl.EndGPUCopyPass(copy_pass)
|
||||||
fence := sdl.SubmitGPUCommandBufferAndAcquireFence(cmd)
|
fence := sdl.SubmitGPUCommandBufferAndAcquireFence(cmd)
|
||||||
if fence == nil {
|
if fence == nil {
|
||||||
fmt.eprintfln("SubmitGPUCommandBufferAndAcquireFence (texture upload) failed: %s", sdl.GetError())
|
fmt.eprintfln(
|
||||||
|
"SubmitGPUCommandBufferAndAcquireFence (texture upload) failed: %s",
|
||||||
|
sdl.GetError(),
|
||||||
|
)
|
||||||
sdl.ReleaseGPUTransferBuffer(app.device, tbuf)
|
sdl.ReleaseGPUTransferBuffer(app.device, tbuf)
|
||||||
sdl.ReleaseGPUTexture(app.device, out.texture)
|
sdl.ReleaseGPUTexture(app.device, out.texture)
|
||||||
return {}, false
|
return {}, false
|
||||||
@@ -200,6 +203,29 @@ destroy_character_data :: proc(app: ^App, data: ^Character_Data) {
|
|||||||
data^ = {}
|
data^ = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
character_clip :: proc(data: ^Character_Data, clip_name: string) -> (clip: Clip_Def, ok: bool) {
|
||||||
|
if data == nil do return {}, false
|
||||||
|
character, found := data.def.clips[clip_name]
|
||||||
|
if !found || len(character.frames) == 0 do return {}, false
|
||||||
|
return character, true
|
||||||
|
}
|
||||||
|
|
||||||
|
character_frame :: proc(
|
||||||
|
data: ^Character_Data,
|
||||||
|
clip_name: string,
|
||||||
|
frame_index: int,
|
||||||
|
) -> (
|
||||||
|
frame: Frame_Def,
|
||||||
|
ok: bool,
|
||||||
|
) {
|
||||||
|
if data == nil do return {}, false
|
||||||
|
clip, found := data.def.clips[clip_name]
|
||||||
|
if !found || frame_index < 0 || frame_index >= len(clip.frames) {
|
||||||
|
return {}, false
|
||||||
|
}
|
||||||
|
return clip.frames[frame_index], true
|
||||||
|
}
|
||||||
|
|
||||||
character_frame_rect :: proc(
|
character_frame_rect :: proc(
|
||||||
data: ^Character_Data,
|
data: ^Character_Data,
|
||||||
clip_name: string,
|
clip_name: string,
|
||||||
@@ -208,10 +234,7 @@ character_frame_rect :: proc(
|
|||||||
rect: [4]int,
|
rect: [4]int,
|
||||||
ok: bool,
|
ok: bool,
|
||||||
) {
|
) {
|
||||||
clip, found := data.def.clips[clip_name]
|
frame, found := character_frame(data, clip_name, frame_index)
|
||||||
if !found || frame_index < 0 || frame_index >= len(clip.frames) {
|
if !found do return {}, false
|
||||||
return {}, false
|
return frame.rect, true
|
||||||
}
|
|
||||||
|
|
||||||
return clip.frames[frame_index].rect, true
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ parse_char_def_happy_path :: proc(t: ^testing.T) {
|
|||||||
def, ok := parse_char_def(src)
|
def, ok := parse_char_def(src)
|
||||||
defer destroy_char_def(&def)
|
defer destroy_char_def(&def)
|
||||||
|
|
||||||
testing.expect(t, ok)
|
testing.expect(t, ok, "parse_char_def should succeed on valid JSON")
|
||||||
testing.expect_value(t, def.id, "toad")
|
testing.expect_value(t, def.id, "toad")
|
||||||
testing.expect_value(t, def.atlas, "toad.atlas.png")
|
testing.expect_value(t, def.atlas, "toad.atlas.png")
|
||||||
testing.expect_value(t, def.version, 1)
|
testing.expect_value(t, def.version, 1)
|
||||||
@@ -20,8 +20,8 @@ parse_char_def_happy_path :: proc(t: ^testing.T) {
|
|||||||
testing.expect_value(t, def.pivot[1], f32(1.0))
|
testing.expect_value(t, def.pivot[1], f32(1.0))
|
||||||
|
|
||||||
idle, found := def.clips["idle"]
|
idle, found := def.clips["idle"]
|
||||||
testing.expect(t, found)
|
testing.expect(t, found, "expected idle clip in parsed def")
|
||||||
testing.expect(t, idle.loop)
|
testing.expect(t, idle.loop, "idle clip should loop")
|
||||||
testing.expect_value(t, idle.fps, f32(8.0))
|
testing.expect_value(t, idle.fps, f32(8.0))
|
||||||
testing.expect_value(t, len(idle.frames), 1)
|
testing.expect_value(t, len(idle.frames), 1)
|
||||||
testing.expect_value(t, idle.frames[0].rect, [4]int{1, 2, 3, 4})
|
testing.expect_value(t, idle.frames[0].rect, [4]int{1, 2, 3, 4})
|
||||||
@@ -30,7 +30,7 @@ parse_char_def_happy_path :: proc(t: ^testing.T) {
|
|||||||
@(test)
|
@(test)
|
||||||
parse_char_def_bad_json :: proc(t: ^testing.T) {
|
parse_char_def_bad_json :: proc(t: ^testing.T) {
|
||||||
_, ok := parse_char_def(transmute([]u8)string("{ not json"))
|
_, ok := parse_char_def(transmute([]u8)string("{ not json"))
|
||||||
testing.expect(t, !ok)
|
testing.expect(t, !ok, "parse_char_def should fail on invalid JSON")
|
||||||
}
|
}
|
||||||
|
|
||||||
@(test)
|
@(test)
|
||||||
@@ -51,17 +51,66 @@ character_frame_rect_hit_and_miss :: proc(t: ^testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rect, ok := character_frame_rect(&data, "idle", 1)
|
rect, ok := character_frame_rect(&data, "idle", 1)
|
||||||
testing.expect(t, ok)
|
testing.expect(t, ok, "character_frame_rect should find idle frame 1")
|
||||||
testing.expect_value(t, rect, [4]int{50, 60, 70, 80})
|
testing.expect_value(t, rect, [4]int{50, 60, 70, 80})
|
||||||
|
|
||||||
_, ok = character_frame_rect(&data, "missing", 0)
|
_, ok = character_frame_rect(&data, "missing", 0)
|
||||||
testing.expect(t, !ok)
|
testing.expect(t, !ok, "character_frame_rect should miss unknown clip")
|
||||||
|
|
||||||
_, ok = character_frame_rect(&data, "idle", -1)
|
_, ok = character_frame_rect(&data, "idle", -1)
|
||||||
testing.expect(t, !ok)
|
testing.expect(t, !ok, "character_frame_rect should reject negative index")
|
||||||
|
|
||||||
_, ok = character_frame_rect(&data, "idle", 2)
|
_, ok = character_frame_rect(&data, "idle", 2)
|
||||||
testing.expect(t, !ok)
|
testing.expect(t, !ok, "character_frame_rect should reject out-of-range index")
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
character_frame_returns_full_def :: proc(t: ^testing.T) {
|
||||||
|
data: Character_Data
|
||||||
|
data.def.clips = make(map[string]Clip_Def)
|
||||||
|
defer delete(data.def.clips)
|
||||||
|
|
||||||
|
frames := make([]Frame_Def, 1)
|
||||||
|
frames[0] = Frame_Def {
|
||||||
|
rect = {10, 20, 30, 40},
|
||||||
|
source_size = {100, 200},
|
||||||
|
trim_offset = {5, 7},
|
||||||
|
}
|
||||||
|
defer delete(frames)
|
||||||
|
|
||||||
|
data.def.clips["idle"] = Clip_Def {
|
||||||
|
loop = true,
|
||||||
|
fps = 10,
|
||||||
|
frames = frames,
|
||||||
|
}
|
||||||
|
|
||||||
|
frame, ok := character_frame(&data, "idle", 0)
|
||||||
|
testing.expect(t, ok, "character_frame should find idle frame 0")
|
||||||
|
testing.expect_value(t, frame.rect, [4]int{10, 20, 30, 40})
|
||||||
|
testing.expect_value(t, frame.source_size, [2]int{100, 200})
|
||||||
|
testing.expect_value(t, frame.trim_offset, [2]int{5, 7})
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
character_frame_nil_and_bad_index :: proc(t: ^testing.T) {
|
||||||
|
_, ok := character_frame(nil, "idle", 0)
|
||||||
|
testing.expect(t, !ok, "character_frame should fail on nil data")
|
||||||
|
|
||||||
|
data: Character_Data
|
||||||
|
data.def.clips = make(map[string]Clip_Def)
|
||||||
|
defer delete(data.def.clips)
|
||||||
|
|
||||||
|
frames := make([]Frame_Def, 1)
|
||||||
|
frames[0] = {rect = {1, 2, 3, 4}}
|
||||||
|
defer delete(frames)
|
||||||
|
data.def.clips["idle"] = Clip_Def{frames = frames}
|
||||||
|
|
||||||
|
_, ok = character_frame(&data, "idle", -1)
|
||||||
|
testing.expect(t, !ok, "character_frame should reject negative index")
|
||||||
|
_, ok = character_frame(&data, "idle", 1)
|
||||||
|
testing.expect(t, !ok, "character_frame should reject out-of-range index")
|
||||||
|
_, ok = character_frame(&data, "missing", 0)
|
||||||
|
testing.expect(t, !ok, "character_frame should miss unknown clip")
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy_char_def :: proc(def: ^Char_Def) {
|
destroy_char_def :: proc(def: ^Char_Def) {
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
package engine
|
||||||
|
|
||||||
|
import sdl "vendor:sdl3"
|
||||||
|
|
||||||
|
Key :: enum {
|
||||||
|
A,
|
||||||
|
D,
|
||||||
|
Left,
|
||||||
|
Right,
|
||||||
|
Up,
|
||||||
|
Down,
|
||||||
|
Space,
|
||||||
|
N1,
|
||||||
|
N2,
|
||||||
|
}
|
||||||
|
|
||||||
|
key_down :: proc(key: Key) -> bool {
|
||||||
|
keys := sdl.GetKeyboardState(nil)
|
||||||
|
if keys == nil do return false
|
||||||
|
|
||||||
|
scan_code: sdl.Scancode
|
||||||
|
switch key {
|
||||||
|
case .A:
|
||||||
|
scan_code = .A
|
||||||
|
case .D:
|
||||||
|
scan_code = .D
|
||||||
|
case .Left:
|
||||||
|
scan_code = .LEFT
|
||||||
|
case .Right:
|
||||||
|
scan_code = .RIGHT
|
||||||
|
case .Up:
|
||||||
|
scan_code = .UP
|
||||||
|
case .Down:
|
||||||
|
scan_code = .DOWN
|
||||||
|
case .Space:
|
||||||
|
scan_code = .SPACE
|
||||||
|
case .N1:
|
||||||
|
scan_code = ._1
|
||||||
|
case .N2:
|
||||||
|
scan_code = ._2
|
||||||
|
}
|
||||||
|
return keys[scan_code]
|
||||||
|
}
|
||||||
@@ -21,16 +21,25 @@ shader_filenames_per_backend :: proc(t: ^testing.T) {
|
|||||||
@(test)
|
@(test)
|
||||||
choose_shader_runtime_prefers_msl :: proc(t: ^testing.T) {
|
choose_shader_runtime_prefers_msl :: proc(t: ^testing.T) {
|
||||||
rt, ok := choose_shader_runtime_from_formats({.MSL, .SPIRV, .DXIL})
|
rt, ok := choose_shader_runtime_from_formats({.MSL, .SPIRV, .DXIL})
|
||||||
testing.expect(t, ok)
|
testing.expect(t, ok, "should pick a runtime when MSL is available")
|
||||||
testing.expect_value(t, rt.backend, Shader_Backend.Metal_MSL)
|
testing.expect_value(t, rt.backend, Shader_Backend.Metal_MSL)
|
||||||
testing.expect_value(t, rt.shader_dir, "shaders/metal")
|
testing.expect_value(t, rt.shader_dir, "shaders/metal")
|
||||||
testing.expect_value(t, rt.format, sdl.GPUShaderFormat{.MSL})
|
testing.expect_value(t, rt.format, sdl.GPUShaderFormat{.MSL})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
choose_shader_runtime_prefers_dxil_without_msl :: proc(t: ^testing.T) {
|
||||||
|
rt, ok := choose_shader_runtime_from_formats({.DXIL, .SPIRV})
|
||||||
|
testing.expect(t, ok, "should pick a runtime when DXIL is available")
|
||||||
|
testing.expect_value(t, rt.backend, Shader_Backend.DSD12_DXIL)
|
||||||
|
testing.expect_value(t, rt.shader_dir, "shaders/d3d12")
|
||||||
|
testing.expect_value(t, rt.format, sdl.GPUShaderFormat{.DXIL})
|
||||||
|
}
|
||||||
|
|
||||||
@(test)
|
@(test)
|
||||||
choose_shader_runtime_spirv_only :: proc(t: ^testing.T) {
|
choose_shader_runtime_spirv_only :: proc(t: ^testing.T) {
|
||||||
rt, ok := choose_shader_runtime_from_formats({.SPIRV})
|
rt, ok := choose_shader_runtime_from_formats({.SPIRV})
|
||||||
testing.expect(t, ok)
|
testing.expect(t, ok, "should pick SPIR-V when it is the only format")
|
||||||
testing.expect_value(t, rt.backend, Shader_Backend.Vulkan_SPIRV)
|
testing.expect_value(t, rt.backend, Shader_Backend.Vulkan_SPIRV)
|
||||||
testing.expect_value(t, rt.shader_dir, "shaders/vulkan")
|
testing.expect_value(t, rt.shader_dir, "shaders/vulkan")
|
||||||
testing.expect_value(t, rt.format, sdl.GPUShaderFormat{.SPIRV})
|
testing.expect_value(t, rt.format, sdl.GPUShaderFormat{.SPIRV})
|
||||||
@@ -39,5 +48,5 @@ choose_shader_runtime_spirv_only :: proc(t: ^testing.T) {
|
|||||||
@(test)
|
@(test)
|
||||||
choose_shader_runtime_empty_fails :: proc(t: ^testing.T) {
|
choose_shader_runtime_empty_fails :: proc(t: ^testing.T) {
|
||||||
_, ok := choose_shader_runtime_from_formats({})
|
_, ok := choose_shader_runtime_from_formats({})
|
||||||
testing.expect(t, !ok)
|
testing.expect(t, !ok, "empty format set should fail")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
package engine
|
package engine
|
||||||
|
|
||||||
import "core:mem"
|
|
||||||
import sdl "vendor:sdl3"
|
import sdl "vendor:sdl3"
|
||||||
|
|
||||||
Vec2 :: [2]f32
|
Vec2 :: [2]f32
|
||||||
|
|
||||||
Sprite :: struct {
|
Sprite :: struct {
|
||||||
data: ^Character_Data,
|
data: ^Character_Data,
|
||||||
position: Vec2,
|
position: Vec2,
|
||||||
clip: string,
|
clip: string,
|
||||||
frame: int,
|
clip_def: Clip_Def,
|
||||||
|
has_clip: bool,
|
||||||
|
frame: int,
|
||||||
|
time: f32,
|
||||||
|
flip_x: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn_sprite :: proc(
|
spawn_sprite :: proc(
|
||||||
@@ -18,13 +21,58 @@ spawn_sprite :: proc(
|
|||||||
clip: string = "idle",
|
clip: string = "idle",
|
||||||
frame: int = 0,
|
frame: int = 0,
|
||||||
) -> Sprite {
|
) -> Sprite {
|
||||||
return Sprite{data = data, position = position, clip = clip, frame = frame}
|
sprite := Sprite {
|
||||||
|
data = data,
|
||||||
|
position = position,
|
||||||
|
}
|
||||||
|
set_sprite_clip(&sprite, clip)
|
||||||
|
if frame != 0 && sprite.has_clip {
|
||||||
|
c := sprite.clip_def
|
||||||
|
if frame < 0 {
|
||||||
|
sprite.frame = 0
|
||||||
|
} else if frame >= len(c.frames) {
|
||||||
|
sprite.frame = len(c.frames) - 1
|
||||||
|
} else {
|
||||||
|
sprite.frame = frame
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sprite
|
||||||
}
|
}
|
||||||
|
|
||||||
// stubbed for later
|
|
||||||
update_sprite :: proc(sprite: ^Sprite, dt: f32) {
|
update_sprite :: proc(sprite: ^Sprite, dt: f32) {
|
||||||
_ = sprite
|
if sprite == nil || sprite.data == nil do return
|
||||||
_ = dt
|
if dt <= 0 do return
|
||||||
|
if !sprite.has_clip do return
|
||||||
|
|
||||||
|
clip := sprite.clip_def
|
||||||
|
|
||||||
|
frame_count := len(clip.frames)
|
||||||
|
if frame_count <= 0 do return
|
||||||
|
|
||||||
|
if sprite.frame < 0 do sprite.frame = 0
|
||||||
|
if sprite.frame >= frame_count do sprite.frame = frame_count - 1
|
||||||
|
|
||||||
|
if clip.fps <= 0 do return
|
||||||
|
|
||||||
|
sprite.time += dt
|
||||||
|
frame_duration := 1.0 / clip.fps
|
||||||
|
|
||||||
|
for sprite.time >= frame_duration {
|
||||||
|
sprite.time -= frame_duration
|
||||||
|
next := sprite.frame + 1
|
||||||
|
|
||||||
|
if next >= frame_count {
|
||||||
|
if clip.loop {
|
||||||
|
sprite.frame = 0
|
||||||
|
} else {
|
||||||
|
sprite.frame = frame_count - 1
|
||||||
|
sprite.time = 0
|
||||||
|
break
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
sprite.frame = next
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
to_clip :: proc(px, py, sw, sh: f32) -> [2]f32 {
|
to_clip :: proc(px, py, sw, sh: f32) -> [2]f32 {
|
||||||
@@ -34,44 +82,81 @@ to_clip :: proc(px, py, sw, sh: f32) -> [2]f32 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Axis-aligned quad: two unique x and y values, so scale once and reuse.
|
||||||
|
sprite_quad_to_clip :: proc(x0, y0, x1, y1, sw, sh: f32) -> [4]Vec2 {
|
||||||
|
sx := 2.0 / sw
|
||||||
|
sy := 2.0 / sh
|
||||||
|
|
||||||
|
left := x0 * sx - 1
|
||||||
|
right := x1 * sx - 1
|
||||||
|
top := 1 - y0 * sy
|
||||||
|
bottom := 1 - y1 * sy
|
||||||
|
|
||||||
|
return {
|
||||||
|
{left, top},
|
||||||
|
{right, top},
|
||||||
|
{right, bottom},
|
||||||
|
{left, bottom},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
draw_sprite :: proc(app: ^App, sprite: ^Sprite) {
|
draw_sprite :: proc(app: ^App, sprite: ^Sprite) {
|
||||||
if app.render_pass == nil || app.cmd == nil || app.swapchain_texture == nil {
|
draw_sprite_batched(app, sprite, 0)
|
||||||
return // begin_frame may have skipped (minimized window, etc.)
|
}
|
||||||
|
|
||||||
|
// Nonzero batch_group lets end_frame regroup consecutive same-group sprites by
|
||||||
|
// texture. Group 0 keeps exact submission order for correct alpha overlap.
|
||||||
|
draw_sprite_batched :: proc(app: ^App, sprite: ^Sprite, batch_group: u32) {
|
||||||
|
if app.cmd == nil || app.swapchain_texture == nil {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if sprite == nil || sprite.data == nil || sprite.data.texture == nil {
|
if sprite == nil || sprite.data == nil || sprite.data.texture == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if len(app.draw_list) >= MAX_SPRITES {
|
||||||
rect, ok := character_frame_rect(sprite.data, sprite.clip, sprite.frame)
|
return
|
||||||
if !ok {
|
}
|
||||||
|
if !sprite.has_clip do return
|
||||||
|
if sprite.frame < 0 || sprite.frame >= len(sprite.clip_def.frames) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fw := f32(rect[2])
|
frame := sprite.clip_def.frames[sprite.frame]
|
||||||
fh := f32(rect[3])
|
|
||||||
|
|
||||||
// Feet-centered placement, same as renderer version
|
src_w := f32(frame.source_size[0])
|
||||||
x0_px := sprite.position.x - fw * 0.5
|
src_h := f32(frame.source_size[1])
|
||||||
y0_px := sprite.position.y - fh
|
if src_w <= 0 do src_w = f32(frame.rect[2])
|
||||||
x1_px := x0_px + fw
|
if src_h <= 0 do src_h = f32(frame.rect[3])
|
||||||
y1_px := y0_px + fh
|
|
||||||
|
fw := f32(frame.rect[2])
|
||||||
|
fh := f32(frame.rect[3])
|
||||||
|
trim_x := f32(frame.trim_offset[0])
|
||||||
|
trim_y := f32(frame.trim_offset[1])
|
||||||
|
pivot := sprite.data.def.pivot
|
||||||
|
|
||||||
|
viewport := Vec2{f32(app.swapchain_w), f32(app.swapchain_h)}
|
||||||
|
feet := world_to_screen(app.camera, sprite.position, viewport)
|
||||||
|
|
||||||
|
x0_px, y0_px, x1_px, y1_px := sprite_feet_quad(
|
||||||
|
feet,
|
||||||
|
src_w,
|
||||||
|
src_h,
|
||||||
|
{trim_x, trim_y},
|
||||||
|
{fw, fh},
|
||||||
|
pivot,
|
||||||
|
sprite.flip_x,
|
||||||
|
)
|
||||||
|
|
||||||
sw := f32(app.swapchain_w)
|
sw := f32(app.swapchain_w)
|
||||||
sh := f32(app.swapchain_h)
|
sh := f32(app.swapchain_h)
|
||||||
p0 := to_clip(x0_px, y0_px, sw, sh) // top-left
|
points := sprite_quad_to_clip(x0_px, y0_px, x1_px, y1_px, sw, sh)
|
||||||
p1 := to_clip(x1_px, y0_px, sw, sh) // top-right
|
p0, p1, p2, p3 := points[0], points[1], points[2], points[3]
|
||||||
p2 := to_clip(x1_px, y1_px, sw, sh) // bottom-right
|
|
||||||
p3 := to_clip(x0_px, y1_px, sw, sh) // bottom-left
|
|
||||||
|
|
||||||
tex_w := f32(sprite.data.width)
|
tex_w := f32(sprite.data.width)
|
||||||
tex_h := f32(sprite.data.height)
|
tex_h := f32(sprite.data.height)
|
||||||
u0 := f32(rect[0]) / tex_w
|
u0, v0, u1, v1 := frame_uvs(frame.rect, tex_w, tex_h, sprite.flip_x)
|
||||||
v0 := f32(rect[1]) / tex_h
|
|
||||||
u1 := f32(rect[0] + rect[2]) / tex_w
|
|
||||||
v1 := f32(rect[1] + rect[3]) / tex_h
|
|
||||||
|
|
||||||
// Two triangles: (0,1,2) and (0,2,3)
|
verts := [SPRITE_VERT_COUNT]Vertex {
|
||||||
verts := [6]Vertex {
|
|
||||||
{pos = p0, uv = {u0, v0}},
|
{pos = p0, uv = {u0, v0}},
|
||||||
{pos = p1, uv = {u1, v0}},
|
{pos = p1, uv = {u1, v0}},
|
||||||
{pos = p2, uv = {u1, v1}},
|
{pos = p2, uv = {u1, v1}},
|
||||||
@@ -80,52 +165,81 @@ draw_sprite :: proc(app: ^App, sprite: ^Sprite) {
|
|||||||
{pos = p3, uv = {u0, v1}},
|
{pos = p3, uv = {u0, v1}},
|
||||||
}
|
}
|
||||||
|
|
||||||
map_ptr := sdl.MapGPUTransferBuffer(app.device, app.transfer_buffer, false)
|
append(
|
||||||
if map_ptr == nil {
|
&app.draw_list,
|
||||||
return
|
Queued_Sprite {
|
||||||
}
|
texture = sprite.data.texture,
|
||||||
mem.copy(map_ptr, raw_data(verts[:]), size_of(verts))
|
verts = verts,
|
||||||
sdl.UnmapGPUTransferBuffer(app.device, app.transfer_buffer)
|
batch_group = batch_group,
|
||||||
|
},
|
||||||
// IMPORTANT: SDL does not allow beginning a copy pass while a render pass
|
)
|
||||||
// is active on the same command buffer. Upload on a separate command buffer.
|
}
|
||||||
copy_cmd := sdl.AcquireGPUCommandBuffer(app.device)
|
|
||||||
if copy_cmd == nil {
|
set_sprite_clip :: proc(sprite: ^Sprite, clip: string) {
|
||||||
return
|
if sprite == nil || sprite.data == nil do return
|
||||||
}
|
|
||||||
copy_pass := sdl.BeginGPUCopyPass(copy_cmd)
|
if sprite.clip == clip && sprite.has_clip do return
|
||||||
|
|
||||||
src := sdl.GPUTransferBufferLocation {
|
def, ok := character_clip(sprite.data, clip)
|
||||||
transfer_buffer = app.transfer_buffer,
|
if !ok do return
|
||||||
offset = 0,
|
|
||||||
}
|
set_sprite_clip_def(sprite, clip, def)
|
||||||
dst := sdl.GPUBufferRegion {
|
}
|
||||||
buffer = app.vertex_buffer,
|
|
||||||
offset = 0,
|
// Applies a pre-resolved clip without looking up the character clip map.
|
||||||
size = u32(size_of(verts)),
|
// Use when callers already hold Clip_Def (e.g. thrashing between known clips).
|
||||||
}
|
set_sprite_clip_def :: proc(sprite: ^Sprite, clip: string, def: Clip_Def) {
|
||||||
sdl.UploadToGPUBuffer(copy_pass, src, dst, false)
|
if sprite == nil do return
|
||||||
sdl.EndGPUCopyPass(copy_pass)
|
if len(def.frames) == 0 do return
|
||||||
fence := sdl.SubmitGPUCommandBufferAndAcquireFence(copy_cmd)
|
|
||||||
if fence == nil {
|
if sprite.clip == clip && sprite.has_clip do return
|
||||||
return
|
|
||||||
}
|
sprite.clip = clip
|
||||||
defer sdl.ReleaseGPUFence(app.device, fence)
|
sprite.clip_def = def
|
||||||
if !sdl.WaitForGPUFences(app.device, true, &fence, 1) {
|
sprite.has_clip = true
|
||||||
return
|
sprite.frame = 0
|
||||||
}
|
sprite.time = 0
|
||||||
|
}
|
||||||
sampler_binding := sdl.GPUTextureSamplerBinding {
|
|
||||||
texture = sprite.data.texture,
|
sprite_quad_origin :: proc(position: Vec2, size: Vec2, pivot: [2]f32) -> Vec2 {
|
||||||
sampler = app.sampler,
|
return {position.x - size.x * pivot[0], position.y - size.y * pivot[1]}
|
||||||
}
|
}
|
||||||
sdl.BindGPUFragmentSamplers(app.render_pass, 0, &sampler_binding, 1)
|
|
||||||
|
frame_uvs :: proc(rect: [4]int, tex_w, tex_h: f32, flip_x: bool) -> (u0, v0, u1, v1: f32) {
|
||||||
vb_binding := sdl.GPUBufferBinding {
|
u0 = f32(rect[0]) / tex_w
|
||||||
buffer = app.vertex_buffer,
|
v0 = f32(rect[1]) / tex_h
|
||||||
offset = 0,
|
u1 = f32(rect[0] + rect[2]) / tex_w
|
||||||
}
|
v1 = f32(rect[1] + rect[3]) / tex_h
|
||||||
sdl.BindGPUVertexBuffers(app.render_pass, 0, &vb_binding, 1)
|
if flip_x do u0, u1 = u1, u0
|
||||||
|
return
|
||||||
sdl.DrawGPUPrimitives(app.render_pass, 6, 1, 0, 0)
|
}
|
||||||
|
|
||||||
|
sprite_feet_quad :: proc(
|
||||||
|
feet: Vec2,
|
||||||
|
src_w, src_h: f32,
|
||||||
|
trim: Vec2,
|
||||||
|
size: Vec2,
|
||||||
|
pivot: [2]f32,
|
||||||
|
flip_x: bool,
|
||||||
|
) -> (
|
||||||
|
x0, y0, x1, y1: f32,
|
||||||
|
) {
|
||||||
|
canvas_top := feet.y - src_h * pivot[1]
|
||||||
|
if flip_x {
|
||||||
|
canvas_left := feet.x - (1.0 - pivot[0]) * src_w
|
||||||
|
x0 = canvas_left + (src_w - trim.x - size.x)
|
||||||
|
y0 = canvas_top + trim.y
|
||||||
|
} else {
|
||||||
|
canvas_left := feet.x - src_w * pivot[0]
|
||||||
|
x0 = canvas_left + trim.x
|
||||||
|
y0 = canvas_top + trim.y
|
||||||
|
}
|
||||||
|
x1 = x0 + size.x
|
||||||
|
y1 = y0 + size.y
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
set_sprite_flip_x :: proc(sprite: ^Sprite, flip: bool) {
|
||||||
|
if sprite == nil do return
|
||||||
|
sprite.flip_x = flip
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,3 +19,73 @@ to_clip_corners :: proc(t: ^testing.T) {
|
|||||||
testing.expect_value(t, p[0], f32(0))
|
testing.expect_value(t, p[0], f32(0))
|
||||||
testing.expect_value(t, p[1], f32(0))
|
testing.expect_value(t, p[1], f32(0))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
sprite_quad_origin_feet :: proc(t: ^testing.T) {
|
||||||
|
o := sprite_quad_origin({400, 500}, {100, 200}, {0.5, 1.0})
|
||||||
|
testing.expect_value(t, o.x, f32(350))
|
||||||
|
testing.expect_value(t, o.y, f32(300))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
sprite_quad_origin_center :: proc(t: ^testing.T) {
|
||||||
|
o := sprite_quad_origin({400, 500}, {100, 200}, {0.5, 0.5})
|
||||||
|
testing.expect_value(t, o.x, f32(350))
|
||||||
|
testing.expect_value(t, o.y, f32(400))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
frame_uvs_unflipped :: proc(t: ^testing.T) {
|
||||||
|
u0, v0, u1, v1 := frame_uvs({10, 20, 30, 40}, 100, 200, false)
|
||||||
|
testing.expect_value(t, u0, f32(0.1))
|
||||||
|
testing.expect_value(t, v0, f32(0.1))
|
||||||
|
testing.expect_value(t, u1, f32(0.4))
|
||||||
|
testing.expect_value(t, v1, f32(0.3))
|
||||||
|
testing.expect(t, u0 < u1, "unflipped UVs should have u0 < u1")
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
frame_uvs_flipped :: proc(t: ^testing.T) {
|
||||||
|
a0, _, a1, _ := frame_uvs({10, 20, 30, 40}, 100, 200, false)
|
||||||
|
b0, v0, b1, v1 := frame_uvs({10, 20, 30, 40}, 100, 200, true)
|
||||||
|
testing.expect_value(t, b0, a1)
|
||||||
|
testing.expect_value(t, b1, a0)
|
||||||
|
testing.expect_value(t, v0, f32(0.1))
|
||||||
|
testing.expect_value(t, v1, f32(0.3))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
sprite_feet_quad_no_flip :: proc(t: ^testing.T) {
|
||||||
|
// feet (400,500), source 100x200, pivot feet, trim (10,20), packed 80x160
|
||||||
|
x0, y0, x1, y1 := sprite_feet_quad(
|
||||||
|
{400, 500},
|
||||||
|
100,
|
||||||
|
200,
|
||||||
|
{10, 20},
|
||||||
|
{80, 160},
|
||||||
|
{0.5, 1.0},
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
testing.expect_value(t, x0, f32(360)) // 400 - 50 + 10
|
||||||
|
testing.expect_value(t, y0, f32(320)) // 500 - 200 + 20
|
||||||
|
testing.expect_value(t, x1, f32(440))
|
||||||
|
testing.expect_value(t, y1, f32(480))
|
||||||
|
}
|
||||||
|
|
||||||
|
@(test)
|
||||||
|
sprite_feet_quad_flip_x :: proc(t: ^testing.T) {
|
||||||
|
x0, y0, x1, y1 := sprite_feet_quad(
|
||||||
|
{400, 500},
|
||||||
|
100,
|
||||||
|
200,
|
||||||
|
{5, 20},
|
||||||
|
{80, 160},
|
||||||
|
{0.5, 1.0},
|
||||||
|
true,
|
||||||
|
)
|
||||||
|
// canvas_left = 350; trim_x_draw = 100 - 5 - 80 = 15 → x0 = 365
|
||||||
|
testing.expect_value(t, x0, f32(365))
|
||||||
|
testing.expect_value(t, y0, f32(320))
|
||||||
|
testing.expect_value(t, x1, f32(445))
|
||||||
|
testing.expect_value(t, y1, f32(480))
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package engine
|
||||||
|
|
||||||
|
import sdl "vendor:sdl3"
|
||||||
|
|
||||||
|
// now_seconds returns seconds since SDL init (monotonic for frame timing).
|
||||||
|
now_seconds :: proc() -> f64 {
|
||||||
|
return f64(sdl.GetTicksNS()) / 1_000_000_000.0
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// Camera sandbox: toad stays put; arrows pan the camera. Space toggles follow mode.
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "camera sandbox", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
|
if !ok do return
|
||||||
|
defer eng.destroy_character_data(&app, &data)
|
||||||
|
|
||||||
|
toad := eng.spawn_sprite(&data, {0, 0}, "idle", 0)
|
||||||
|
app.camera.position = {0, -100}
|
||||||
|
|
||||||
|
follow := false
|
||||||
|
space_was_down := false
|
||||||
|
CAM_SPEED :: f32(300)
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
|
||||||
|
space := eng.key_down(.Space)
|
||||||
|
if space && !space_was_down {
|
||||||
|
follow = !follow
|
||||||
|
}
|
||||||
|
space_was_down = space
|
||||||
|
|
||||||
|
if follow {
|
||||||
|
app.camera.position = toad.position - {0, 100}
|
||||||
|
} else {
|
||||||
|
if eng.key_down(.Left) || eng.key_down(.A) {
|
||||||
|
app.camera.position.x -= CAM_SPEED * dt
|
||||||
|
}
|
||||||
|
if eng.key_down(.Right) || eng.key_down(.D) {
|
||||||
|
app.camera.position.x += CAM_SPEED * dt
|
||||||
|
}
|
||||||
|
if eng.key_down(.Up) {
|
||||||
|
app.camera.position.y -= CAM_SPEED * dt
|
||||||
|
}
|
||||||
|
if eng.key_down(.Down) {
|
||||||
|
app.camera.position.y += CAM_SPEED * dt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
eng.update_sprite(&toad, dt)
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
eng.draw_sprite(&app, &toad)
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// Clip thrash: flip every sprite between idle/walk each frame via set_sprite_clip_def.
|
||||||
|
COUNT :: eng.MAX_SPRITES
|
||||||
|
COLS :: 16
|
||||||
|
FRAME_LOG_EVERY :: 60
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "clip_thrash", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
|
if !ok do return
|
||||||
|
defer eng.destroy_character_data(&app, &data)
|
||||||
|
|
||||||
|
idle_def, idle_ok := eng.character_clip(&data, "idle")
|
||||||
|
walk_def, walk_ok := eng.character_clip(&data, "walk")
|
||||||
|
if !idle_ok || !walk_ok do return
|
||||||
|
|
||||||
|
sprites: [COUNT]eng.Sprite
|
||||||
|
for i in 0 ..< COUNT {
|
||||||
|
col := i % COLS
|
||||||
|
row := i / COLS
|
||||||
|
pos := eng.Vec2 {
|
||||||
|
f32(40 + col * 48),
|
||||||
|
f32(80 + row * 60),
|
||||||
|
}
|
||||||
|
sprites[i] = eng.spawn_sprite(&data, pos, "idle", i % 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
app.camera.position = {400, 400}
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
frame_i := 0
|
||||||
|
sum_ms: f64
|
||||||
|
peak_ms: f64
|
||||||
|
use_walk := false
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
frame_ms := f64(dt) * 1000.0
|
||||||
|
sum_ms += frame_ms
|
||||||
|
if frame_ms > peak_ms do peak_ms = frame_ms
|
||||||
|
frame_i += 1
|
||||||
|
|
||||||
|
if frame_i % FRAME_LOG_EVERY == 0 {
|
||||||
|
avg := sum_ms / f64(FRAME_LOG_EVERY)
|
||||||
|
fps := 1000.0 / avg if avg > 0 else 0
|
||||||
|
fmt.printfln(
|
||||||
|
"clip_thrash frame: avg=%.2f ms (%.1f FPS) peak=%.2f ms over %d frames",
|
||||||
|
avg,
|
||||||
|
fps,
|
||||||
|
peak_ms,
|
||||||
|
FRAME_LOG_EVERY,
|
||||||
|
)
|
||||||
|
sum_ms = 0
|
||||||
|
peak_ms = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
clip := "walk" if use_walk else "idle"
|
||||||
|
def := walk_def if use_walk else idle_def
|
||||||
|
use_walk = !use_walk
|
||||||
|
for &s in sprites {
|
||||||
|
eng.set_sprite_clip_def(&s, clip, def)
|
||||||
|
eng.update_sprite(&s, dt)
|
||||||
|
}
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
for &s in sprites {
|
||||||
|
eng.draw_sprite(&app, &s)
|
||||||
|
}
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// Clip switcher: 1 = idle, 2 = walk. No movement — animation policy only.
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "clips", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
|
if !ok do return
|
||||||
|
defer eng.destroy_character_data(&app, &data)
|
||||||
|
|
||||||
|
toad := eng.spawn_sprite(&data, {400, 500}, "idle", 0)
|
||||||
|
app.camera.position = toad.position - {0, 100}
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
|
||||||
|
if eng.key_down(.N1) {
|
||||||
|
eng.set_sprite_clip(&toad, "idle")
|
||||||
|
}
|
||||||
|
if eng.key_down(.N2) {
|
||||||
|
eng.set_sprite_clip(&toad, "walk")
|
||||||
|
}
|
||||||
|
|
||||||
|
eng.update_sprite(&toad, dt)
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
eng.draw_sprite(&app, &toad)
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// Many sprites sharing one Character_Data (Flyweight) — good batching demo.
|
||||||
|
COUNT :: eng.MAX_SPRITES
|
||||||
|
COLS :: 16
|
||||||
|
FRAME_LOG_EVERY :: 60
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "crowd", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
|
if !ok do return
|
||||||
|
defer eng.destroy_character_data(&app, &data)
|
||||||
|
|
||||||
|
sprites: [COUNT]eng.Sprite
|
||||||
|
for i in 0 ..< COUNT {
|
||||||
|
col := i % COLS
|
||||||
|
row := i / COLS
|
||||||
|
pos := eng.Vec2 {
|
||||||
|
f32(40 + col * 48),
|
||||||
|
f32(80 + row * 60),
|
||||||
|
}
|
||||||
|
clip := "idle" if (i % 2) == 0 else "walk"
|
||||||
|
sprites[i] = eng.spawn_sprite(&data, pos, clip, i % 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
app.camera.position = {400, 400}
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
frame_i := 0
|
||||||
|
sum_ms: f64
|
||||||
|
peak_ms: f64
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
frame_ms := f64(dt) * 1000.0
|
||||||
|
sum_ms += frame_ms
|
||||||
|
if frame_ms > peak_ms do peak_ms = frame_ms
|
||||||
|
frame_i += 1
|
||||||
|
|
||||||
|
if frame_i % FRAME_LOG_EVERY == 0 {
|
||||||
|
avg := sum_ms / f64(FRAME_LOG_EVERY)
|
||||||
|
fps := 1000.0 / avg if avg > 0 else 0
|
||||||
|
fmt.printfln(
|
||||||
|
"crowd frame: avg=%.2f ms (%.1f FPS) peak=%.2f ms over %d frames",
|
||||||
|
avg,
|
||||||
|
fps,
|
||||||
|
peak_ms,
|
||||||
|
FRAME_LOG_EVERY,
|
||||||
|
)
|
||||||
|
sum_ms = 0
|
||||||
|
peak_ms = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
for &s in sprites {
|
||||||
|
eng.update_sprite(&s, dt)
|
||||||
|
}
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
for &s in sprites {
|
||||||
|
eng.draw_sprite(&app, &s)
|
||||||
|
}
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// Multi-texture batching stress: two Character_Data (two GPU textures), alternating sprites.
|
||||||
|
COUNT :: eng.MAX_SPRITES
|
||||||
|
COLS :: 16
|
||||||
|
FRAME_LOG_EVERY :: 60
|
||||||
|
BATCH_GROUP :: u32(1)
|
||||||
|
TOAD_JSON :: "assets_baked/characters/toad/toad.char.json"
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "crowd_batch", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data_a, ok_a := eng.load_character_data(&app, TOAD_JSON)
|
||||||
|
if !ok_a do return
|
||||||
|
defer eng.destroy_character_data(&app, &data_a)
|
||||||
|
|
||||||
|
data_b, ok_b := eng.load_character_data(&app, TOAD_JSON)
|
||||||
|
if !ok_b do return
|
||||||
|
defer eng.destroy_character_data(&app, &data_b)
|
||||||
|
|
||||||
|
sprites: [COUNT]eng.Sprite
|
||||||
|
for i in 0 ..< COUNT {
|
||||||
|
col := i % COLS
|
||||||
|
row := i / COLS
|
||||||
|
pos := eng.Vec2 {
|
||||||
|
f32(40 + col * 48),
|
||||||
|
f32(80 + row * 60),
|
||||||
|
}
|
||||||
|
clip := "idle" if (i % 2) == 0 else "walk"
|
||||||
|
data := &data_a if (i % 2) == 0 else &data_b
|
||||||
|
sprites[i] = eng.spawn_sprite(data, pos, clip, i % 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
app.camera.position = {400, 400}
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
frame_i := 0
|
||||||
|
sum_ms: f64
|
||||||
|
peak_ms: f64
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
frame_ms := f64(dt) * 1000.0
|
||||||
|
sum_ms += frame_ms
|
||||||
|
if frame_ms > peak_ms do peak_ms = frame_ms
|
||||||
|
frame_i += 1
|
||||||
|
|
||||||
|
if frame_i % FRAME_LOG_EVERY == 0 {
|
||||||
|
avg := sum_ms / f64(FRAME_LOG_EVERY)
|
||||||
|
fps := 1000.0 / avg if avg > 0 else 0
|
||||||
|
fmt.printfln(
|
||||||
|
"crowd_batch frame: avg=%.2f ms (%.1f FPS) peak=%.2f ms over %d frames",
|
||||||
|
avg,
|
||||||
|
fps,
|
||||||
|
peak_ms,
|
||||||
|
FRAME_LOG_EVERY,
|
||||||
|
)
|
||||||
|
sum_ms = 0
|
||||||
|
peak_ms = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
for &s in sprites {
|
||||||
|
eng.update_sprite(&s, dt)
|
||||||
|
}
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
for &s in sprites {
|
||||||
|
eng.draw_sprite_batched(&app, &s, BATCH_GROUP)
|
||||||
|
}
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// GPU overdraw stress: MAX_SPRITES stacked near one world point.
|
||||||
|
COUNT :: eng.MAX_SPRITES
|
||||||
|
FRAME_LOG_EVERY :: 60
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "crowd_overdraw", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
|
if !ok do return
|
||||||
|
defer eng.destroy_character_data(&app, &data)
|
||||||
|
|
||||||
|
center := eng.Vec2{400, 400}
|
||||||
|
sprites: [COUNT]eng.Sprite
|
||||||
|
for i in 0 ..< COUNT {
|
||||||
|
jitter := eng.Vec2 {
|
||||||
|
f32((i % 7) - 3),
|
||||||
|
f32((i % 5) - 2),
|
||||||
|
}
|
||||||
|
clip := "idle" if (i % 2) == 0 else "walk"
|
||||||
|
sprites[i] = eng.spawn_sprite(&data, center + jitter, clip, i % 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
app.camera.position = {400, 400}
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
frame_i := 0
|
||||||
|
sum_ms: f64
|
||||||
|
peak_ms: f64
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
frame_ms := f64(dt) * 1000.0
|
||||||
|
sum_ms += frame_ms
|
||||||
|
if frame_ms > peak_ms do peak_ms = frame_ms
|
||||||
|
frame_i += 1
|
||||||
|
|
||||||
|
if frame_i % FRAME_LOG_EVERY == 0 {
|
||||||
|
avg := sum_ms / f64(FRAME_LOG_EVERY)
|
||||||
|
fps := 1000.0 / avg if avg > 0 else 0
|
||||||
|
fmt.printfln(
|
||||||
|
"crowd_overdraw frame: avg=%.2f ms (%.1f FPS) peak=%.2f ms over %d frames",
|
||||||
|
avg,
|
||||||
|
fps,
|
||||||
|
peak_ms,
|
||||||
|
FRAME_LOG_EVERY,
|
||||||
|
)
|
||||||
|
sum_ms = 0
|
||||||
|
peak_ms = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
for &s in sprites {
|
||||||
|
eng.update_sprite(&s, dt)
|
||||||
|
}
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
for &s in sprites {
|
||||||
|
eng.draw_sprite(&app, &s)
|
||||||
|
}
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import eng "pkg:engine"
|
||||||
|
|
||||||
|
// Minimal: load one baked character and draw idle. No input, no camera follow.
|
||||||
|
main :: proc() {
|
||||||
|
app: eng.App
|
||||||
|
if !eng.init(&app, "hello sprite", 800, 600) do return
|
||||||
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
|
if !ok do return
|
||||||
|
defer eng.destroy_character_data(&app, &data)
|
||||||
|
|
||||||
|
sprite := eng.spawn_sprite(&data, {400, 500}, "idle", 0)
|
||||||
|
|
||||||
|
// Screen-centered framing without gameplay camera follow:
|
||||||
|
// treat spawn position as world; look slightly above feet.
|
||||||
|
app.camera.position = sprite.position - {0, 100}
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
|
||||||
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
|
||||||
|
eng.update_sprite(&sprite, dt)
|
||||||
|
|
||||||
|
eng.begin_frame(&app)
|
||||||
|
eng.draw_sprite(&app, &sprite)
|
||||||
|
eng.end_frame(&app)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ import eng "pkg:engine"
|
|||||||
|
|
||||||
main :: proc() {
|
main :: proc() {
|
||||||
app: eng.App
|
app: eng.App
|
||||||
if !eng.init(&app, "toad", 800, 600) do return
|
if !eng.init(&app, "toad game", 800, 600) do return
|
||||||
defer eng.shutdown(&app)
|
defer eng.shutdown(&app)
|
||||||
|
|
||||||
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
data, ok := eng.load_character_data(&app, "assets_baked/characters/toad/toad.char.json")
|
||||||
@@ -14,10 +14,37 @@ main :: proc() {
|
|||||||
|
|
||||||
toad := eng.spawn_sprite(&data, {400, 500}, "idle", 0)
|
toad := eng.spawn_sprite(&data, {400, 500}, "idle", 0)
|
||||||
|
|
||||||
|
last := eng.now_seconds()
|
||||||
|
SPEED :: f32(200)
|
||||||
|
|
||||||
for eng.events() {
|
for eng.events() {
|
||||||
|
now := eng.now_seconds()
|
||||||
|
dt := f32(now - last)
|
||||||
|
last = now
|
||||||
|
|
||||||
|
left := eng.key_down(.A) || eng.key_down(.Left)
|
||||||
|
right := eng.key_down(.D) || eng.key_down(.Right)
|
||||||
|
|
||||||
|
if left || right {
|
||||||
|
eng.set_sprite_clip(&toad, "walk")
|
||||||
|
if left {
|
||||||
|
toad.position.x -= SPEED * dt
|
||||||
|
toad.flip_x = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if right {
|
||||||
|
toad.position.x += SPEED * dt
|
||||||
|
toad.flip_x = false
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
eng.set_sprite_clip(&toad, "idle")
|
||||||
|
}
|
||||||
|
|
||||||
|
app.camera.position = toad.position - {0, 100}
|
||||||
|
eng.update_sprite(&toad, dt)
|
||||||
|
|
||||||
eng.begin_frame(&app)
|
eng.begin_frame(&app)
|
||||||
eng.draw_sprite(&app, &toad)
|
eng.draw_sprite(&app, &toad)
|
||||||
eng.end_frame(&app)
|
eng.end_frame(&app)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,645 @@
|
|||||||
|
# To display the perf.data header info, please use --header/--header-only options.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Total Lost Samples: 0
|
||||||
|
#
|
||||||
|
# Samples: 499 of event 'cpu/cycles/Pu'
|
||||||
|
# Event count (approx.): 2684910393
|
||||||
|
#
|
||||||
|
# Overhead Command Shared Object Symbol
|
||||||
|
# ........ ............... ............................. ...........................................
|
||||||
|
#
|
||||||
|
9.56% crowd_perf crowd_perf [.] engine::draw_sprite
|
||||||
|
|
|
||||||
|
---engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
5.33% crowd_perf crowd_perf [.] engine::to_clip
|
||||||
|
|
|
||||||
|
---engine::to_clip
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
3.98% crowd_perf crowd_perf [.] engine::sprite_feet_quad
|
||||||
|
|
|
||||||
|
---engine::sprite_feet_quad
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
3.01% crowd_perf crowd_perf [.] engine::update_sprite
|
||||||
|
|
|
||||||
|
---engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.56% crowd_perf crowd_perf [.] runtime::default_hasher
|
||||||
|
|
|
||||||
|
---runtime::default_hasher
|
||||||
|
runtime::default_hasher_string
|
||||||
|
__$hasher$$string
|
||||||
|
|
|
||||||
|
|--1.36%--engine::character_frame
|
||||||
|
| engine::draw_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe3b6c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--1.20%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.49% crowd_perf libc.so.6 [.] 0x000000000018a4c4
|
||||||
|
|
|
||||||
|
---0x7fe3b6d8a4c4
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.47% crowd_perf crowd_perf [.] runtime::_append_elem
|
||||||
|
|
|
||||||
|
---runtime::_append_elem
|
||||||
|
runtime::append_elem:proc(array:^[dynamic]engine::Queued_Sprite,arg:engine::Queued_Sprite,loc:runtime::Source_Code_Location)->(n:int,err:runtime::Allocator_Error)
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.97% crowd_perf crowd_perf [.] runtime::bounds_check_error
|
||||||
|
|
|
||||||
|
---runtime::bounds_check_error
|
||||||
|
engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.70% crowd_perf libwayland-client.so.0.25.0 [.] wl_proxy_marshal_array_flags
|
||||||
|
|
|
||||||
|
---wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
|
|
||||||
|
--0.87%--0x7fe396d97539
|
||||||
|
0x7fe396d8a4f8
|
||||||
|
0x7fe3b724ffc9
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.61% crowd_perf crowd_perf [.] __$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
---__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
|--1.00%--engine::character_frame
|
||||||
|
| engine::draw_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe3b6c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.61%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.57% wl_cursor_surfa libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
1.50% crowd_perf crowd_perf [.] engine::world_to_screen
|
||||||
|
|
|
||||||
|
---engine::world_to_screen
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.35% crowd_perf crowd_perf [.] runtime::memory_equal
|
||||||
|
|
|
||||||
|
---runtime::memory_equal
|
||||||
|
runtime::string_eq
|
||||||
|
__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
--1.06%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.33% crowd_perf libc.so.6 [.] pthread_mutex_lock
|
||||||
|
|
|
||||||
|
---pthread_mutex_lock
|
||||||
|
|
||||||
|
1.31% crowd_perf crowd_perf [.] engine::character_frame
|
||||||
|
|
|
||||||
|
---engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.19% crowd_perf crowd_perf [.] runtime::string_eq
|
||||||
|
|
|
||||||
|
---runtime::string_eq
|
||||||
|
__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
|--0.62%--engine::character_frame
|
||||||
|
| engine::draw_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe3b6c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.57%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.18% crowd_perf [unknown] [k] 0xffffffffab355a81
|
||||||
|
|
|
||||||
|
---0xffffffffab355a81
|
||||||
|
0xffffffffa9e0012f
|
||||||
|
ioctl
|
||||||
|
drmIoctl
|
||||||
|
|
|
||||||
|
--0.59%--drmSyncobjCreate
|
||||||
|
0x7fe396d8c878
|
||||||
|
0x7fe396d893c8
|
||||||
|
0x7fe396d89241
|
||||||
|
0x7fe3b72544bd
|
||||||
|
0x7fe3b7069860
|
||||||
|
engine::begin_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.11% crowd_perf libc.so.6 [.] clock_gettime
|
||||||
|
|
|
||||||
|
---clock_gettime
|
||||||
|
|
|
||||||
|
--0.68%--0x7fe396f7a09a
|
||||||
|
|
||||||
|
1.08% crowd_perf libc.so.6 [.] 0x0000000000189c40
|
||||||
|
|
|
||||||
|
---0x7fe3b6d89c40
|
||||||
|
0x7fe3b6e6ee65
|
||||||
|
wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
0x7fe396d97614
|
||||||
|
0x7fe396d8a4f8
|
||||||
|
0x7fe3b724ffc9
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.03% crowd_perf crowd_perf [.] main::main
|
||||||
|
|
|
||||||
|
---main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.94% crowd_perf libc.so.6 [.] ioctl
|
||||||
|
|
|
||||||
|
---ioctl
|
||||||
|
|
|
||||||
|
--0.94%--drmIoctl
|
||||||
|
|
||||||
|
0.91% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001428a1
|
||||||
|
|
|
||||||
|
---0x7fe3b71428a1
|
||||||
|
0x7fe3b714928f
|
||||||
|
0x7fe3b7141b9a
|
||||||
|
0x7fe3b71426da
|
||||||
|
|
||||||
|
0.89% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000ac3a
|
||||||
|
|
|
||||||
|
---0x7fe3b739bc3a
|
||||||
|
0x7fe3b739c855
|
||||||
|
0x7fe3b73a0f57
|
||||||
|
0x7fe3b73a2e00
|
||||||
|
0x7fe3b739eeda
|
||||||
|
_dl_catch_exception
|
||||||
|
0x7fe3b739e242
|
||||||
|
_dl_catch_exception
|
||||||
|
0x7fe3b739e7a9
|
||||||
|
0x7fe3b6c93bb3
|
||||||
|
_dl_catch_exception
|
||||||
|
0x7fe3b73935c8
|
||||||
|
0x7fe3b6c936a2
|
||||||
|
dlopen
|
||||||
|
0x7fe3b61b2c10
|
||||||
|
0x7fe3b61b7b4b
|
||||||
|
|
||||||
|
0.85% crowd_perf libc.so.6 [.] 0x000000000018a4c0
|
||||||
|
|
|
||||||
|
---0x7fe3b6d8a4c0
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.84% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000691d6
|
||||||
|
|
|
||||||
|
---0x7fe3b70691d6
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.76% crowd_perf libc.so.6 [.] pthread_rwlock_wrlock
|
||||||
|
|
|
||||||
|
---pthread_rwlock_wrlock
|
||||||
|
|
||||||
|
0.74% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000142863
|
||||||
|
|
|
||||||
|
---0x7fe3b7142863
|
||||||
|
0x7fe3b71429b4
|
||||||
|
0x7fe3b714921a
|
||||||
|
0x7fe3b7141b9a
|
||||||
|
0x7fe3b71426da
|
||||||
|
|
||||||
|
0.74% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000149304
|
||||||
|
|
|
||||||
|
---0x7fe3b7149304
|
||||||
|
0x7fe3b7141b9a
|
||||||
|
0x7fe3b71426da
|
||||||
|
|
||||||
|
0.74% crowd_perf libc.so.6 [.] 0x000000000018a0e8
|
||||||
|
|
|
||||||
|
---0x7fe3b6d8a0e8
|
||||||
|
mem::copy
|
||||||
|
engine::load_character_data
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.74% crowd_perf libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
|
|
||||||
|
---0x7fe3b6c9ca5c
|
||||||
|
|
||||||
|
0.73% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000143ffe
|
||||||
|
|
|
||||||
|
---0x7fe3b7143ffe
|
||||||
|
0x7fe3b714a028
|
||||||
|
0x7fe3b7141b9a
|
||||||
|
|
||||||
|
0.72% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000143fe9
|
||||||
|
|
|
||||||
|
---0x7fe3b7143fe9
|
||||||
|
0x7fe3b714a028
|
||||||
|
0x7fe3b7141b9a
|
||||||
|
|
||||||
|
0.71% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003263
|
||||||
|
|
|
||||||
|
---0x7fe3b6e6d263
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
0x7fe396d97937
|
||||||
|
0x7fe396d8a4f8
|
||||||
|
0x7fe3b724ffc9
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.70% crowd_perf crowd_perf [.] runtime::default_hasher_string
|
||||||
|
|
|
||||||
|
---runtime::default_hasher_string
|
||||||
|
__$hasher$$string
|
||||||
|
|
||||||
|
0.69% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjTimelineWait
|
||||||
|
|
|
||||||
|
---drmSyncobjTimelineWait
|
||||||
|
|
||||||
|
0.68% crowd_perf libc.so.6 [.] 0x00000000000a590c
|
||||||
|
|
|
||||||
|
---0x7fe3b6ca590c
|
||||||
|
0x7fe396d827d6
|
||||||
|
0x7fe396d3cff4
|
||||||
|
0x7fe396ddcaf6
|
||||||
|
0x7fe396ddccd4
|
||||||
|
0x7fe396de6f2c
|
||||||
|
0x7fe3b724fec1
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.66% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d030
|
||||||
|
|
|
||||||
|
---0x7fe3b724d030
|
||||||
|
0x7fe3b724f5c0
|
||||||
|
0x7fe3b72545c5
|
||||||
|
0x7fe3b7069860
|
||||||
|
engine::begin_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.66% crowd_perf libc.so.6 [.] 0x000000000018a547
|
||||||
|
|
|
||||||
|
---0x7fe3b6d8a547
|
||||||
|
|
||||||
|
0.65% crowd_perf libvulkan_radeon.so [.] 0x00000000000d27b4
|
||||||
|
|
|
||||||
|
---0x7fe396cd27b4
|
||||||
|
0x7fe396de6325
|
||||||
|
0x7fe3b72546f1
|
||||||
|
0x7fe3b7069860
|
||||||
|
engine::begin_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.64% crowd_perf libvulkan_radeon.so [.] 0x0000000000022d88
|
||||||
|
|
|
||||||
|
---0x7fe396c22d88
|
||||||
|
0x7fe396cd2f6f
|
||||||
|
0x7fe396de6325
|
||||||
|
|
||||||
|
0.61% crowd_perf crowd_perf [.] engine::texture_run_len
|
||||||
|
|
|
||||||
|
---engine::texture_run_len
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.55% crowd_perf libvulkan_radeon.so [.] 0x00000000000bbf60
|
||||||
|
|
|
||||||
|
---0x7fe396cbbf60
|
||||||
|
0x7fe396cc6c98
|
||||||
|
0x7fe396cc985a
|
||||||
|
0x7fe396cd7932
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.54% crowd_perf libvulkan_radeon.so [.] 0x000000000022daad
|
||||||
|
|
|
||||||
|
---0x7fe396e2daad
|
||||||
|
0x7fe396d15bcb
|
||||||
|
0x7fe396d162ff
|
||||||
|
|
||||||
|
0.53% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023af6a
|
||||||
|
|
|
||||||
|
---0x7fe3b723af6a
|
||||||
|
0x7fe3b7249f38
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe3b6c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.48% crowd_perf libwayland-client.so.0.25.0 [.] wl_display_flush
|
||||||
|
0.48% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf827
|
||||||
|
0.47% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000166ae
|
||||||
|
0.44% crowd_perf libvulkan_radeon.so [.] 0x0000000000022daa
|
||||||
|
0.43% crowd_perf libc.so.6 [.] cfree
|
||||||
|
0.43% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2c23
|
||||||
|
0.41% crowd_perf libc.so.6 [.] 0x00000000000a58f9
|
||||||
|
0.41% crowd_perf libvulkan_radeon.so [.] 0x000000000018d44f
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x000000000002b9b1
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4771
|
||||||
|
0.40% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000055ca
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x0000000000116639
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x00000000001d1196
|
||||||
|
0.39% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000315e
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x000000000002d957
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x000000000013d072
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x00000000000cb17b
|
||||||
|
0.38% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000005485a
|
||||||
|
0.38% crowd_perf libc.so.6 [.] malloc
|
||||||
|
0.38% crowd_perf libc.so.6 [.] 0x0000000000180625
|
||||||
|
0.38% crowd_perf libvulkan_radeon.so [.] 0x000000000033b85f
|
||||||
|
0.38% crowd_perf libvulkan_radeon.so [.] 0x00000000000ccd20
|
||||||
|
0.38% crowd_perf libvulkan_radeon.so [.] 0x00000000000c9899
|
||||||
|
0.38% crowd_perf libvulkan_radeon.so [.] 0x00000000001deb23
|
||||||
|
0.38% crowd_perf libvulkan_radeon.so [.] 0x00000000000284e5
|
||||||
|
0.38% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41b7
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x0000000000027cca
|
||||||
|
0.37% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002476b9
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41d6
|
||||||
|
0.37% crowd_perf libc.so.6 [.] 0x000000000018a52e
|
||||||
|
0.37% crowd_perf crowd_perf [.] runtime::map_seed_from_map_data
|
||||||
|
0.36% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_rmutex_lock
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x00000000001e2e46
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x000000000022e017
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x00000000000b7b5f
|
||||||
|
0.35% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_message_loader_queue_messages
|
||||||
|
0.35% crowd_perf libc.so.6 [.] pthread_rwlock_rdlock
|
||||||
|
0.35% crowd_perf libvulkan_radeon.so [.] 0x00000000000be015
|
||||||
|
0.35% crowd_perf libvulkan_radeon.so [.] 0x00000000000c49da
|
||||||
|
0.34% crowd_perf libc.so.6 [.] 0x000000000018a507
|
||||||
|
0.34% crowd_perf libwayland-client.so.0.25.0 [.] wl_display_dispatch_queue_pending
|
||||||
|
0.34% crowd_perf libvulkan_radeon.so [.] 0x0000000000197523
|
||||||
|
0.34% crowd_perf libvulkan_radeon.so [.] 0x00000000000ec905
|
||||||
|
0.34% crowd_perf libvulkan_radeon.so [.] 0x00000000000c4a56
|
||||||
|
0.34% crowd_perf libvulkan_radeon.so [.] 0x00000000000cb864
|
||||||
|
0.34% crowd_perf libdrm.so.2.134.0 [.] drmIoctl
|
||||||
|
0.34% crowd_perf crowd_perf [.] engine::character_clip
|
||||||
|
0.34% crowd_perf libvulkan_radeon.so [.] 0x000000000002d8f7
|
||||||
|
0.33% crowd_perf libvulkan_radeon.so [.] 0x000000000002f104
|
||||||
|
0.33% crowd_perf libc.so.6 [.] pthread_mutex_unlock
|
||||||
|
0.33% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000f7a2c
|
||||||
|
0.33% crowd_perf libvulkan_radeon.so [.] 0x00000000000b92b8
|
||||||
|
0.33% crowd_perf crowd_perf [.] engine::begin_frame
|
||||||
|
0.33% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023b8f4
|
||||||
|
0.33% crowd_perf libvulkan_radeon.so [.] 0x00000000000c2207
|
||||||
|
0.33% crowd_perf libvulkan_radeon.so [.] 0x000000000018c7d5
|
||||||
|
0.32% wl_cursor_surfa [unknown] [k] 0xffffffffa9e000ad
|
||||||
|
0.32% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024ab50
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x0000000000022a03
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x00000000000c9cd7
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x0000000000116770
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x0000000000182332
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebd64
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3c19
|
||||||
|
0.31% crowd_perf libc.so.6 [.] __errno_location
|
||||||
|
0.31% crowd_perf libc.so.6 [.] 0x00000000000a57e4
|
||||||
|
0.31% crowd_perf libc.so.6 [.] 0x000000000018a4b0
|
||||||
|
0.31% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_dispatch_queue_pending
|
||||||
|
0.30% wl_cursor_surfa libc.so.6 [.] 0x00000000000a7491
|
||||||
|
0.30% crowd_perf libvulkan_radeon.so [.] 0x00000000001801f0
|
||||||
|
0.30% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000039f1
|
||||||
|
0.30% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023c110
|
||||||
|
0.30% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd301
|
||||||
|
0.30% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000176c9
|
||||||
|
0.30% crowd_perf libc.so.6 [.] 0x0000000000189c53
|
||||||
|
0.30% crowd_perf libc.so.6 [.] 0x0000000000180600
|
||||||
|
0.30% crowd_perf crowd_perf [.] __$hasher$$string
|
||||||
|
0.30% crowd_perf libvulkan_radeon.so [.] 0x00000000000c8b16
|
||||||
|
0.30% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd419
|
||||||
|
0.30% crowd_perf libvulkan_radeon.so [.] 0x000000000021b321
|
||||||
|
0.30% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023b39a
|
||||||
|
0.30% crowd_perf libc.so.6 [.] 0x000000000018a4ea
|
||||||
|
0.30% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023be20
|
||||||
|
0.29% crowd_perf libvulkan_radeon.so [.] 0x0000000000027f50
|
||||||
|
0.29% crowd_perf libvulkan_radeon.so [.] 0x0000000000022e83
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x00000000000d178c
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x00000000000d6734
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x00000000000bb103
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x00000000000b70b2
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x00000000000cc0c4
|
||||||
|
0.26% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000017694
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x000000000017e9d4
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x00000000000d64a8
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x0000000000335bd4
|
||||||
|
0.26% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000243e20
|
||||||
|
0.26% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000004951
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x0000000000189397
|
||||||
|
0.25% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003147
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x000000000068d01a
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x00000000001e379c
|
||||||
|
0.24% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjWait
|
||||||
|
0.23% crowd_perf [unknown] [k] 0xffffffffa9e000ca
|
||||||
|
0.23% crowd_perf libvulkan_radeon.so [.] 0x000000000028eca3
|
||||||
|
0.20% crowd_perf libvulkan_radeon.so [.] 0x000000000002d851
|
||||||
|
0.20% wl_cursor_surfa libc.so.6 [.] 0x00000000000a73ff
|
||||||
|
0.18% crowd_perf libxkbcommon.so.0.13.2 [.] xkb_keymap_key_get_syms_by_level
|
||||||
|
0.18% crowd_perf libvulkan_radeon.so [.] 0x00000000001dce94
|
||||||
|
0.10% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_connection_unlock
|
||||||
|
0.08% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6761
|
||||||
|
0.01% crowd_perf libc.so.6 [.] 0x0000000000189d47
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094084
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x000000000018a507
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] pthread_mutex_lock
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000e922c9
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffab35a5c1
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd461
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f74
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001cd7b4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000017ff33
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000af32
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_read_events
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000000d65a4
|
||||||
|
0.00% crowd_perf libc.so.6 [.] vsnprintf
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000184dd2
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000193ec9
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x00000000000147f8
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345adb
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __ctype_init
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000064834
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ad6
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddb
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000005d0b
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345b18
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345bb0
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f76
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ce7
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000616e
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3362
|
||||||
|
0.00% crowd_perf libc.so.6 [.] realloc
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345bb3
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000ac94
|
||||||
|
0.00% crowd_perf libc.so.6 [.] pthread_setaffinity_np
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000097417
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000973bb
|
||||||
|
0.00% crowd_perf libdrm_amdgpu.so.1.134.0 [.] 0x00000000000078b0
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e01284
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a40
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001fcc4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ccb
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344cd4
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] ppoll
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed0
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e01280
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094085
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000973a0
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed7
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000002ede
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000006167
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000ac75
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000b7f3
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000b84a
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000019a7d
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000019a84
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001f103
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001fcc0
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed2
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed5
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjImportSyncFile
|
||||||
|
0.00% crowd_perf libdrm_amdgpu.so.1.134.0 [.] amdgpu_device_initialize
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd464
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd46a
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ce2
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddd
|
||||||
|
0.00% crowd_perf libz.so.1.3.2 [.] 0x0000000000003004
|
||||||
|
0.00% crowd_perf libz.so.1.3.2 [.] 0x000000000000300f
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e01670
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] recvmsg
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# (Tip: To change sampling frequency to 100 Hz: perf record -F 100)
|
||||||
|
#
|
||||||
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 62 KiB |
@@ -0,0 +1,700 @@
|
|||||||
|
# To display the perf.data header info, please use --header/--header-only options.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Total Lost Samples: 0
|
||||||
|
#
|
||||||
|
# Samples: 469 of event 'cpu/cycles/Pu'
|
||||||
|
# Event count (approx.): 2304609671
|
||||||
|
#
|
||||||
|
# Overhead Command Shared Object Symbol
|
||||||
|
# ........ ............... ............................. ......................................................................................................................................................................
|
||||||
|
#
|
||||||
|
12.22% crowd_perf crowd_perf [.] engine::draw_sprite
|
||||||
|
|
|
||||||
|
---engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
5.51% crowd_perf crowd_perf [.] engine::to_clip
|
||||||
|
|
|
||||||
|
---engine::to_clip
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
4.04% crowd_perf libc.so.6 [.] pthread_mutex_lock
|
||||||
|
|
|
||||||
|
---pthread_mutex_lock
|
||||||
|
|
|
||||||
|
|--0.81%--0x7fe9b424f559
|
||||||
|
| 0x7fe9b42545c5
|
||||||
|
| 0x7fe9b4069860
|
||||||
|
| engine::begin_frame
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe9b3c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
|--0.79%--wl_display_prepare_read_queue
|
||||||
|
| wl_display_dispatch_queue_timeout
|
||||||
|
| 0x7fe9b228fead
|
||||||
|
| 0x7fe9b1d936f3
|
||||||
|
| 0x7fe9b1d97300
|
||||||
|
| 0x7fe9b1d8a4f8
|
||||||
|
| 0x7fe9b424ffc9
|
||||||
|
| engine::end_frame
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe9b3c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
|--0.76%--0x7fe9b3e94a51
|
||||||
|
| 0x7fe9b4054fca
|
||||||
|
| 0x7fe9b4055bbd
|
||||||
|
| engine::events
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe9b3c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
|--0.76%--wl_display_cancel_read
|
||||||
|
|
|
||||||
|
--0.52%--0x7fe9b3eab81f
|
||||||
|
0x7fe9b3e905f6
|
||||||
|
dbus_connection_dispatch
|
||||||
|
0x7fe9b4054fe2
|
||||||
|
0x7fe9b4055bbd
|
||||||
|
engine::events
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
3.30% crowd_perf crowd_perf [.] engine::sprite_feet_quad
|
||||||
|
|
|
||||||
|
---engine::sprite_feet_quad
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
3.12% crowd_perf crowd_perf [.] main::main
|
||||||
|
|
|
||||||
|
---main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
3.01% crowd_perf crowd_perf [.] engine::update_sprite
|
||||||
|
|
|
||||||
|
---engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.34% crowd_perf crowd_perf [.] engine::world_to_screen
|
||||||
|
|
|
||||||
|
---engine::world_to_screen
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.95% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41d6
|
||||||
|
|
|
||||||
|
---0x7fe9b1df41d6
|
||||||
|
|
|
||||||
|
--1.18%--0x7fe9b1df44e5
|
||||||
|
0x7fe9b1c27d3c
|
||||||
|
0x7fe9b1c28070
|
||||||
|
0x7fe9b1c2d63c
|
||||||
|
|
|
||||||
|
--0.87%--0x7fe9b1cd16b8
|
||||||
|
0x7fe9b1cd2520
|
||||||
|
0x7fe9b1cd2d0a
|
||||||
|
0x7fe9b1de6325
|
||||||
|
0x7fe9b42546f1
|
||||||
|
0x7fe9b4069860
|
||||||
|
engine::begin_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.95% crowd_perf crowd_perf [.] runtime::default_hasher
|
||||||
|
|
|
||||||
|
---runtime::default_hasher
|
||||||
|
runtime::default_hasher_string
|
||||||
|
__$hasher$$string
|
||||||
|
|
|
||||||
|
|--1.28%--engine::character_clip
|
||||||
|
| engine::update_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe9b3c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.66%--engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.60% crowd_perf libc.so.6 [.] clock_gettime
|
||||||
|
|
|
||||||
|
---clock_gettime
|
||||||
|
|
|
||||||
|
--0.83%--wl_display_dispatch_queue_timeout
|
||||||
|
0x7fe9b228fead
|
||||||
|
0x7fe9b1d936f3
|
||||||
|
0x7fe9b1d97300
|
||||||
|
0x7fe9b1d8a4f8
|
||||||
|
0x7fe9b424ffc9
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.50% crowd_perf crowd_perf [.] __$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
---__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
|--0.79%--engine::character_frame
|
||||||
|
| engine::draw_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe9b3c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.71%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.49% wl_cursor_surfa [unknown] [k] 0xffffffffab041cef
|
||||||
|
|
|
||||||
|
---0xffffffffab041cef
|
||||||
|
0xffffffffab355aba
|
||||||
|
0xffffffffa9e0012f
|
||||||
|
|
||||||
|
1.41% crowd_perf crowd_perf [.] engine::character_frame
|
||||||
|
|
|
||||||
|
---engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.28% crowd_perf [unknown] [k] 0xffffffffab355a81
|
||||||
|
|
|
||||||
|
---0xffffffffab355a81
|
||||||
|
0xffffffffa9e0012f
|
||||||
|
|
|
||||||
|
|--0.77%--ioctl
|
||||||
|
| drmIoctl
|
||||||
|
|
|
||||||
|
--0.51%--0x7fe9b3c9fff2
|
||||||
|
0x7fe9b3c9403b
|
||||||
|
0x7fe9b3c94083
|
||||||
|
__close
|
||||||
|
0x7fe9b1d8cacd
|
||||||
|
0x7fe9b1d893c8
|
||||||
|
0x7fe9b1d89241
|
||||||
|
0x7fe9b42544bd
|
||||||
|
0x7fe9b4069860
|
||||||
|
engine::begin_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.26% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_read_events
|
||||||
|
1.25% crowd_perf libwayland-client.so.0.25.0 [.] wl_proxy_marshal_array_flags
|
||||||
|
|
|
||||||
|
---wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
|
|
||||||
|
--0.83%--0x7fe9b1d97614
|
||||||
|
0x7fe9b1d8a4f8
|
||||||
|
0x7fe9b424ffc9
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.22% crowd_perf crowd_perf [.] runtime::string_eq
|
||||||
|
|
|
||||||
|
---runtime::string_eq
|
||||||
|
__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
|--0.72%--engine::character_clip
|
||||||
|
| engine::update_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fe9b3c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.50%--engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.22% crowd_perf libvulkan_radeon.so [.] 0x00000000000ce007
|
||||||
|
|
|
||||||
|
---0x7fe9b1cce007
|
||||||
|
0x7fe9b1dcae1a
|
||||||
|
0x7fe9b424437c
|
||||||
|
0x7fe9b406920d
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
|
||||||
|
1.17% crowd_perf crowd_perf [.] runtime::memory_equal
|
||||||
|
|
|
||||||
|
---runtime::memory_equal
|
||||||
|
runtime::string_eq
|
||||||
|
__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
--0.72%--engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.05% crowd_perf crowd_perf [.] engine::character_clip
|
||||||
|
|
|
||||||
|
---engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.99% crowd_perf crowd_perf [.] runtime::bounds_check_error
|
||||||
|
|
|
||||||
|
---runtime::bounds_check_error
|
||||||
|
|
|
||||||
|
--0.54%--engine::texture_run_len
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.95% crowd_perf libc.so.6 [.] 0x000000000018a4c4
|
||||||
|
|
|
||||||
|
---0x7fe9b3d8a4c4
|
||||||
|
|
|
||||||
|
--0.52%--engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.94% crowd_perf crowd_perf [.] engine::texture_run_len
|
||||||
|
|
|
||||||
|
---engine::texture_run_len
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.93% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001428e7
|
||||||
|
|
|
||||||
|
---0x7fe9b41428e7
|
||||||
|
|
||||||
|
0.85% crowd_perf libc.so.6 [.] 0x00000000000a44b7
|
||||||
|
|
|
||||||
|
---0x7fe9b3ca44b7
|
||||||
|
0x7fe9b3ca6ed2
|
||||||
|
|
||||||
|
0.85% crowd_perf libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
|
|
||||||
|
---0x7fe9b3c9ca5c
|
||||||
|
|
||||||
|
0.84% crowd_perf libzstd.so.1.5.7 [.] 0x0000000000092a16
|
||||||
|
|
|
||||||
|
---0x7fe9b0567a16
|
||||||
|
ZSTD_decompressSequences (inlined)
|
||||||
|
ZSTD_decompressBlock_internal
|
||||||
|
ZSTD_decompressBlock_internal
|
||||||
|
0x7fe9b0562e85
|
||||||
|
ZSTD_decompress_usingDDict
|
||||||
|
ZSTD_decompress
|
||||||
|
0x7fe9b1f5f8cf
|
||||||
|
0x7fe9b1f380f5
|
||||||
|
0x7fe9b1f3978d
|
||||||
|
0x7fe9b1f37a86
|
||||||
|
0x7fe9b1e05d1b
|
||||||
|
0x7fe9b1d28dcd
|
||||||
|
0x7fe9b1e0583a
|
||||||
|
0x7fe9b1e05d49
|
||||||
|
0x7fe9b1d28abb
|
||||||
|
0x7fe9b1d292b4
|
||||||
|
0x7fe9b1d2ab09
|
||||||
|
|
||||||
|
0.83% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000143ffe
|
||||||
|
|
|
||||||
|
---0x7fe9b4143ffe
|
||||||
|
0x7fe9b414a028
|
||||||
|
0x7fe9b4141b9a
|
||||||
|
|
||||||
|
0.83% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003263
|
||||||
|
|
|
||||||
|
---0x7fe9b433a263
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
0x7fe9b1d97937
|
||||||
|
0x7fe9b1d8a4f8
|
||||||
|
0x7fe9b424ffc9
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.83% crowd_perf libvulkan_radeon.so [.] 0x000000000033b851
|
||||||
|
|
|
||||||
|
---0x7fe9b1f3b851
|
||||||
|
0x7fe9b1df41ce
|
||||||
|
0x7fe9b1df44e5
|
||||||
|
0x7fe9b1c27d3c
|
||||||
|
0x7fe9b1c28070
|
||||||
|
0x7fe9b1c2d63c
|
||||||
|
|
||||||
|
0.83% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000014400b
|
||||||
|
|
|
||||||
|
---0x7fe9b414400b
|
||||||
|
0x7fe9b414a028
|
||||||
|
0x7fe9b4141b9a
|
||||||
|
|
||||||
|
0.82% crowd_perf crowd_perf [.] engine::frame_uvs
|
||||||
|
|
|
||||||
|
---engine::frame_uvs
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.82% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000144008
|
||||||
|
|
|
||||||
|
---0x7fe9b4144008
|
||||||
|
0x7fe9b414a028
|
||||||
|
0x7fe9b4141b9a
|
||||||
|
|
||||||
|
0.81% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2c2b
|
||||||
|
|
|
||||||
|
---0x7fe9b1cd2c2b
|
||||||
|
0x7fe9b1de6325
|
||||||
|
0x7fe9b42546f1
|
||||||
|
0x7fe9b4069860
|
||||||
|
engine::begin_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.79% crowd_perf libc.so.6 [.] pthread_rwlock_rdlock
|
||||||
|
|
|
||||||
|
---pthread_rwlock_rdlock
|
||||||
|
|
||||||
|
0.78% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001428a1
|
||||||
|
|
|
||||||
|
---0x7fe9b41428a1
|
||||||
|
0x7fe9b414921a
|
||||||
|
0x7fe9b4141b9a
|
||||||
|
0x7fe9b41426da
|
||||||
|
|
||||||
|
0.76% wl_cursor_surfa libc.so.6 [.] 0x00000000000a66e2
|
||||||
|
0.69% crowd_perf libc.so.6 [.] 0x000000000018a547
|
||||||
|
|
|
||||||
|
---0x7fe9b3d8a547
|
||||||
|
0x7fe9b1cd1554
|
||||||
|
0x7fe9b1de165e
|
||||||
|
0x7fe9b1ddee47
|
||||||
|
0x7fe9b1de35f1
|
||||||
|
0x7fe9b1de157e
|
||||||
|
0x7fe9b423be46
|
||||||
|
0x7fe9b4068a74
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.67% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000014288a
|
||||||
|
|
|
||||||
|
---0x7fe9b414288a
|
||||||
|
0x7fe9b41429b4
|
||||||
|
0x7fe9b414921a
|
||||||
|
0x7fe9b4141b9a
|
||||||
|
0x7fe9b41426da
|
||||||
|
|
||||||
|
0.61% crowd_perf libvulkan_radeon.so [.] 0x0000000000180ab2
|
||||||
|
|
|
||||||
|
---0x7fe9b1d80ab2
|
||||||
|
|
||||||
|
0.58% crowd_perf libvulkan_radeon.so [.] 0x0000000000114c26
|
||||||
|
|
|
||||||
|
---0x7fe9b1d14c26
|
||||||
|
0x7fe9b1d15976
|
||||||
|
0x7fe9b1d162ff
|
||||||
|
0x7fe9b1d1692c
|
||||||
|
0x7fe9b1c2bd93
|
||||||
|
0x7fe9b1c2da03
|
||||||
|
0x7fe9b1c2e4ca
|
||||||
|
0x7fe9b1c2f277
|
||||||
|
0x7fe9b1de052c
|
||||||
|
0x7fe9b1de1521
|
||||||
|
0x7fe9b4247581
|
||||||
|
0x7fe9b4064bab
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
|
||||||
|
0.52% crowd_perf libvulkan_radeon.so [.] 0x0000000000022daa
|
||||||
|
|
|
||||||
|
---0x7fe9b1c22daa
|
||||||
|
0x7fe9b1cd2f6f
|
||||||
|
0x7fe9b1de6325
|
||||||
|
0x7fe9b423bc48
|
||||||
|
0x7fe9b423beb3
|
||||||
|
0x7fe9b4068a74
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fe9b3c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.51% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6747
|
||||||
|
0.49% crowd_perf libc.so.6 [.] 0x00000000001904ba
|
||||||
|
0.48% crowd_perf libc.so.6 [.] 0x000000000018a52e
|
||||||
|
0.48% crowd_perf libvulkan_radeon.so [.] 0x00000000000d17cc
|
||||||
|
0.47% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3c6b
|
||||||
|
0.47% crowd_perf [vdso] [.] __vdso_clock_gettime
|
||||||
|
0.47% crowd_perf libvulkan_radeon.so [.] 0x00000000001d6365
|
||||||
|
0.46% crowd_perf libc.so.6 [.] 0x000000000018a486
|
||||||
|
0.46% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4c30
|
||||||
|
0.46% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3ff4
|
||||||
|
0.45% crowd_perf libdbus-1.so.3.38.3 [.] dbus_connection_get_dispatch_status
|
||||||
|
0.45% crowd_perf libc.so.6 [.] 0x0000000000093fe4
|
||||||
|
0.44% crowd_perf libvulkan_radeon.so [.] 0x000000000017e9d4
|
||||||
|
0.44% crowd_perf libvulkan_radeon.so [.] 0x0000000000114197
|
||||||
|
0.43% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd46c
|
||||||
|
0.43% crowd_perf libvulkan_radeon.so [.] 0x00000000000ce927
|
||||||
|
0.43% crowd_perf crowd_perf [.] runtime::map_seed_from_map_data
|
||||||
|
0.43% crowd_perf libvulkan_radeon.so [.] 0x000000000033cb4a
|
||||||
|
0.42% crowd_perf libc.so.6 [.] 0x0000000000189c4b
|
||||||
|
0.42% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000018567
|
||||||
|
0.42% crowd_perf libc.so.6 [.] 0x0000000000189cca
|
||||||
|
0.41% crowd_perf libvulkan_radeon.so [.] 0x00000000001de7c1
|
||||||
|
0.41% crowd_perf libc.so.6 [.] 0x000000000009ca21
|
||||||
|
0.41% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000176c6
|
||||||
|
0.41% crowd_perf crowd_perf [.] __$hasher$$string
|
||||||
|
0.41% crowd_perf libxkbcommon.so.0.13.2 [.] 0x0000000000005fe7
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2c23
|
||||||
|
0.40% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000185a0
|
||||||
|
0.40% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024f5ea
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x00000000000e662b
|
||||||
|
0.40% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000005555
|
||||||
|
0.40% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000541ae
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x00000000000e6624
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x000000000033e954
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x00000000001ded02
|
||||||
|
0.40% crowd_perf [unknown] [k] 0xffffffffa9e000ab
|
||||||
|
0.39% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000054314
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x00000000001f34c7
|
||||||
|
0.39% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000064bba
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebaa4
|
||||||
|
0.39% crowd_perf libvulkan_radeon.so [.] 0x00000000000b8cb1
|
||||||
|
0.38% crowd_perf libc.so.6 [.] pthread_rwlock_wrlock
|
||||||
|
0.38% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f76
|
||||||
|
0.38% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000326a
|
||||||
|
0.38% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000064a44
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf7ea
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x00000000000c4a65
|
||||||
|
0.37% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002501f2
|
||||||
|
0.37% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024e78a
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x000000000035f600
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41b7
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x00000000000bdd41
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x000000000013c80b
|
||||||
|
0.37% crowd_perf libvulkan_radeon.so [.] 0x00000000001e61b8
|
||||||
|
0.37% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023bc49
|
||||||
|
0.37% crowd_perf libc.so.6 [.] 0x0000000000189cc4
|
||||||
|
0.36% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000247677
|
||||||
|
0.36% wl_cursor_surfa libc.so.6 [.] pthread_mutex_lock
|
||||||
|
0.36% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000003186f
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x00000000000d19ec
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x000000000017ff7a
|
||||||
|
0.36% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000053d7e
|
||||||
|
0.36% crowd_perf libc.so.6 [.] 0x000000000018a4ca
|
||||||
|
0.36% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000246f63
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x00000000001e6473
|
||||||
|
0.35% crowd_perf libvulkan_radeon.so [.] 0x00000000000d6725
|
||||||
|
0.34% crowd_perf libc.so.6 [.] pthread_mutex_unlock
|
||||||
|
0.32% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024fc98
|
||||||
|
0.32% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf078
|
||||||
|
0.32% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000004dc1
|
||||||
|
0.31% wl_cursor_surfa libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.31% crowd_perf crowd_perf [.] runtime::_append_elem
|
||||||
|
0.29% crowd_perf libvulkan_radeon.so [.] 0x0000000000022d80
|
||||||
|
0.28% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023b5cb
|
||||||
|
0.24% crowd_perf crowd_perf [.] runtime::append_elem:proc(array:^[dynamic]engine::Queued_Sprite,arg:engine::Queued_Sprite,loc:runtime::Source_Code_Location)->(n:int,err:runtime::Allocator_Error)
|
||||||
|
0.23% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_list_insert
|
||||||
|
0.23% crowd_perf libc.so.6 [.] 0x00000000000a718d
|
||||||
|
0.19% crowd_perf libvulkan_radeon.so [.] 0x000000000033b80b
|
||||||
|
0.17% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000ffcb
|
||||||
|
0.16% crowd_perf libc.so.6 [.] 0x0000000000189c40
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x0000000000335bdd
|
||||||
|
0.02% crowd_perf libc.so.6 [.] 0x00000000000a4451
|
||||||
|
0.02% wl_cursor_surfa [unknown] [k] 0xffffffffa9e000ad
|
||||||
|
0.02% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6ea4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000000e5f87
|
||||||
|
0.00% crowd_perf libGLX_nvidia.so.610.43.03 [.] 0x00000000000ab456
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a6968
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4d25
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000018325e
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x00000000000144d1
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000018d5e9
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_dispatch_queue_pending
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a44b7
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344db9
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a74c7
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000185195
|
||||||
|
0.00% wl_cursor_surfa [unknown] [k] 0xffffffffab041d04
|
||||||
|
0.00% wl_cursor_surfa libffi.so.8.4.1 [.] 0x0000000000002807
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjTimelineWait
|
||||||
|
0.00% crowd_perf libexpat.so.1.12.2 [.] 0x0000000000002ea9
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344c64
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a5735
|
||||||
|
0.00% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_string_equal_c_str
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_get_fd
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2fa5
|
||||||
|
0.00% crowd_p:disk$0 libc.so.6 [.] 0x00000000000a590f
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6732
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000002647b
|
||||||
|
0.00% crowd_perf libc.so.6 [.] realloc
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000534a3
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000649f8
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4d24
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ccb
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a66c4
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000189cf7
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345b18
|
||||||
|
0.00% crowd_perf libc.so.6 [.] strchrnul@plt
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000008b802
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffab355a39
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffab355a10
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] ppoll
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ad6
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345adb
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ce7
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000014464
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] recvmsg
|
||||||
|
0.00% crowd_perf libxcb.so.1.1.0 [.] 0x000000000000caad
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __ctype_init
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a713d
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e01690
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001cd7b1
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000097417
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a63
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd5e5
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjWait
|
||||||
|
0.00% crowd_perf libexpat.so.1.12.2 [.] 0x000000000000b5db
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __errno_location
|
||||||
|
0.00% crowd_p:disk$0 libc.so.6 [.] 0x000000000009404d
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001fce9
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddd
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345bb3
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e01280
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344cd4
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094085
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed0
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddb
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmIoctl
|
||||||
|
0.00% crowd_perf crowd_perf [.] runtime::multi_pointer_slice_expr_error
|
||||||
|
0.00% crowd_perf libc.so.6 [.] ioctl
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000973a0
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a40
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e01670
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094050
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094084
|
||||||
|
0.00% crowd_p:disk$0 libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.00% crowd_p:disk$0 libc.so.6 [.] 0x0000000000094048
|
||||||
|
0.00% crowd_p:disk$0 libc.so.6 [.] 0x0000000000094049
|
||||||
|
0.00% crowd_perf crowd_perf [.] main
|
||||||
|
0.00% crowd_perf crowd_perf [.] memset@plt
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001f103
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __poll
|
||||||
|
0.00% crowd_perf libc.so.6 [.] malloc
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000009741b
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a710f
|
||||||
|
0.00% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000032197
|
||||||
|
0.00% crowd_perf libexpat.so.1.12.2 [.] 0x0000000000021792
|
||||||
|
0.00% crowd_perf libexpat.so.1.12.2 [.] 0x000000000002179b
|
||||||
|
0.00% crowd_perf libexpat.so.1.12.2 [.] 0x00000000000217aa
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd564
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd592
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd61c
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000003458a3
|
||||||
|
0.00% crowd_perf libxcb.so.1.1.0 [.] 0x000000000000c8db
|
||||||
|
0.00% crowd_perf libxcb.so.1.1.0 [.] 0x000000000000ce6f
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffffa9e015f0
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f74
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094048
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094049
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094097
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# (Tip: To show IPC for sampling periods use perf record -e '{cycles,instructions}:S' and then browse context)
|
||||||
|
#
|
||||||
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 61 KiB |
@@ -0,0 +1,783 @@
|
|||||||
|
# To display the perf.data header info, please use --header/--header-only options.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Total Lost Samples: 0
|
||||||
|
#
|
||||||
|
# Samples: 1K of event 'cpu/cycles/Pu'
|
||||||
|
# Event count (approx.): 8251313686
|
||||||
|
#
|
||||||
|
# Overhead Command Shared Object Symbol
|
||||||
|
# ........ ............... .............................. ......................................................................................................................................................................
|
||||||
|
#
|
||||||
|
10.24% crowd_perf crowd_perf [.] engine::draw_sprite
|
||||||
|
|
|
||||||
|
---engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
5.73% crowd_perf crowd_perf [.] engine::to_clip
|
||||||
|
|
|
||||||
|
---engine::to_clip
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.74% crowd_perf crowd_perf [.] runtime::default_hasher
|
||||||
|
|
|
||||||
|
---runtime::default_hasher
|
||||||
|
runtime::default_hasher_string
|
||||||
|
__$hasher$$string
|
||||||
|
|
|
||||||
|
|--2.10%--engine::character_clip
|
||||||
|
| engine::update_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fec32c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.64%--engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.48% crowd_perf crowd_perf [.] engine::sprite_feet_quad
|
||||||
|
|
|
||||||
|
---engine::sprite_feet_quad
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.16% crowd_perf libc.so.6 [.] pthread_mutex_lock
|
||||||
|
|
|
||||||
|
---pthread_mutex_lock
|
||||||
|
|
|
||||||
|
--0.60%--wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
|
||||||
|
2.09% crowd_perf crowd_perf [.] __$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
---__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
|--1.49%--engine::character_clip
|
||||||
|
| engine::update_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fec32c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.60%--engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.04% crowd_perf crowd_perf [.] engine::update_sprite
|
||||||
|
|
|
||||||
|
---engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.91% crowd_perf crowd_perf [.] runtime::memory_equal
|
||||||
|
|
|
||||||
|
---runtime::memory_equal
|
||||||
|
runtime::string_eq
|
||||||
|
__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
|--1.32%--engine::character_frame
|
||||||
|
| engine::draw_sprite
|
||||||
|
| main::main
|
||||||
|
| main
|
||||||
|
| 0x7fec32c27740
|
||||||
|
| __libc_start_main
|
||||||
|
| _start
|
||||||
|
|
|
||||||
|
--0.58%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.90% crowd_perf crowd_perf [.] engine::character_clip
|
||||||
|
|
|
||||||
|
---engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.85% crowd_perf crowd_perf [.] engine::world_to_screen
|
||||||
|
|
|
||||||
|
---engine::world_to_screen
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.41% crowd_perf crowd_perf [.] runtime::_append_elem
|
||||||
|
|
|
||||||
|
---runtime::_append_elem
|
||||||
|
runtime::append_elem:proc(array:^[dynamic]engine::Queued_Sprite,arg:engine::Queued_Sprite,loc:runtime::Source_Code_Location)->(n:int,err:runtime::Allocator_Error)
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.37% crowd_perf crowd_perf [.] engine::end_frame
|
||||||
|
|
|
||||||
|
---engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.15% crowd_perf libc.so.6 [.] clock_gettime
|
||||||
|
|
|
||||||
|
---clock_gettime
|
||||||
|
|
||||||
|
1.05% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_atomic_dec
|
||||||
|
|
|
||||||
|
---_dbus_atomic_dec
|
||||||
|
|
|
||||||
|
--0.95%--_dbus_connection_unref_unlocked
|
||||||
|
0x7fec32e8fbae
|
||||||
|
0x7fec32e8fdad
|
||||||
|
0x7fec32e94b31
|
||||||
|
0x7fec33054fca
|
||||||
|
0x7fec33055bbd
|
||||||
|
engine::events
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.95% crowd_perf crowd_perf [.] main::main
|
||||||
|
|
|
||||||
|
---main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.91% crowd_perf crowd_perf [.] runtime::append_elem:proc(array:^[dynamic]engine::Queued_Sprite,arg:engine::Queued_Sprite,loc:runtime::Source_Code_Location)->(n:int,err:runtime::Allocator_Error)
|
||||||
|
|
|
||||||
|
---runtime::append_elem:proc(array:^[dynamic]engine::Queued_Sprite,arg:engine::Queued_Sprite,loc:runtime::Source_Code_Location)->(n:int,err:runtime::Allocator_Error)
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.91% crowd_perf libc.so.6 [.] 0x000000000018a4c4
|
||||||
|
|
|
||||||
|
---0x7fec32d8a4c4
|
||||||
|
|
|
||||||
|
--0.82%--engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.86% crowd_perf crowd_perf [.] runtime::string_eq
|
||||||
|
|
|
||||||
|
---runtime::string_eq
|
||||||
|
__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
--0.60%--engine::character_clip
|
||||||
|
engine::update_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.84% crowd_perf crowd_perf [.] engine::character_frame
|
||||||
|
|
|
||||||
|
---engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.81% crowd_perf libwayland-client.so.0.25.0 [.] wl_proxy_marshal_array_flags
|
||||||
|
|
|
||||||
|
---wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
|
||||||
|
0.77% crowd_perf libc.so.6 [.] 0x00000000000a7159
|
||||||
|
|
|
||||||
|
---0x7fec32ca7159
|
||||||
|
|
|
||||||
|
--0.61%--0x7fec12d80142
|
||||||
|
0x7fec12d82613
|
||||||
|
0x7fec12d3cff4
|
||||||
|
0x7fec12ddcaf6
|
||||||
|
0x7fec12ddccd4
|
||||||
|
0x7fec12de6f2c
|
||||||
|
0x7fec3324fec1
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.74% wl_cursor_surfa libc.so.6 [.] 0x0000000000093fff
|
||||||
|
0.73% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000143ffe
|
||||||
|
|
|
||||||
|
---0x7fec33143ffe
|
||||||
|
0x7fec3314a028
|
||||||
|
0x7fec33141b9a
|
||||||
|
|
||||||
|
0.73% crowd_perf crowd_perf [.] runtime::bounds_check_error
|
||||||
|
|
|
||||||
|
---runtime::bounds_check_error
|
||||||
|
|
|
||||||
|
--0.53%--engine::character_frame
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.71% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41b7
|
||||||
|
|
|
||||||
|
---0x7fec12df41b7
|
||||||
|
0x7fec12df44e5
|
||||||
|
|
|
||||||
|
--0.59%--0x7fec12c2baf6
|
||||||
|
0x7fec12c2da03
|
||||||
|
0x7fec12c2e4ca
|
||||||
|
0x7fec12c2f277
|
||||||
|
0x7fec12de052c
|
||||||
|
0x7fec12de1521
|
||||||
|
0x7fec33247581
|
||||||
|
0x7fec33064bab
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
|
||||||
|
0.70% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023af6a
|
||||||
|
|
|
||||||
|
---0x7fec3323af6a
|
||||||
|
|
|
||||||
|
--0.58%--0x7fec33249f38
|
||||||
|
engine::end_frame
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.69% crowd_perf crowd_perf [.] engine::frame_uvs
|
||||||
|
|
|
||||||
|
---engine::frame_uvs
|
||||||
|
engine::draw_sprite
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7fec32c27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.68% crowd_perf libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
|
|
||||||
|
---0x7fec32c9ca5c
|
||||||
|
|
||||||
|
0.67% crowd_perf [vdso] [.] __vdso_clock_gettime
|
||||||
|
|
|
||||||
|
---__vdso_clock_gettime
|
||||||
|
clock_gettime
|
||||||
|
|
||||||
|
0.58% crowd_perf libdrm.so.2.134.0 [.] drmIoctl
|
||||||
|
0.58% crowd_perf libvulkan_radeon.so [.] 0x000000000033b80b
|
||||||
|
|
|
||||||
|
---0x7fec12f3b80b
|
||||||
|
0x7fec12df41ce
|
||||||
|
0x7fec12df44e5
|
||||||
|
|
||||||
|
0.53% crowd_perf libc.so.6 [.] cfree
|
||||||
|
|
|
||||||
|
---cfree
|
||||||
|
|
||||||
|
0.51% crowd_perf [unknown] [k] 0xffffffff84e00080
|
||||||
|
|
|
||||||
|
---0xffffffff84e00080
|
||||||
|
|
||||||
|
0.45% crowd_perf libc.so.6 [.] pthread_mutex_unlock
|
||||||
|
0.44% crowd_perf libc.so.6 [.] pthread_rwlock_rdlock
|
||||||
|
0.43% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2c23
|
||||||
|
0.40% crowd_perf libc.so.6 [.] 0x0000000000180625
|
||||||
|
0.39% crowd_perf libc.so.6 [.] 0x000000000018a547
|
||||||
|
0.37% crowd_perf crowd_perf [.] runtime::default_hasher_string
|
||||||
|
0.36% crowd_perf libc.so.6 [.] 0x000000000018a4c0
|
||||||
|
0.35% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000247484
|
||||||
|
0.33% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003147
|
||||||
|
0.33% crowd_perf libc.so.6 [.] 0x0000000000189cc4
|
||||||
|
0.33% crowd_perf [unknown] [k] 0xffffffff84e00084
|
||||||
|
0.31% wl_cursor_surfa libc.so.6 [.] 0x00000000000a44b7
|
||||||
|
0.31% crowd_perf libvulkan_radeon.so [.] 0x0000000000110d98
|
||||||
|
0.31% wl_cursor_surfa libc.so.6 [.] 0x000000000018a4f3
|
||||||
|
0.30% crowd_perf libc.so.6 [.] 0x000000000018a4e2
|
||||||
|
0.30% crowd_perf libvulkan_radeon.so [.] 0x00000000000e6624
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x000000000033b84d
|
||||||
|
0.28% crowd_perf libc.so.6 [.] 0x00000000000a4524
|
||||||
|
0.28% crowd_perf libc.so.6 [.] malloc
|
||||||
|
0.27% crowd_perf crowd_perf [.] runtime::map_seed_from_map_data
|
||||||
|
0.27% crowd_perf libvulkan_radeon.so [.] 0x00000000001822f7
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x000000000033c9d7
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x00000000000be362
|
||||||
|
0.26% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024cff0
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd8a8
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x000000000018d44f
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x00000000001d131e
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x0000000000116255
|
||||||
|
0.25% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_atomic_inc
|
||||||
|
0.25% crowd_perf crowd_perf [.] __$hasher$$string
|
||||||
|
0.25% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000062360
|
||||||
|
0.25% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjTimelineWait
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x0000000000022daa
|
||||||
|
0.24% crowd_perf libc.so.6 [.] 0x000000000018a486
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x00000000000b7b5f
|
||||||
|
0.24% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_message_loader_queue_messages
|
||||||
|
0.24% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000168f4
|
||||||
|
0.24% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000144008
|
||||||
|
0.24% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024cd09
|
||||||
|
0.23% crowd_perf libc.so.6 [.] 0x00000000000a45c9
|
||||||
|
0.23% crowd_perf crowd_perf [.] engine::texture_run_len
|
||||||
|
0.23% crowd_perf [unknown] [k] 0xffffffff86355a81
|
||||||
|
0.23% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023af07
|
||||||
|
0.23% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d030
|
||||||
|
0.23% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003140
|
||||||
|
0.23% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000166c5
|
||||||
|
0.22% crowd_perf libc.so.6 [.] pthread_rwlock_unlock
|
||||||
|
0.22% crowd_perf libc.so.6 [.] 0x000000000018a4ea
|
||||||
|
0.22% crowd_perf libc.so.6 [.] 0x000000000018a4ca
|
||||||
|
0.22% crowd_perf libc.so.6 [.] 0x000000000009ca36
|
||||||
|
0.22% crowd_perf crowd_perf [.] engine::begin_frame
|
||||||
|
0.22% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002501f2
|
||||||
|
0.22% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000032b2
|
||||||
|
0.22% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf9cf
|
||||||
|
0.22% crowd_perf libc.so.6 [.] 0x00000000000a58f9
|
||||||
|
0.22% crowd_perf libvulkan_radeon.so [.] 0x00000000001e47ac
|
||||||
|
0.21% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003263
|
||||||
|
0.21% crowd_perf libvulkan_radeon.so [.] 0x00000000001e61b8
|
||||||
|
0.21% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000049dc
|
||||||
|
0.21% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001cd7b4
|
||||||
|
0.21% crowd_perf [unknown] [k] 0xffffffff85a7a084
|
||||||
|
0.20% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2761
|
||||||
|
0.19% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003203
|
||||||
|
0.19% crowd_perf libvulkan_radeon.so [.] 0x000000000002295c
|
||||||
|
0.19% crowd_perf libc.so.6 [.] 0x0000000000190598
|
||||||
|
0.18% crowd_perf libvulkan_radeon.so [.] 0x00000000000d33ea
|
||||||
|
0.17% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000541ae
|
||||||
|
0.17% crowd_perf [unknown] [k] 0xffffffff855d7847
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x000000000037a095
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5b8f
|
||||||
|
0.17% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000016a5d
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x000000000002ca02
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x0000000000181459
|
||||||
|
0.16% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_flush
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebd77
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x00000000001e35cb
|
||||||
|
0.16% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000031bdf
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x00000000000bbf75
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4a6a
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4d24
|
||||||
|
0.15% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000016610
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000ed46e
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x000000000018d496
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000b8dea
|
||||||
|
0.15% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024fd04
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000249f10
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000ba831
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000018a55c
|
||||||
|
0.14% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003165
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000035f660
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000115185
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000018584
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000009ffc4
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000657d0
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000028528
|
||||||
|
0.14% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000004cb4
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000021b325
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000013c5ff
|
||||||
|
0.14% wl_cursor_surfa libc.so.6 [.] 0x00000000000a7586
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000016675
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000035f6d0
|
||||||
|
0.14% crowd_perf [unknown] [k] 0xffffffff855e8fd6
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x00000000000a44b7
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000018aae8
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000022b11
|
||||||
|
0.14% crowd_perf libdbus-1.so.3.38.3 [.] dbus_connection_ref
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001d9f6f
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001814d7
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000035f634
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000181ee4
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000033cb4a
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000cb17f
|
||||||
|
0.13% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_read_events
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000018c7aa
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000033b7e1
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c9cb4
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5e16
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000017dbbb
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000f7a33
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000017ea01
|
||||||
|
0.13% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd46c
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000ccf75
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000002c934
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000185a9
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003193
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000115378
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000062cee
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000039f1
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5525
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000001dbca4
|
||||||
|
0.13% wl_cursor_surfa libc.so.6 [.] 0x0000000000094084
|
||||||
|
0.13% wl_cursor_surfa libc.so.6 [.] 0x00000000000a66c4
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001c8cfd
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5b0f
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000116284
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000320b
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000017d7c4
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023af40
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000002cd72
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd651
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000217945
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024e846
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000017ff51
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000186261
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002440cf
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebdf7
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3ff0
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cb17b
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001deb23
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2e1b
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001f44d1
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001161e8
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000d88e7
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001168fc
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cea95
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4771
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000336cae
|
||||||
|
0.12% crowd_perf [unknown] [k] 0xffffffff84e00087
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd7c4
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000b8712
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000010da71
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001dca18
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x00000000000a6ed3
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000bf533
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000ceb86
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001166e5
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000068cca2
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000116312
|
||||||
|
0.12% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_list_pop_first_link
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000180ab2
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000002336f
|
||||||
|
0.12% crowd_perf crowd_perf [.] engine::now_seconds
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024fc98
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3ff4
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000116118
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000181449
|
||||||
|
0.12% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjWait
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000b707d
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000011621a
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023c102
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002469b4
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001d8d26
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000bdcf2
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4c57
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000c2897
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023be6f
|
||||||
|
0.12% crowd_perf [unknown] [k] 0xffffffff84e015f4
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000025442a
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x00000000000a6403
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3010
|
||||||
|
0.12% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f78
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e61f1
|
||||||
|
0.12% crowd_perf [unknown] [k] 0xffffffff85a7a016
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000018d4e4
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000f4af3
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001153f9
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cb4b9
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000283b6
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2d0b
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e6d70
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000115a48
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d110
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000017ff7a
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x00000000000a5735
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000011416b
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023aefa
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd413
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000068cc64
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000022d88
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000025478f
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000545e3
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000018c87b
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x000000000005bcfd
|
||||||
|
0.11% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000032a4
|
||||||
|
0.11% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000001aa7b
|
||||||
|
0.11% wl_cursor_surfa libc.so.6 [.] 0x00000000000a674c
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000d6749
|
||||||
|
0.11% crowd_perf libffi.so.8.4.1 [.] 0x0000000000002bf4
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000054e93
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000018567
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000189a35
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000182313
|
||||||
|
0.11% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000003219d
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] SDL_UnmapGPUTransferBuffer
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000176c2
|
||||||
|
0.11% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000003689
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000022a03
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000002f38d
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2686
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000244358
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000ce843
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41d6
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000217e57
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000cca9b
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000022d261
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebc8d
|
||||||
|
0.11% crowd_perf libc.so.6 [.] pthread_getspecific
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x00000000000a4520
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000c0133
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000176d1
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002475f1
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000035f6c7
|
||||||
|
0.11% wl_cursor_surfa libc.so.6 [.] 0x00000000000a661d
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000246fbc
|
||||||
|
0.11% wl_cursor_surfa libc.so.6 [.] pthread_mutex_lock
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000c4a78
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000d227c
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf034
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000016e32
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000b91fb
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001e6228
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x0000000000189c5a
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000b7a68
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2b1b
|
||||||
|
0.11% crowd_perf libc.so.6 [.] __libc_calloc
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5ba8
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x0000000000189c6e
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000033c9cd
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000bc661
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x0000000000022a90
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2ed4
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000cfbdd
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000001158db
|
||||||
|
0.10% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000315e
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5b36
|
||||||
|
0.10% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000326e
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000013c87e
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000062c29
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024e2b6
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023be24
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x0000000000197523
|
||||||
|
0.10% crowd_perf libwayland-client.so.0.25.0 [.] wl_display_prepare_read_queue
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x00000000000a57e4
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002441e6
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd71c
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000018c8b9
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000001cfb14
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000067a27
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000022ddf5
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000254752
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x000000000009ca4f
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x0000000000189e7f
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2d44
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x0000000000183444
|
||||||
|
0.10% crowd_perf libc.so.6 [.] ioctl
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000001662f
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000d3c1f
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000ed479
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4e14
|
||||||
|
0.10% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f76
|
||||||
|
0.10% crowd_perf libwayland-client.so.0.25.0 [.] wl_list_empty
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000d6c8b
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x0000000000193681
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd4e5
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000018d452
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x0000000000028474
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000bc657
|
||||||
|
0.10% crowd_perf libdbus-1.so.3.38.3 [.] dbus_connection_get_dispatch_status
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000068fe91
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000017e9d8
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000fa720
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000013d041
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000033b851
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000001e3616
|
||||||
|
0.09% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024f5a2
|
||||||
|
0.09% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000025445f
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x00000000000cb359
|
||||||
|
0.09% crowd_perf libc.so.6 [.] strchrnul@plt
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x00000000000d3493
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x0000000000022b67
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x0000000000116982
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x000000000035f664
|
||||||
|
0.09% crowd_perf libc.so.6 [.] 0x0000000000189c47
|
||||||
|
0.08% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000031c3
|
||||||
|
0.08% crowd_perf libc.so.6 [.] 0x00000000000a66c4
|
||||||
|
0.08% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebd95
|
||||||
|
0.08% crowd_perf libc.so.6 [.] 0x00000000000a5750
|
||||||
|
0.08% crowd_perf libvulkan_radeon.so [.] 0x00000000000ce980
|
||||||
|
0.08% crowd_perf libvulkan_radeon.so [.] 0x0000000000115f93
|
||||||
|
0.08% crowd_perf libvulkan_radeon.so [.] 0x000000000018d5e9
|
||||||
|
0.08% wl_cursor_surfa libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
0.07% crowd_perf libvulkan_radeon.so [.] 0x000000000018aaf9
|
||||||
|
0.07% crowd_perf libvulkan_radeon.so [.] 0x00000000000c4a6a
|
||||||
|
0.07% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001cd7b1
|
||||||
|
0.07% crowd_perf libvulkan_radeon.so [.] 0x00000000001e4e3e
|
||||||
|
0.06% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_list_insert
|
||||||
|
0.06% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6ed3
|
||||||
|
0.03% crowd_perf libxkbcommon.so.0.13.2 [.] 0x00000000000084b7
|
||||||
|
0.03% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6f67
|
||||||
|
0.02% crowd_perf libc.so.6 [.] 0x0000000000189d47
|
||||||
|
0.02% crowd_perf libvulkan_radeon.so [.] 0x00000000001e5074
|
||||||
|
0.02% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000ac3a
|
||||||
|
0.01% crowd_perf libvulkan_radeon.so [.] 0x0000000000182d8f
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __cxa_finalize
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] pthread_cond_broadcast
|
||||||
|
0.00% wl_cursor_surfa [unknown] [k] 0xffffffff84e00080
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a7681
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x00000000000036ef
|
||||||
|
0.00% crowd_p:disk$0 libc.so.6 [.] pthread_cond_wait
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000003621
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000534eb
|
||||||
|
0.00% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000037c44
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x000000000009ca21
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] ppoll
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000002d5ba
|
||||||
|
0.00% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000670f4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000037a011
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000189cf7
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000015951
|
||||||
|
0.00% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024e620
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2f92
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a4463
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000001e56c
|
||||||
|
0.00% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000001004a
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x00000000000031c3
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000014887
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000005b734
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000005bd50
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001e3e38
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000064b99
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000005a244
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345b18
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __ctype_init
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff86355a14
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff86355a10
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ce7
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345adb
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x0000000000654f48
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f74
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __errno_location
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000000ca8f2
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x0000000001961f52
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345837
|
||||||
|
0.00% crowd_perf libc.so.6 [.] pthread_self
|
||||||
|
0.00% wl_cursor_surfa [unknown] [k] 0xffffffff852a9115
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a63
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000018d575
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345cfe
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000097417
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000009741b
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001166ae
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e015f0
|
||||||
|
0.00% crowd_perf libwayland-client.so.0.25.0 [.] wl_display_dispatch_queue_timeout
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000185400
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000008b5e
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000022edc
|
||||||
|
0.00% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000018892
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000028ed39
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libc.so.6 [.] sendmsg
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e01280
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddb
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345bb3
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddd
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed0
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344cd4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ad6
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000973a0
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a40
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __poll
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000973a4
|
||||||
|
0.00% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000032197
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e01630
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000932e
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x0000000000009339
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001f103
|
||||||
|
0.00% crowd_perf libc.so.6 [.] ppoll
|
||||||
|
0.00% crowd_perf libc.so.6 [.] realloc
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094084
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a78dc
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x00000000009e786b
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x0000000000455dd3
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x000000000067d1b0
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x000000000067d1c2
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x0000000001956940
|
||||||
|
0.00% crowd_perf libnvidia-gpucomp.so.610.43.03 [.] 0x000000000195a141
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000022e9e
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000022ea7
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000022ebd
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000000bafc5
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000000ca918
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000000ca91f
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000011666f
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001166a8
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2dbf
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2dd0
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000028ece4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000028ed0d
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345bb0
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000068d01a
|
||||||
|
0.00% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003aa8
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e01670
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e01690
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094050
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094085
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x000000000009fff2
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000004524
|
||||||
|
0.00% wl_cursor_surfa [unknown] [k] 0xffffffff84e01630
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# (Tip: For tracepoint events, try: perf report -s trace_fields)
|
||||||
|
#
|
||||||
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 82 KiB |
@@ -0,0 +1,730 @@
|
|||||||
|
# To display the perf.data header info, please use --header/--header-only options.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Total Lost Samples: 0
|
||||||
|
#
|
||||||
|
# Samples: 953 of event 'cpu/cycles/Pu'
|
||||||
|
# Event count (approx.): 5763089468
|
||||||
|
#
|
||||||
|
# Overhead Command Shared Object Symbol
|
||||||
|
# ........ ............... ............................. ..........................................................................................................................................................................................
|
||||||
|
#
|
||||||
|
4.03% crowd_perf libc.so.6 [.] pthread_mutex_lock
|
||||||
|
|
|
||||||
|
---pthread_mutex_lock
|
||||||
|
|
|
||||||
|
--0.65%--0x7f80850501f1
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
3.19% crowd_perf crowd_perf [.] main::main
|
||||||
|
|
|
||||||
|
--0.79%--runtime::default_hasher (inlined)
|
||||||
|
runtime::default_hasher_string (inlined)
|
||||||
|
|
|
||||||
|
--0.54%--engine::character_clip (inlined)
|
||||||
|
engine::update_sprite (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.85% crowd_perf libc.so.6 [.] 0x00000000000a73e9
|
||||||
|
|
|
||||||
|
---0x7f8084aa73e9
|
||||||
|
wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
0x7f8082b97614
|
||||||
|
0x7f8082b8a4f8
|
||||||
|
0x7f808504ffc9
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.20% crowd_perf crowd_perf [.] __$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
---__$map_get$$map[string]engine::Clip_Def
|
||||||
|
|
|
||||||
|
--1.91%--engine::character_clip (inlined)
|
||||||
|
engine::update_sprite (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
2.07% crowd_perf libc.so.6 [.] 0x0000000000189c53
|
||||||
|
|
|
||||||
|
---0x7f8084b89c53
|
||||||
|
runtime::_append_elem
|
||||||
|
runtime::append_elem:proc(array:^[dynamic]engine::Queued_Sprite,arg:engine::Queued_Sprite,loc:runtime::Source_Code_Location)->(n:int,err:runtime::Allocator_Error) (inlined)
|
||||||
|
engine::draw_sprite (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.83% crowd_perf libc.so.6 [.] clock_gettime
|
||||||
|
|
|
||||||
|
---clock_gettime
|
||||||
|
|
|
||||||
|
|--0.53%--0x7f808502c819
|
||||||
|
|
|
||||||
|
--0.52%--0x7f8082d7a09a
|
||||||
|
0x7f8082d3de27
|
||||||
|
|
|
||||||
|
--0.52%--0x7f8082b975b5
|
||||||
|
0x7f8082b8a4f8
|
||||||
|
0x7f808504ffc9
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.58% crowd_perf libwayland-client.so.0.25.0 [.] wl_proxy_marshal_array_flags
|
||||||
|
|
|
||||||
|
---wl_proxy_marshal_array_flags
|
||||||
|
wl_proxy_marshal_flags
|
||||||
|
|
||||||
|
1.55% crowd_perf libvulkan_radeon.so [.] 0x000000000031fb52
|
||||||
|
|
|
||||||
|
---0x7f8082d1fb52
|
||||||
|
0x7f8082a2cc72
|
||||||
|
0x7f8082a2cf4e
|
||||||
|
0x7f8082a2e299
|
||||||
|
0x7f8082a2f277
|
||||||
|
0x7f8082be052c
|
||||||
|
0x7f8082be1521
|
||||||
|
0x7f8085047581
|
||||||
|
0x7f8084e64bab
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.34% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_list_insert
|
||||||
|
1.30% wl_cursor_surfa libc.so.6 [.] 0x00000000000a678f
|
||||||
|
1.18% crowd_perf [unknown] [k] 0xffffffff84e00080
|
||||||
|
|
|
||||||
|
---0xffffffff84e00080
|
||||||
|
|
|
||||||
|
--0.94%--ioctl
|
||||||
|
|
|
||||||
|
--0.80%--drmIoctl
|
||||||
|
|
||||||
|
1.07% crowd_perf libc.so.6 [.] ioctl
|
||||||
|
|
|
||||||
|
---ioctl
|
||||||
|
|
|
||||||
|
--1.07%--drmIoctl
|
||||||
|
|
|
||||||
|
--0.61%--drmSyncobjTimelineWait
|
||||||
|
|
|
||||||
|
--0.50%--0x7f8082b8d8ad
|
||||||
|
0x7f8082b93f45
|
||||||
|
0x7f8082b89296
|
||||||
|
0x7f8082b89241
|
||||||
|
0x7f80850544bd
|
||||||
|
0x7f8084e69860
|
||||||
|
engine::begin_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
1.05% crowd_perf [vdso] [.] __vdso_clock_gettime
|
||||||
|
|
|
||||||
|
---__vdso_clock_gettime
|
||||||
|
clock_gettime
|
||||||
|
|
|
||||||
|
--0.50%--0x7f8082d7a09a
|
||||||
|
|
||||||
|
0.93% crowd_perf [unknown] [k] 0xffffffff86355a81
|
||||||
|
|
|
||||||
|
---0xffffffff86355a81
|
||||||
|
0xffffffff84e0012f
|
||||||
|
|
|
||||||
|
--0.81%--ioctl
|
||||||
|
|
|
||||||
|
--0.69%--drmIoctl
|
||||||
|
|
||||||
|
0.92% crowd_perf libdrm.so.2.134.0 [.] drmIoctl
|
||||||
|
|
|
||||||
|
---drmIoctl
|
||||||
|
|
||||||
|
0.85% crowd_perf libc.so.6 [.] cfree
|
||||||
|
|
|
||||||
|
---cfree
|
||||||
|
|
||||||
|
0.81% crowd_perf libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
|
|
||||||
|
---0x7f8084a9ca5c
|
||||||
|
|
||||||
|
0.78% crowd_perf libc.so.6 [.] 0x00000000000a6ed3
|
||||||
|
|
|
||||||
|
---0x7f8084aa6ed3
|
||||||
|
|
|
||||||
|
--0.55%--0x7f8084aa714d
|
||||||
|
|
||||||
|
0.70% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002501f2
|
||||||
|
|
|
||||||
|
---0x7f80850501f2
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.65% crowd_perf libvulkan_radeon.so [.] 0x0000000000022d88
|
||||||
|
|
|
||||||
|
---0x7f8082a22d88
|
||||||
|
|
||||||
|
0.62% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41b7
|
||||||
|
|
|
||||||
|
---0x7f8082bf41b7
|
||||||
|
0x7f8082bf44e5
|
||||||
|
|
||||||
|
0.61% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2c23
|
||||||
|
|
|
||||||
|
---0x7f8082ad2c23
|
||||||
|
0x7f8082be6325
|
||||||
|
|
||||||
|
0.60% crowd_perf libc.so.6 [.] 0x000000000018a547
|
||||||
|
|
|
||||||
|
---0x7f8084b8a547
|
||||||
|
|
||||||
|
0.56% crowd_perf libc.so.6 [.] malloc
|
||||||
|
|
|
||||||
|
---malloc
|
||||||
|
|
||||||
|
0.55% crowd_perf libvulkan_radeon.so [.] 0x00000000000e6624
|
||||||
|
|
|
||||||
|
---0x7f8082ae6624
|
||||||
|
0x7f8082be6325
|
||||||
|
|
||||||
|
0.53% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002475f1
|
||||||
|
|
|
||||||
|
---0x7f80850475f1
|
||||||
|
0x7f8084e64bab
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.53% crowd_perf libvulkan_radeon.so [.] 0x00000000001e61b8
|
||||||
|
|
|
||||||
|
---0x7f8082be61b8
|
||||||
|
0x7f808503b9d8
|
||||||
|
0x7f8085049f22
|
||||||
|
engine::end_frame (inlined)
|
||||||
|
main::main
|
||||||
|
main
|
||||||
|
0x7f8084a27740
|
||||||
|
__libc_start_main
|
||||||
|
_start
|
||||||
|
|
||||||
|
0.51% crowd_perf [unknown] [k] 0xffffffff855d7847
|
||||||
|
|
|
||||||
|
---0xffffffff855d7847
|
||||||
|
0xffffffff86355aba
|
||||||
|
0xffffffff84e0012f
|
||||||
|
ioctl
|
||||||
|
drmIoctl
|
||||||
|
|
||||||
|
0.50% crowd_perf libvulkan_radeon.so [.] 0x000000000033b80b
|
||||||
|
|
|
||||||
|
---0x7f8082d3b80b
|
||||||
|
0x7f8082bf41ce
|
||||||
|
|
||||||
|
0.50% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023af6a
|
||||||
|
0.48% crowd_perf libvulkan_radeon.so [.] 0x00000000001deb23
|
||||||
|
0.48% crowd_perf libc.so.6 [.] pthread_rwlock_unlock
|
||||||
|
0.48% crowd_perf libvulkan_radeon.so [.] 0x000000000033c9d7
|
||||||
|
0.47% crowd_perf libvulkan_radeon.so [.] 0x000000000002ca18
|
||||||
|
0.46% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_flush
|
||||||
|
0.46% crowd_perf libvulkan_radeon.so [.] 0x00000000000b92b8
|
||||||
|
0.45% crowd_perf libvulkan_radeon.so [.] 0x00000000001822f7
|
||||||
|
0.44% crowd_perf libc.so.6 [.] pthread_rwlock_wrlock
|
||||||
|
0.41% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003203
|
||||||
|
0.41% crowd_perf libc.so.6 [.] __errno_location
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x0000000000180ab2
|
||||||
|
0.40% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d183
|
||||||
|
0.40% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2761
|
||||||
|
0.39% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000016900
|
||||||
|
0.39% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000243e0a
|
||||||
|
0.39% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6747
|
||||||
|
0.36% crowd_perf libvulkan_radeon.so [.] 0x000000000018d492
|
||||||
|
0.35% crowd_perf libvulkan_radeon.so [.] 0x00000000001814c2
|
||||||
|
0.35% crowd_perf libvulkan_radeon.so [.] 0x00000000000b8fdd
|
||||||
|
0.35% crowd_perf libvulkan_radeon.so [.] 0x00000000000e5edc
|
||||||
|
0.33% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f74
|
||||||
|
0.33% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001493ed
|
||||||
|
0.32% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000005430
|
||||||
|
0.32% crowd_perf libc.so.6 [.] 0x00000000000a7554
|
||||||
|
0.29% crowd_perf libvulkan_radeon.so [.] 0x00000000001e0534
|
||||||
|
0.29% crowd_perf libwayland-client.so.0.25.0 [.] wl_proxy_marshal_flags
|
||||||
|
0.29% crowd_perf libvulkan_radeon.so [.] 0x0000000000110d3b
|
||||||
|
0.29% crowd_perf libvulkan_radeon.so [.] 0x00000000001defd2
|
||||||
|
0.29% wl_cursor_surfa libc.so.6 [.] 0x000000000018a507
|
||||||
|
0.29% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003147
|
||||||
|
0.29% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000032a4
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x000000000018d44f
|
||||||
|
0.28% crowd_perf libvulkan_radeon.so [.] 0x000000000018d866
|
||||||
|
0.28% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000168f4
|
||||||
|
0.27% wl_cursor_surfa libc.so.6 [.] ppoll
|
||||||
|
0.27% crowd_perf libvulkan_radeon.so [.] 0x00000000000d227c
|
||||||
|
0.27% crowd_perf crowd_perf [.] runtime::_append_elem
|
||||||
|
0.27% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003943
|
||||||
|
0.27% crowd_perf libvulkan_radeon.so [.] 0x00000000000b91fd
|
||||||
|
0.26% crowd_perf libc.so.6 [.] pthread_mutex_unlock
|
||||||
|
0.26% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41d6
|
||||||
|
0.26% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002441e6
|
||||||
|
0.26% crowd_perf libc.so.6 [.] 0x00000000000a6ed7
|
||||||
|
0.26% crowd_perf libc.so.6 [.] 0x00000000000a590c
|
||||||
|
0.26% crowd_perf [unknown] [k] 0xffffffff84e00084
|
||||||
|
0.26% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_read_events
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x000000000033cb4a
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2f9e
|
||||||
|
0.25% crowd_perf libc.so.6 [.] 0x0000000000180604
|
||||||
|
0.25% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000016904
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x0000000000181449
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x00000000000fabbd
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x0000000000022daa
|
||||||
|
0.25% crowd_perf libvulkan_radeon.so [.] 0x00000000000b69b6
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x00000000000ba831
|
||||||
|
0.24% wl_cursor_surfa libc.so.6 [.] pthread_mutex_lock
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x000000000068ccac
|
||||||
|
0.24% crowd_perf libc.so.6 [.] 0x00000000000a7101
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x00000000001152d6
|
||||||
|
0.24% crowd_perf libvulkan_radeon.so [.] 0x00000000000bdd3d
|
||||||
|
0.24% crowd_perf libc.so.6 [.] 0x000000000018a54e
|
||||||
|
0.24% crowd_perf [unknown] [k] 0xffffffff85a7a016
|
||||||
|
0.24% wl_cursor_surfa libc.so.6 [.] recvmsg
|
||||||
|
0.23% crowd_perf libvulkan_radeon.so [.] 0x000000000035f607
|
||||||
|
0.23% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3ff4
|
||||||
|
0.23% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjWait
|
||||||
|
0.23% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000320b
|
||||||
|
0.22% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023434e
|
||||||
|
0.22% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024ff8e
|
||||||
|
0.22% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002504d8
|
||||||
|
0.21% wl_cursor_surfa libc.so.6 [.] 0x0000000000093fe4
|
||||||
|
0.21% crowd_perf libvulkan_radeon.so [.] 0x00000000001f4165
|
||||||
|
0.20% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000018896
|
||||||
|
0.20% crowd_perf libc.so.6 [.] 0x0000000000183444
|
||||||
|
0.19% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd91c
|
||||||
|
0.19% crowd_perf libvulkan_radeon.so [.] 0x00000000000e6243
|
||||||
|
0.19% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd030
|
||||||
|
0.19% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000001663d
|
||||||
|
0.18% crowd_perf libvulkan_radeon.so [.] 0x0000000000115378
|
||||||
|
0.18% crowd_perf libvulkan_radeon.so [.] 0x00000000001da01c
|
||||||
|
0.18% crowd_perf libc.so.6 [.] 0x00000000000a579b
|
||||||
|
0.18% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000004cb4
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebd58
|
||||||
|
0.17% crowd_perf libc.so.6 [.] 0x0000000000180625
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x00000000001df838
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x00000000000cfab0
|
||||||
|
0.17% crowd_perf libc.so.6 [.] 0x00000000000a678f
|
||||||
|
0.17% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf034
|
||||||
|
0.16% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024cec9
|
||||||
|
0.16% crowd_perf [unknown] [k] 0xffffffff86355a14
|
||||||
|
0.16% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023af5d
|
||||||
|
0.16% wl_cursor_surfa libc.so.6 [.] 0x0000000000094085
|
||||||
|
0.16% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_atomic_inc
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x000000000037a25e
|
||||||
|
0.16% crowd_perf libdbus-1.so.3.38.3 [.] dbus_connection_unref
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x0000000000181484
|
||||||
|
0.16% crowd_perf libwayland-client.so.0.25.0 [.] wl_list_remove
|
||||||
|
0.16% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000025445f
|
||||||
|
0.16% crowd_perf libc.so.6 [.] 0x000000000009ca14
|
||||||
|
0.16% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_connection_lock
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x0000000000217ee9
|
||||||
|
0.16% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000254472
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd6f2
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x00000000000f4ad9
|
||||||
|
0.16% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd461
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x000000000018aaf2
|
||||||
|
0.16% crowd_perf libvulkan_radeon.so [.] 0x000000000002caab
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000001e6434
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x000000000002ca15
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5ba8
|
||||||
|
0.15% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003263
|
||||||
|
0.15% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000015f1c3
|
||||||
|
0.15% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000032dc
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3344
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000d7063
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000c4a41
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000ec895
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x0000000000335bd4
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebdc5
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3ff6
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000ebe76
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000ed816
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000001e61f1
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x000000000002d5ef
|
||||||
|
0.15% crowd_perf libc.so.6 [.] 0x000000000018062b
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000d13c3
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x00000000000d8386
|
||||||
|
0.15% wl_cursor_surfa libc.so.6 [.] 0x000000000009ca5c
|
||||||
|
0.15% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000015f1a4
|
||||||
|
0.15% crowd_perf libc.so.6 [.] 0x00000000000a5735
|
||||||
|
0.15% crowd_perf [unknown] [k] 0xffffffff84e00087
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x0000000000022b88
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x0000000000217dba
|
||||||
|
0.15% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001da04c
|
||||||
|
0.15% crowd_perf libvulkan_radeon.so [.] 0x000000000019371b
|
||||||
|
0.15% crowd_perf libc.so.6 [.] 0x0000000000189c44
|
||||||
|
0.14% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000001ab32
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000196829
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000017690
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000018d844
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000bddf1
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000013ca2e
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000054e60
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000194631
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000c9aeb
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000017dbc1
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000197523
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001cf344
|
||||||
|
0.14% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000001aa6d
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024ce11
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000055379
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024bb5e
|
||||||
|
0.14% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000031883
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001d6418
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000018a57d
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x0000000000189c93
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000009ca4f
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000168f0
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000028474
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x00000000000a7477
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000022a86
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000018d4ac
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000035f6c7
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x00000000000a66c4
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000002310fb
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000176c6
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000009ca19
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023b2d1
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000002d8b8
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001d9f47
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000bbf60
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000cea95
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000115ac7
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000115b65
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002470cf
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d18e
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000009ffc0
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000cf4c5
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000244261
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000002d886
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001896c4
|
||||||
|
0.14% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x00000000000049dc
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000c0ac8
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000002ca2a
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000d3493
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000001e62d
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000116118
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000053d7e
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000000c877c
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000018a4f3
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x000000000022d354
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x0000000000022d55
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001e5ebd
|
||||||
|
0.14% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000004c80
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001f41a4
|
||||||
|
0.14% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003140
|
||||||
|
0.14% crowd_perf libvulkan_radeon.so [.] 0x00000000001e60b2
|
||||||
|
0.14% crowd_perf libc.so.6 [.] 0x000000000009ca5a
|
||||||
|
0.14% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023c133
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d1c6
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000033ca1e
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000be09c
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x0000000000189cc4
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000185a0
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000cc0cb
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000b74ff
|
||||||
|
0.13% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_rmutex_lock
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000bc373
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003193
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000d148b
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x0000000000189d47
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023c3e7
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024b818
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000217eac
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000027f8e
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000022aa5
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c9d9f
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000002f38d
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024cf70
|
||||||
|
0.13% crowd_perf [unknown] [k] 0xffffffff855e8f44
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000032b2
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x000000000009ca31
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000005536a
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000013c684
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024fc98
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000ed0ff
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c6ce6
|
||||||
|
0.13% crowd_perf libdbus-1.so.3.38.3 [.] 0x000000000003187f
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000001cfb65
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x0000000000180614
|
||||||
|
0.13% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_list_pop_first_link
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000005485
|
||||||
|
0.13% crowd_perf libc.so.6 [.] __libc_calloc
|
||||||
|
0.13% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000320e
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000001db541
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x000000000009408f
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2f92
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5bde
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000d16a6
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000001398b4
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024f60d
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000018d5e9
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000d793a
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x000000000018a4c4
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000001cf563
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000ccf20
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000002310dc
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000002d7a3
|
||||||
|
0.13% crowd_perf libc.so.6 [.] __close
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x000000000035f634
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000ed45b
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2d0b
|
||||||
|
0.13% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000f7a33
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x00000000000a7491
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000230ea5
|
||||||
|
0.13% crowd_perf libc.so.6 [.] 0x00000000000a57a6
|
||||||
|
0.13% crowd_perf libvulkan_radeon.so [.] 0x0000000000110d5e
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000068d087
|
||||||
|
0.12% crowd_perf libdbus-1.so.3.38.3 [.] 0x0000000000031820
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x000000000009ca17
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d030
|
||||||
|
0.12% wl_cursor_surfa libc.so.6 [.] pthread_mutex_unlock
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024e291
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2ac1
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000018c879
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000022b1c
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001f2c85
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e34fc
|
||||||
|
0.12% crowd_perf libc.so.6 [.] ppoll
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000bcb9e
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000002334f
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000022950
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000d649e
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cfa60
|
||||||
|
0.12% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003912
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001d1145
|
||||||
|
0.12% crowd_perf libdbus-1.so.3.38.3 [.] 0x00000000000318bf
|
||||||
|
0.12% crowd_perf libwayland-client.so.0.25.0 [.] 0x00000000000049dc
|
||||||
|
0.12% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000003689
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x00000000000a6621
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000002d844
|
||||||
|
0.12% crowd_perf [unknown] [k] 0xffffffff86355a41
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000002bc13
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000033cb5b
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000002ce05
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000014f29b
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000025478f
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000018d462
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e6d9f
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x00000000000a6610
|
||||||
|
0.12% crowd_perf [unknown] [k] 0xffffffff850a84c5
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x0000000000180653
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000033ca37
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000249e81
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001dcabc
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000110ce8
|
||||||
|
0.12% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000328a
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024cef0
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd943
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000c2584
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd7c1
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000022f3e
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000018d635
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x000000000009ca74
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cea42
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023b143
|
||||||
|
0.12% wl_cursor_surfa libc.so.6 [.] 0x000000000018a4f3
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd71c
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000d1865
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x000000000018a486
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e519a
|
||||||
|
0.12% crowd_perf libc.so.6 [.] 0x00000000000a66e2
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000019678f
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000001e5134
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000002463df
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000054e93
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x000000000068cf84
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000b6d7d
|
||||||
|
0.12% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000af32
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x00000000000ed081
|
||||||
|
0.12% crowd_perf libvulkan_radeon.so [.] 0x0000000000218046
|
||||||
|
0.12% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000541ae
|
||||||
|
0.12% crowd_perf libdbus-1.so.3.38.3 [.] _dbus_message_loader_queue_messages
|
||||||
|
0.12% crowd_perf libwayland-client.so.0.25.0 [.] 0x000000000000546e
|
||||||
|
0.12% crowd_perf libwayland-client.so.0.25.0 [.] 0x0000000000003233
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000180ada
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000028174
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000657d0
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000ce7ac
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000250239
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000068d014
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023ba94
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000013cae3
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000cd796
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024d1b9
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x000000000018a507
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001f3465
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000018d452
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001e6363
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000021b281
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x00000000000a5904
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001f401a
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000001c8c05
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000d2d97
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000379fe4
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001529e1
|
||||||
|
0.11% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6732
|
||||||
|
0.11% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_prepare_read_queue
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024cddc
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000010da99
|
||||||
|
0.11% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000004961
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001d62b5
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000018d874
|
||||||
|
0.11% wl_cursor_surfa libc.so.6 [.] 0x00000000000a66e2
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000182733
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x0000000000023598
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000054f23
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x00000000000176cf
|
||||||
|
0.11% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000024e2b6
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001f44c0
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x00000000000a6403
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000001d11b3
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000d3c36
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x000000000033df64
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000d3a9c
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x00000000000a6603
|
||||||
|
0.11% crowd_perf libvulkan_radeon.so [.] 0x00000000000283b6
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x00000000000a456a
|
||||||
|
0.11% crowd_perf libc.so.6 [.] 0x0000000000189d0b
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000c5581
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x00000000000a5851
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000ce761
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023bdb8
|
||||||
|
0.10% crowd_perf [unknown] [k] 0xffffffff86355a45
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x000000000023b914
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000022d239
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x0000000000064888
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000bdd81
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x0000000000231160
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x000000000018a4c0
|
||||||
|
0.10% crowd_perf libc.so.6 [.] 0x000000000018a56f
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000022d386
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x00000000000280a5
|
||||||
|
0.10% crowd_perf libvulkan_radeon.so [.] 0x000000000002cd72
|
||||||
|
0.10% crowd_perf libSDL3.so.0.4.12 [.] 0x0000000000069865
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x000000000018a489
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x000000000033b807
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x000000000035f6d4
|
||||||
|
0.09% crowd_perf libvulkan_radeon.so [.] 0x00000000000fa782
|
||||||
|
0.08% crowd_perf libvulkan_radeon.so [.] 0x00000000000bdfc3
|
||||||
|
0.03% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000fea2
|
||||||
|
0.01% crowd_perf libvulkan_radeon.so [.] 0x00000000001d12c7
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a447d
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000004951
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a5701
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] wl_display_dispatch_queue_pending
|
||||||
|
0.00% wl_cursor_surfa libwayland-client.so.0.25.0 [.] 0x0000000000003193
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001dd35f
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000040242
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a7491
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a6ea4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000027f18
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff8632ecd9
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000aed9
|
||||||
|
0.00% crowd_perf libc.so.6 [.] getenv
|
||||||
|
0.00% crowd_perf libGLX_nvidia.so.610.43.03 [.] 0x000000000009e60a
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094006
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x00000000001895fc
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __libc_secure_getenv
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x00000000000a6ea4
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x00000000000147ed
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff850a7e70
|
||||||
|
0.00% crowd_perf libc.so.6 [.] __ctype_init
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000064845
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000009741b
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345adb
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001cd7b4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345cfe
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f76
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000028ed0d
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345b18
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345ad6
|
||||||
|
0.00% crowd_perf libLLVM.so.22.1 [.] std::enable_if<llvm::hashing::detail::is_hashable_data<char const>::value, llvm::hash_code>::type llvm::hashing::detail::hash_combine_range_impl<char const>(char const*, char const*)
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000097417
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a5770
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001cd7b9
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a63
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd46c
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000018d572
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjExportSyncFile
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000deb7
|
||||||
|
0.00% crowd_perf libnvidia-glsi.so.610.43.03 [.] 0x00000000000460e4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000018d7de
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjTransfer
|
||||||
|
0.00% crowd_perf libdrm_amdgpu.so.1.134.0 [.] amdgpu_query_info
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001fce9
|
||||||
|
0.00% wl_cursor_surfa libSDL3.so.0.4.12 [.] 0x00000000001e3f78
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddb
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344cd4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ccb
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000344ddd
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x0000000000345bb3
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e01280
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x000000000011bed0
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000973a0
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094084
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000103a40
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000028ece4
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000028ed4d
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000dedf
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000f60f
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000000f611
|
||||||
|
0.00% crowd_perf ld-linux-x86-64.so.2 [.] 0x000000000001f103
|
||||||
|
0.00% crowd_perf libLLVM.so.22.1 [.] 0x000000000083a104
|
||||||
|
0.00% crowd_perf libLLVM.so.22.1 [.] 0x000000000083a146
|
||||||
|
0.00% crowd_perf libc.so.6 [.] wait4
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094040
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x0000000000094047
|
||||||
|
0.00% crowd_perf libc.so.6 [.] 0x00000000000a58a9
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmCommandWrite
|
||||||
|
0.00% crowd_perf libdrm.so.2.134.0 [.] drmSyncobjTimelineWait
|
||||||
|
0.00% crowd_perf libnvidia-glcore.so.610.43.03 [.] 0x0000000000fcd46a
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000017fa4b
|
||||||
|
0.00% crowd_perf libvulkan_radeon.so [.] 0x000000000017fae8
|
||||||
|
0.00% crowd_perf [unknown] [k] 0xffffffff84e01670
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x0000000000094050
|
||||||
|
0.00% wl_cursor_surfa libc.so.6 [.] 0x000000000009408f
|
||||||
|
0.00% wl_cursor_surfa [unknown] [k] 0xffffffff84e01630
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# (Tip: For hierarchical output, try: perf report --hierarchy)
|
||||||
|
#
|
||||||
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 92 KiB |
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||||
|
cd "$ROOT"
|
||||||
|
|
||||||
|
CONTENT_ROOT="${CONTENT_ROOT:-content/characters}"
|
||||||
|
OUT_ROOT="${OUT_ROOT:-assets_baked/characters}"
|
||||||
|
|
||||||
|
if [[ ! -d "$CONTENT_ROOT" ]]; then
|
||||||
|
echo "missing content root: $CONTENT_ROOT" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
manifests=("$CONTENT_ROOT"/*/manifest.json)
|
||||||
|
if [[ ${#manifests[@]} -eq 0 ]]; then
|
||||||
|
echo "no character manifests under $CONTENT_ROOT" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for manifest in "${manifests[@]}"; do
|
||||||
|
char_dir="$(dirname "$manifest")"
|
||||||
|
name="$(basename "$char_dir")"
|
||||||
|
out_dir="$OUT_ROOT/$name"
|
||||||
|
mkdir -p "$out_dir"
|
||||||
|
echo "baking $name -> $out_dir"
|
||||||
|
odin run assetbake -- "$char_dir" "$out_dir"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "baked ${#manifests[@]} character(s)"
|
||||||