From 7f6b2f530c5ab71dd37e2a90a82d999d541f285b Mon Sep 17 00:00:00 2001 From: Emil Kosz Date: Sun, 8 Jun 2025 08:15:00 +0200 Subject: [PATCH] Basic Unicode support, fix more Chunk bugs, add asserts --- game/massif.out.117125 | 2020 +++++++++++++++++++++++++++++++ game/res/shaders/uielement.frag | 2 +- game/res/shaders/uitext.vert | 2 +- game/res/textures/font.png | Bin 1851 -> 3284 bytes game/res/textures/font.xcf | Bin 36670 -> 68013 bytes game/src/chunk/chunkman.c | 17 +- game/src/chunk/chunkmesh.c | 6 +- game/src/graphics.h | 6 +- game/src/ui/uielement.c | 23 +- game/src/ui/uielement.h | 20 +- game/src/ui/uiman.c | 14 +- game/src/util.h | 2 +- 12 files changed, 2065 insertions(+), 47 deletions(-) create mode 100644 game/massif.out.117125 diff --git a/game/massif.out.117125 b/game/massif.out.117125 new file mode 100644 index 0000000..007c6ec --- /dev/null +++ b/game/massif.out.117125 @@ -0,0 +1,2020 @@ +desc: (none) +cmd: ./wschod +time_unit: i +#----------- +snapshot=0 +#----------- +time=0 +mem_heap_B=0 +mem_heap_extra_B=0 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=1 +#----------- +time=966725159 +mem_heap_B=23108815 +mem_heap_extra_B=1622049 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=2 +#----------- +time=1889023821 +mem_heap_B=23295015 +mem_heap_extra_B=1646057 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=3 +#----------- +time=2898740857 +mem_heap_B=23454295 +mem_heap_extra_B=1662449 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=4 +#----------- +time=3542372202 +mem_heap_B=23727695 +mem_heap_extra_B=1697777 +mem_stacks_B=0 +heap_tree=detailed +n13: 23727695 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n0: 4651500 in 1547 places, all below massif's threshold (1.00%) + n1: 1751256 0xC781248: ??? + n1: 1751256 0xCB9BF5E: ??? + n2: 1751256 0xC780D20: ??? + n2: 1744344 0xC750FF0: ??? + n3: 1741752 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 632736 0xBFB045C: ??? + n1: 632736 0xBFB1218: ??? + n2: 632736 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 18360 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 6912 in 1 place, below massif's threshold (1.00%) + n3: 987580 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 584960 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 571384 0x409206: spawn_queue_process_one (entman.c:69) + n1: 571384 0x409206: spawn_queue_process_one (entman.c:62) + n1: 571384 0x4092D3: entman_tick (entman.c:96) + n1: 571384 0x40C172: SDL_AppIterate (main.c:56) + n1: 571384 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 571384 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 571384 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 13576 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 738544 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 738544 in 50 places, all below massif's threshold (1.00%) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) + n1: 271272 0xC0D13C2: ??? + n1: 271272 0xBFBF790: ??? + n1: 271272 0xBE82ABF: ??? + n1: 271272 0xBE95B51: ??? + n1: 271272 0xBDE51D1: ??? + n1: 271272 0xBDE9116: ??? + n1: 271272 0xBCAA56B: ??? + n1: 271272 0xBC9BD58: ??? + n1: 271272 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 271272 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 271272 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 271272 0x409B87: graphics_init (graphics.c:41) + n1: 271272 0x40C0D4: SDL_AppInit (main.c:22) + n1: 271272 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 271272 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 271272 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 264608 0xC7842DB: ??? + n1: 264608 0xC6C4879: ??? + n0: 264608 in 2 places, all below massif's threshold (1.00%) + n1: 262176 0x75A6A6A: pixman_glyph_cache_create (in /nix/store/r7sp55wajh5p7yh2ahgifr1c8jbqjgnl-pixman-0.44.2/lib/libpixman-1.so.0.44.2) + n1: 262176 0x6F1FD74: composite_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F719F5: clip_and_composite (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F71DF2: _cairo_traps_compositor_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F1324E: _cairo_compositor_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F26E96: _cairo_image_surface_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F6B15D: _cairo_surface_show_text_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F64B0D: _cairo_surface_offset_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F65811: _cairo_surface_subsurface_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F6B15D: _cairo_surface_show_text_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F1D860: _cairo_gstate_show_text_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6F7A016: cairo_show_glyphs (in /nix/store/41qbms27n02859ja4sc7wsd9mfp3ward-cairo-1.18.2/lib/libcairo.so.2.11802.2) + n1: 262176 0x6E0B23A: pango_cairo_renderer_show_text_glyphs (in /nix/store/z0kbsgnma0mijn5ssqfi3dk9z28bqlwj-pango-1.56.3/lib/libpangocairo-1.0.so.0.5600.3) + n1: 262176 0x6E0B4BA: pango_cairo_renderer_draw_glyph_item (in /nix/store/z0kbsgnma0mijn5ssqfi3dk9z28bqlwj-pango-1.56.3/lib/libpangocairo-1.0.so.0.5600.3) + n1: 262176 0x6E56F1D: pango_renderer_draw_glyph_item (in /nix/store/z0kbsgnma0mijn5ssqfi3dk9z28bqlwj-pango-1.56.3/lib/libpango-1.0.so.0.5600.3) + n1: 262176 0x6E57CF8: pango_renderer_draw_layout_line (in /nix/store/z0kbsgnma0mijn5ssqfi3dk9z28bqlwj-pango-1.56.3/lib/libpango-1.0.so.0.5600.3) + n1: 262176 0x6E58364: pango_renderer_draw_layout (in /nix/store/z0kbsgnma0mijn5ssqfi3dk9z28bqlwj-pango-1.56.3/lib/libpango-1.0.so.0.5600.3) + n1: 262176 0x6E0BC13: pango_cairo_show_layout (in /nix/store/z0kbsgnma0mijn5ssqfi3dk9z28bqlwj-pango-1.56.3/lib/libpangocairo-1.0.so.0.5600.3) + n1: 262176 0x7CB19D9: gtk_render_layout (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x7C22DE0: gtk_label_render (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x7B5735C: gtk_css_custom_gadget_draw (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x7B5E059: gtk_css_gadget_draw (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x7C1FAE0: gtk_label_draw (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x7D9ED03: gtk_widget_draw_internal (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x7D9F08D: gtk_widget_draw (in /nix/store/42dlyn8qbxdp55gxd35xymik0nhy0hdw-gtk+3-3.24.49/lib/libgtk-3.so.0.2417.32) + n1: 262176 0x77D15A2: draw_border_component (in /nix/store/5ax1jpfx16dwhbx3vwvmpzmlwdkypkyd-libdecor-0.2.2/lib/libdecor/plugins-1/libdecor-gtk.so) + n1: 262176 0x77D1DAE: draw_title_bar (in /nix/store/5ax1jpfx16dwhbx3vwvmpzmlwdkypkyd-libdecor-0.2.2/lib/libdecor/plugins-1/libdecor-gtk.so) + n1: 262176 0x77D2405: draw_decoration (in /nix/store/5ax1jpfx16dwhbx3vwvmpzmlwdkypkyd-libdecor-0.2.2/lib/libdecor/plugins-1/libdecor-gtk.so) + n1: 262176 0x77D266E: libdecor_plugin_gtk_frame_commit (in /nix/store/5ax1jpfx16dwhbx3vwvmpzmlwdkypkyd-libdecor-0.2.2/lib/libdecor/plugins-1/libdecor-gtk.so) + n0: 262176 0x6DEA996: libdecor_frame_commit (in /nix/store/5ax1jpfx16dwhbx3vwvmpzmlwdkypkyd-libdecor-0.2.2/lib/libdecor-0.so.0.200.2) + n1: 262144 0xC6C4932: ??? + n0: 262144 in 2 places, all below massif's threshold (1.00%) + n1: 262144 0xC768B17: ??? + n1: 262144 0xC6C4A44: ??? + n0: 262144 in 2 places, all below massif's threshold (1.00%) +#----------- +snapshot=5 +#----------- +time=4352024746 +mem_heap_B=23887831 +mem_heap_extra_B=1718121 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=6 +#----------- +time=5436121232 +mem_heap_B=24425767 +mem_heap_extra_B=1778641 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=7 +#----------- +time=6454963340 +mem_heap_B=24425767 +mem_heap_extra_B=1778625 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=8 +#----------- +time=7757480374 +mem_heap_B=24614239 +mem_heap_extra_B=1802385 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=9 +#----------- +time=8921107937 +mem_heap_B=25148055 +mem_heap_extra_B=1871057 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=10 +#----------- +time=9713248315 +mem_heap_B=25148055 +mem_heap_extra_B=1871073 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=11 +#----------- +time=10396559518 +mem_heap_B=25148183 +mem_heap_extra_B=1871105 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=12 +#----------- +time=11709856697 +mem_heap_B=25477215 +mem_heap_extra_B=1879705 +mem_stacks_B=0 +heap_tree=detailed +n9: 25477215 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 5953380 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 1995884 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 1461704 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 1446984 0x409206: spawn_queue_process_one (entman.c:69) + n1: 1446984 0x409206: spawn_queue_process_one (entman.c:62) + n1: 1446984 0x4092D3: entman_tick (entman.c:96) + n1: 1446984 0x40C172: SDL_AppIterate (main.c:56) + n1: 1446984 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 1446984 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 1446984 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 14720 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 232132 in 119 places, all below massif's threshold (1.00%) + n1: 1762344 0xC781248: ??? + n1: 1762344 0xCB9BF5E: ??? + n2: 1762344 0xC780D20: ??? + n2: 1756584 0xC750FF0: ??? + n3: 1753992 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 644976 0xBFB045C: ??? + n1: 644976 0xBFB1218: ??? + n2: 644976 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 30600 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 5760 in 1 place, below massif's threshold (1.00%) + n2: 940272 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 544224 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 548864 0x406707: Chunk_new (chunk.c:9) + n1: 548864 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 548864 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 548864 0x40C16B: SDL_AppIterate (main.c:55) + n1: 548864 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 548864 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 548864 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=13 +#----------- +time=12681332027 +mem_heap_B=25510207 +mem_heap_extra_B=1901505 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=14 +#----------- +time=14092808803 +mem_heap_B=25919543 +mem_heap_extra_B=1954729 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=15 +#----------- +time=15277291198 +mem_heap_B=26154863 +mem_heap_extra_B=1984537 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=16 +#----------- +time=16184427996 +mem_heap_B=26330175 +mem_heap_extra_B=2007929 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=17 +#----------- +time=17212365182 +mem_heap_B=26330303 +mem_heap_extra_B=2007945 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=18 +#----------- +time=18370016667 +mem_heap_B=26330239 +mem_heap_extra_B=2007889 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=19 +#----------- +time=19181366894 +mem_heap_B=26330239 +mem_heap_extra_B=2007889 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=20 +#----------- +time=20385344002 +mem_heap_B=26330367 +mem_heap_extra_B=2007937 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=21 +#----------- +time=21385780029 +mem_heap_B=26330431 +mem_heap_extra_B=2007913 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=22 +#----------- +time=22179726703 +mem_heap_B=26330511 +mem_heap_extra_B=2007921 +mem_stacks_B=0 +heap_tree=detailed +n9: 26330511 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6105628 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 2462972 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2060352 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2044768 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2044768 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2044768 0x4092D3: entman_tick (entman.c:96) + n1: 2044768 0x40C172: SDL_AppIterate (main.c:56) + n1: 2044768 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2044768 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2044768 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 15584 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 1768464 0xC781248: ??? + n1: 1768464 0xCB9BF5E: ??? + n2: 1768464 0xC780D20: ??? + n2: 1762704 0xC750FF0: ??? + n3: 1760112 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 651096 0xBFB045C: ??? + n1: 651096 0xBFB1218: ??? + n2: 651096 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 36720 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 5760 in 1 place, below massif's threshold (1.00%) + n2: 942832 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 546784 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 774144 0x406707: Chunk_new (chunk.c:9) + n1: 774144 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 774144 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 774144 0x40C16B: SDL_AppIterate (main.c:55) + n1: 774144 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 774144 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 774144 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=23 +#----------- +time=23176274370 +mem_heap_B=26381248 +mem_heap_extra_B=2018952 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=24 +#----------- +time=24587718655 +mem_heap_B=26569983 +mem_heap_extra_B=2038713 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=25 +#----------- +time=25856249184 +mem_heap_B=26868143 +mem_heap_extra_B=2075617 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=26 +#----------- +time=26671602593 +mem_heap_B=26867823 +mem_heap_extra_B=2075609 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=27 +#----------- +time=27274036593 +mem_heap_B=26867951 +mem_heap_extra_B=2075593 +mem_stacks_B=0 +heap_tree=detailed +n9: 26867951 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6183260 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 2781540 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2378920 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2362888 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2362888 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2362888 0x4092D3: entman_tick (entman.c:96) + n1: 2362888 0x40C172: SDL_AppIterate (main.c:56) + n1: 2362888 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2362888 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2362888 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16032 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 1786824 0xC781248: ??? + n1: 1786824 0xCB9BF5E: ??? + n2: 1786824 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 5760 in 1 place, below massif's threshold (1.00%) + n2: 942832 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 546784 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 897024 0x406707: Chunk_new (chunk.c:9) + n1: 897024 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 897024 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 897024 0x40C16B: SDL_AppIterate (main.c:55) + n1: 897024 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 897024 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 897024 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=28 +#----------- +time=28295582613 +mem_heap_B=27108135 +mem_heap_extra_B=2107153 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=29 +#----------- +time=29078535792 +mem_heap_B=27108199 +mem_heap_extra_B=2107177 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=30 +#----------- +time=29858397503 +mem_heap_B=27108135 +mem_heap_extra_B=2107185 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=31 +#----------- +time=30639269738 +mem_heap_B=27107943 +mem_heap_extra_B=2107113 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=32 +#----------- +time=31414264064 +mem_heap_B=27108263 +mem_heap_extra_B=2107185 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=33 +#----------- +time=32194740074 +mem_heap_B=27108071 +mem_heap_extra_B=2107113 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=34 +#----------- +time=33366392329 +mem_heap_B=27107943 +mem_heap_extra_B=2107129 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=35 +#----------- +time=34740173890 +mem_heap_B=27368855 +mem_heap_extra_B=2111025 +mem_stacks_B=0 +heap_tree=detailed +n9: 27368855 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6221084 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 3179084 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2546432 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2530176 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2530176 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2530176 0x4092D3: entman_tick (entman.c:96) + n1: 2530176 0x40C172: SDL_AppIterate (main.c:56) + n1: 2530176 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2530176 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2530176 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16256 in 10 places, all below massif's threshold (1.00%) + n0: 330604 in 119 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n1: 1786824 0xC781248: ??? + n1: 1786824 0xCB9BF5E: ??? + n2: 1786824 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 5760 in 1 place, below massif's threshold (1.00%) + n1: 962560 0x406707: Chunk_new (chunk.c:9) + n1: 962560 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 962560 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 962560 0x40C16B: SDL_AppIterate (main.c:55) + n1: 962560 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 962560 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 962560 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n2: 942832 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 546784 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=36 +#----------- +time=35902108959 +mem_heap_B=27196039 +mem_heap_extra_B=2118409 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=37 +#----------- +time=36677725371 +mem_heap_B=27196039 +mem_heap_extra_B=2118441 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=38 +#----------- +time=37449279536 +mem_heap_B=27196551 +mem_heap_extra_B=2118505 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=39 +#----------- +time=38227257633 +mem_heap_B=27198919 +mem_heap_extra_B=2118553 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=40 +#----------- +time=39391978459 +mem_heap_B=27271439 +mem_heap_extra_B=2127177 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=41 +#----------- +time=40551738506 +mem_heap_B=27271572 +mem_heap_extra_B=2127116 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=42 +#----------- +time=41725198591 +mem_heap_B=27268943 +mem_heap_extra_B=2127081 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=43 +#----------- +time=42893944611 +mem_heap_B=27269135 +mem_heap_extra_B=2127073 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=44 +#----------- +time=43677550776 +mem_heap_B=27270287 +mem_heap_extra_B=2127057 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=45 +#----------- +time=44453534074 +mem_heap_B=27271759 +mem_heap_extra_B=2127105 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=46 +#----------- +time=45226333779 +mem_heap_B=27269327 +mem_heap_extra_B=2127065 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=47 +#----------- +time=46002021214 +mem_heap_B=27270543 +mem_heap_extra_B=2127041 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=48 +#----------- +time=46774753585 +mem_heap_B=27322903 +mem_heap_extra_B=2133721 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=49 +#----------- +time=47560129783 +mem_heap_B=27323031 +mem_heap_extra_B=2133769 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=50 +#----------- +time=48166775088 +mem_heap_B=27322839 +mem_heap_extra_B=2133713 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=51 +#----------- +time=48773180455 +mem_heap_B=27322583 +mem_heap_extra_B=2133649 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=52 +#----------- +time=49380499941 +mem_heap_B=27324183 +mem_heap_extra_B=2133745 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=53 +#----------- +time=49989548150 +mem_heap_B=27323031 +mem_heap_extra_B=2133721 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=54 +#----------- +time=50598296549 +mem_heap_B=27323031 +mem_heap_extra_B=2133753 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=55 +#----------- +time=51207067023 +mem_heap_B=27323159 +mem_heap_extra_B=2133817 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=56 +#----------- +time=51816160354 +mem_heap_B=27323383 +mem_heap_extra_B=2133793 +mem_stacks_B=0 +heap_tree=detailed +n9: 27323383 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6248524 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 3058940 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2656320 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2639912 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2639912 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2639912 0x4092D3: entman_tick (entman.c:96) + n1: 2639912 0x40C172: SDL_AppIterate (main.c:56) + n1: 2639912 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2639912 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2639912 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16408 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 1787976 0xC781248: ??? + n1: 1787976 0xCB9BF5E: ??? + n2: 1787976 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 6912 in 1 place, below massif's threshold (1.00%) + n1: 1003520 0x406707: Chunk_new (chunk.c:9) + n1: 1003520 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 1003520 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 1003520 0x40C16B: SDL_AppIterate (main.c:55) + n1: 1003520 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 1003520 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 1003520 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n2: 947952 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 551904 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=57 +#----------- +time=52418791648 +mem_heap_B=27323367 +mem_heap_extra_B=2133713 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=58 +#----------- +time=53021726426 +mem_heap_B=27322983 +mem_heap_extra_B=2133729 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=59 +#----------- +time=53624573141 +mem_heap_B=27323111 +mem_heap_extra_B=2133745 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=60 +#----------- +time=54227249506 +mem_heap_B=27323367 +mem_heap_extra_B=2133777 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=61 +#----------- +time=54792371370 +mem_heap_B=27652895 +mem_heap_extra_B=2144529 +mem_stacks_B=0 +heap_tree=peak +n9: 27652895 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6258828 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 3357668 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2710152 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2693680 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2693680 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2693680 0x4092D3: entman_tick (entman.c:96) + n1: 2693680 0x40C172: SDL_AppIterate (main.c:56) + n1: 2693680 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2693680 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2693680 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16472 in 10 places, all below massif's threshold (1.00%) + n0: 345468 in 119 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n1: 1787976 0xC781248: ??? + n1: 1787976 0xCB9BF5E: ??? + n2: 1787976 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 6912 in 1 place, below massif's threshold (1.00%) + n1: 1024000 0x406707: Chunk_new (chunk.c:9) + n1: 1024000 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 1024000 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 1024000 0x40C16B: SDL_AppIterate (main.c:55) + n1: 1024000 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 1024000 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 1024000 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n2: 947952 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 551904 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=62 +#----------- +time=55394820091 +mem_heap_B=27407887 +mem_heap_extra_B=2144505 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=63 +#----------- +time=55997386307 +mem_heap_B=27408004 +mem_heap_extra_B=2144572 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=64 +#----------- +time=56606516034 +mem_heap_B=27407999 +mem_heap_extra_B=2144553 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=65 +#----------- +time=57209211031 +mem_heap_B=27407743 +mem_heap_extra_B=2144521 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=66 +#----------- +time=57816994136 +mem_heap_B=27407999 +mem_heap_extra_B=2144553 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=67 +#----------- +time=58426829335 +mem_heap_B=27407543 +mem_heap_extra_B=2144473 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=68 +#----------- +time=59029270891 +mem_heap_B=27407735 +mem_heap_extra_B=2144497 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=69 +#----------- +time=59638548125 +mem_heap_B=27407735 +mem_heap_extra_B=2144497 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=70 +#----------- +time=60240991894 +mem_heap_B=27404983 +mem_heap_extra_B=2144449 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=71 +#----------- +time=60849419535 +mem_heap_B=27407735 +mem_heap_extra_B=2144529 +mem_stacks_B=0 +heap_tree=detailed +n9: 27407735 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6258564 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 3112772 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2710152 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2693680 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2693680 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2693680 0x4092D3: entman_tick (entman.c:96) + n1: 2693680 0x40C172: SDL_AppIterate (main.c:56) + n1: 2693680 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2693680 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2693680 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16472 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 1787976 0xC781248: ??? + n1: 1787976 0xCB9BF5E: ??? + n2: 1787976 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 6912 in 1 place, below massif's threshold (1.00%) + n1: 1024000 0x406707: Chunk_new (chunk.c:9) + n1: 1024000 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 1024000 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 1024000 0x40C16B: SDL_AppIterate (main.c:55) + n1: 1024000 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 1024000 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 1024000 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n2: 947952 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 551904 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=72 +#----------- +time=61452037744 +mem_heap_B=27407740 +mem_heap_extra_B=2144548 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=73 +#----------- +time=62054695410 +mem_heap_B=27409524 +mem_heap_extra_B=2144812 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=74 +#----------- +time=62657204546 +mem_heap_B=27409727 +mem_heap_extra_B=2144753 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=75 +#----------- +time=63266475747 +mem_heap_B=27409455 +mem_heap_extra_B=2144753 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=76 +#----------- +time=63869042986 +mem_heap_B=27406772 +mem_heap_extra_B=2144700 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=77 +#----------- +time=64475742249 +mem_heap_B=27409519 +mem_heap_extra_B=2144761 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=78 +#----------- +time=65078286858 +mem_heap_B=27409268 +mem_heap_extra_B=2144716 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=79 +#----------- +time=65685977355 +mem_heap_B=27409519 +mem_heap_extra_B=2144729 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=80 +#----------- +time=66289375281 +mem_heap_B=27409727 +mem_heap_extra_B=2144769 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=81 +#----------- +time=66899350043 +mem_heap_B=27409391 +mem_heap_extra_B=2144745 +mem_stacks_B=0 +heap_tree=detailed +n9: 27409391 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6260212 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 3112780 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2710160 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2693680 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2693680 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2693680 0x4092D3: entman_tick (entman.c:96) + n1: 2693680 0x40C172: SDL_AppIterate (main.c:56) + n1: 2693680 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2693680 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2693680 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16480 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 1787976 0xC781248: ??? + n1: 1787976 0xCB9BF5E: ??? + n2: 1787976 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 6912 in 1 place, below massif's threshold (1.00%) + n1: 1024000 0x406707: Chunk_new (chunk.c:9) + n1: 1024000 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 1024000 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 1024000 0x40C16B: SDL_AppIterate (main.c:55) + n1: 1024000 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 1024000 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 1024000 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n2: 947952 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 551904 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=82 +#----------- +time=67501877498 +mem_heap_B=27409727 +mem_heap_extra_B=2144769 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=83 +#----------- +time=68110615085 +mem_heap_B=27409519 +mem_heap_extra_B=2144761 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=84 +#----------- +time=68714971551 +mem_heap_B=27409535 +mem_heap_extra_B=2144713 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=85 +#----------- +time=69317483883 +mem_heap_B=27409471 +mem_heap_extra_B=2144737 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=86 +#----------- +time=69927760036 +mem_heap_B=27409519 +mem_heap_extra_B=2144761 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=87 +#----------- +time=70532174043 +mem_heap_B=27425159 +mem_heap_extra_B=2146729 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=88 +#----------- +time=71135650412 +mem_heap_B=27425159 +mem_heap_extra_B=2146729 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=89 +#----------- +time=71739184486 +mem_heap_B=27425095 +mem_heap_extra_B=2146721 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=90 +#----------- +time=72342331747 +mem_heap_B=27425367 +mem_heap_extra_B=2146769 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=91 +#----------- +time=72944816301 +mem_heap_B=27425159 +mem_heap_extra_B=2146729 +mem_stacks_B=0 +heap_tree=detailed +n9: 27425159 (heap allocation functions) malloc/new/new[], --alloc-fns, etc. + n2: 8142336 0xC2786B0: ??? + n4: 7823984 0xC278708: ??? + n0: 6159248 in 948 places, all below massif's threshold (1.00%) + n1: 961728 0xC14C2C9: ??? + n0: 961728 in 198 places, all below massif's threshold (1.00%) + n1: 376992 0xC1A7685: ??? + n0: 376992 in 131 places, all below massif's threshold (1.00%) + n1: 326016 0xC1A7560: ??? + n0: 326016 in 90 places, all below massif's threshold (1.00%) + n0: 318352 in 22 places, all below massif's threshold (1.00%) + n0: 6263156 in 1551 places, all below massif's threshold (1.00%) + n2: 4956997 0x4AA05B2: SDL_malloc_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4861056 0x495161E: stbi__create_png_image_raw (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x49599AC: stbi__parse_png_file.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x495B878: stbi__load_main.constprop.0 (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x4961D3F: IMG_LoadSTB_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n1: 4861056 0x493F738: IMG_LoadTyped_IO (in /nix/store/yhpvkmanp4ybn63zqnbzhzwnlkwghr6h-sdl3-image-3.2.4-lib/lib/libSDL3_image.so.0.2.4) + n2: 4861056 0x403AB8: resources_load_texture (resources.c:48) + n1: 4194304 0x403E4B: resources_init (resources.c:176) + n1: 4194304 0x40C0DB: SDL_AppInit (main.c:23) + n1: 4194304 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 4194304 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 4194304 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 666752 in 8 places, all below massif's threshold (1.00%) + n0: 95941 in 21 places, all below massif's threshold (1.00%) + n3: 3121508 0x4E45E2D: g_malloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n2: 2718888 0x4E633DD: g_memdup2 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 2702392 0x409206: spawn_queue_process_one (entman.c:69) + n1: 2702392 0x409206: spawn_queue_process_one (entman.c:62) + n1: 2702392 0x4092D3: entman_tick (entman.c:96) + n1: 2702392 0x40C172: SDL_AppIterate (main.c:56) + n1: 2702392 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 2702392 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 2702392 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 16496 in 10 places, all below massif's threshold (1.00%) + n1: 302048 0x4E61918: g_slice_alloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 302048 in 112 places, all below massif's threshold (1.00%) + n0: 100572 in 119 places, all below massif's threshold (1.00%) + n1: 1787976 0xC781248: ??? + n1: 1787976 0xCB9BF5E: ??? + n2: 1787976 0xC780D20: ??? + n2: 1781064 0xC750FF0: ??? + n3: 1778472 0xC751447: ??? + n2: 1105848 0xC751D89: ??? + n1: 1081296 0xC6CAF70: ??? + n2: 1081296 0xC6CE0B2: ??? + n1: 589824 0xC756881: ??? + n1: 589824 0xC2801E8: ??? + n1: 589824 0xC2B60A6: ??? + n1: 589824 0x4FD2E62: start_thread (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 589824 0x5056B93: clone (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 491472 0xC6D3264: ??? + n1: 491472 0xC7058D5: ??? + n1: 491472 0xC709045: ??? + n1: 491472 0xCBB928B: ??? + n1: 491472 0xCBC0945: ??? + n1: 491472 0xC4A200B: ??? + n1: 491472 0xC4A419A: ??? + n1: 491472 0xC4A4F97: ??? + n1: 491472 0xBE960AB: ??? + n1: 491472 0xBDE634A: ??? + n1: 491472 0xBCB5250: ??? + n1: 491472 0xBCAA8A2: ??? + n1: 491472 0xBC9DE00: ??? + n1: 491472 0x4BE4E02: Wayland_GLES_SwapWindow (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x40A1CA: graphics_render (graphics.c:98) + n1: 491472 0x40C180: SDL_AppIterate (main.c:58) + n1: 491472 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 491472 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 491472 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n1: 669456 0xBFB045C: ??? + n1: 669456 0xBFB1218: ??? + n2: 669456 0xBFB63DD: ??? + n1: 614376 0xBE38128: ??? + n1: 614376 0xBE36971: ??? + n2: 614376 0xBE37031: ??? + n1: 589824 0xBF5BC72: ??? + n1: 589824 0x406EBB: SimpleMesh_make_quad1 (mesh.c:55) + n1: 589824 0x4090B7: entman_init (entman.c:39) + n1: 589824 0x40C0FE: SDL_AppInit (main.c:28) + n1: 589824 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 589824 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 589824 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n0: 24552 in 1 place, below massif's threshold (1.00%) + n0: 55080 in 1 place, below massif's threshold (1.00%) + n0: 3168 in 2 places, all below massif's threshold (1.00%) + n0: 2592 in 1 place, below massif's threshold (1.00%) + n0: 6912 in 1 place, below massif's threshold (1.00%) + n1: 1028096 0x406707: Chunk_new (chunk.c:9) + n1: 1028096 0x4042EE: chunkman_generate_Chunk_at (chunkman.c:247) + n1: 1028096 0x4065A9: chunkman_tick (chunkman.c:136) + n1: 1028096 0x40C16B: SDL_AppIterate (main.c:55) + n1: 1028096 0x4A3C311: SDL_IterateMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 1028096 0x4C535EB: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 1028096 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n2: 947952 0x4E45F05: g_realloc (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 551904 in 49 places, all below massif's threshold (1.00%) + n2: 396048 0x4E01F0F: g_array_maybe_expand (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n1: 395632 0x4E02829: g_array_append_vals (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 395632 in 12 places, all below massif's threshold (1.00%) + n0: 416 in 4 places, all below massif's threshold (1.00%) + n1: 831120 0xBE82A64: ??? + n1: 831120 0xBE95B51: ??? + n1: 831120 0xBDE51D1: ??? + n1: 831120 0xBDE9116: ??? + n1: 831120 0xBCAA56B: ??? + n1: 831120 0xBC9BD58: ??? + n1: 831120 0x4B41273: SDL_EGL_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4BE4CA8: Wayland_GLES_CreateContext (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4B66BF1: SDL_GL_CreateContext_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x409B87: graphics_init (graphics.c:41) + n1: 831120 0x40C0D4: SDL_AppInit (main.c:22) + n1: 831120 0x4A3C265: SDL_InitMainCallbacks (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n1: 831120 0x4C5357E: SDL_EnterAppMainCallbacks_REAL (in /nix/store/lq0kv9jwgypcilcg9k39mz1h4gppr98v-sdl3-3.2.12-lib/lib/libSDL3.so.0.2.12) + n0: 831120 0x4F6547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6) + n1: 346018 0x4E45E95: g_malloc0 (in /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0.8400.1) + n0: 346018 in 99 places, all below massif's threshold (1.00%) +#----------- +snapshot=92 +#----------- +time=73555003015 +mem_heap_B=27424647 +mem_heap_extra_B=2146713 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=93 +#----------- +time=74158196280 +mem_heap_B=27425367 +mem_heap_extra_B=2146721 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=94 +#----------- +time=74760635534 +mem_heap_B=27425031 +mem_heap_extra_B=2146697 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=95 +#----------- +time=75363075623 +mem_heap_B=27670847 +mem_heap_extra_B=2146713 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=96 +#----------- +time=75971808029 +mem_heap_B=27497511 +mem_heap_extra_B=2155969 +mem_stacks_B=0 +heap_tree=empty +#----------- +snapshot=97 +#----------- +time=76574941164 +mem_heap_B=27497655 +mem_heap_extra_B=2156049 +mem_stacks_B=0 +heap_tree=empty diff --git a/game/res/shaders/uielement.frag b/game/res/shaders/uielement.frag index e713d5d..d63a2d3 100644 --- a/game/res/shaders/uielement.frag +++ b/game/res/shaders/uielement.frag @@ -9,5 +9,5 @@ varying vec2 f_uv; void main () { - gl_FragColor = vec4 (color.xyz, 1.0); + gl_FragColor = color; } diff --git a/game/res/shaders/uitext.vert b/game/res/shaders/uitext.vert index e6d8332..d3afe73 100644 --- a/game/res/shaders/uitext.vert +++ b/game/res/shaders/uitext.vert @@ -11,7 +11,7 @@ varying vec2 f_uv; void main () { float tex_w = 128.0; - float tex_h = 128.0; + float tex_h = 256.0; float char_w = 8.0; float char_h = 16.0; diff --git a/game/res/textures/font.png b/game/res/textures/font.png index a34641727baf0b17754e7e3118235e640805a266..44e1eeba0e074673ec9baec72e43b00bb6ec3ce3 100644 GIT binary patch delta 3223 zcmdnZcSUl77&jvW2O9$eL-o(Pv@7aT^vIyZoQ4YS@w1XpHIZU|MB;}KYf>H z&S=uyuxk2b;U-?U47WdZcJt4lXV|}g|9<-eJ0%1eTxAaY(|CXMpPq%-KPRRio2qsG z9c5vd$5qA6&sH_Rm*QoPkfVf%ga)5tD%nc z!;_yTR?XU1J+si!-q-0Ft6{E1y27eB8u505ggpP=j< zzR~ye@#j6KXLGon*A^6h5XJfa?w;3++`8@j`7Tw}eXMa@)~_nL++|Hluz~Iz(_X#+ z{e~kmL%wgHrj7O&FRmY@<+_>2uIm4oO!Y@NbE}T<~cJgkM>p7AO6_VdoTa( z`ON#ho9mA2Yl(XQ-6w9mp40pEvy~i*Q~B!`ywyKzeqz^;wI9XT&3rC9`TC7-yRC~< z!ltM#bZgF=xWat(_Iuh#Qm4m+ulrJKe8W`q@Ps24Cfrt4&tAl~?l#a+exBY|C>B3i zd!eFC2v@0E)5Sx9Z{_M3^aOXPwG^m5RD7)I?G*j;i*{Aj-{`l-a~(%x$BN` zarqZE#rmng_j+EtXOovzaoQ_$X{D>?>PsvVdWQW$pPe}lywZBB=@s{@eYy7aVD&|1 z>r|9Itd1YA{lTn%cPVZ=+&L(npu~A;havL*!Rm%%)E?x|2eOz7ZdJVbZy=hHSlzp8A`AK4}pvH5VOy6m44LpppLIVt~PN+f88;OjcV=uGv;I zz5J`;`i*w84i=wT)ZrC*aZ~O0$;YJ*X_Th#;6A^V$%C)p@FMpPP2ZE^{h##Kc|FjL z@O&a^9`Q0TqlD?n%b$#5wug=E^YV^=$dD-L=lirp#DU+q%WL(tC8gfK>Vtol&H7pR zS7~O=KWmKz3=BHgJ*(C@7TMV?s`pO(^s8Q1Z_h7pQM32IBilZ#ll@bd<_EE)@acNlE0vnONm+5}(9&63Oy$nMy)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cJ%i->yo2R(~FPdp{Cc3;^^7s#fTzq{? zi@2c8x}T4vr>UL$6jQw~u6XB`r{8$;_gBCFetPqY%vbJ9rfWy#EkCjA;`aLYb-OJJ zSKXA(ZJk%}I-=LRK4Nc0@L7i>*~aWVU)xh$3Vi0woI(taObQ8M2VO+)SMd##)^0e( zbnW+@>eUfPqA&cvBfEyTWrAJw<`!G~^*3~Dws}e)i(R#R>N+;by8T;48|I~W^U1$e zIdf;lDc?PBOB;gj?GKgxA~bRPn>@a?DT&`#EWW<`?dfceiZ8XEmpNh%RB11py0!P* zbbGID+md(#&DUSzVObkA#pavP6F(U}#c==J4JJmLQjNa85|}h8!fR_+*rQK&6--fX oFT~|fx?R8ZDgSu%?|=NBGiB#>`)WR9U|?YIboFyt=akR{02LKso&W#< diff --git a/game/res/textures/font.xcf b/game/res/textures/font.xcf index 4ab5815480d70e97200a426055abf0dfe5ae4999..cbe42ab854105bbabc66b1be02ef02985550105d 100644 GIT binary patch literal 68013 zcmYe#%q>u;NKR8IGcYt{U|?WqU|?Vb(I7mHfq_Agfq{V$BqGGXzyK2X0OC9V5f?zj z0T8hPL@WRi6F@`*h$sLN2_PZ>L^yy50}!DAA_PE01rq}ULjj1$01*iwA_7DNfCvu| z;Q%5mK!gE^&;St%AVLB}2!IF<5FyOKz`)@&fq?;p85kHu7#J8>7#NsL85kJEAZ)O| zL>U-392giFctIZ5P0r8FP0cF-`4!|IA?Kph#FEq$h4Rdj3 zZhBE>3P_BRfq_v{qqw9pCsm<1KPNLqlS?BlJvl!ozlcjgK|w(S%v4YcQg>H(Qg>8H z%gIkHQBp88Q&5UAzypm83}Vd9l@ts#HMumBNH7qh5o|I(Ce-AL;)2BF%)E33Ljz4N zjYeTg91p$Ju|l;peR2%HKnvD z)j2;eEi*l+G*34zGbdHIATM1vwW1)us6;m>u^1NojH()$c_pbuIf==sDGGV{np_&m z`MCu}sl~;a`FRSKpb*JUhsuELg{UdWs4RxCN-}d(A*|xWvQ*uYqQt!7g2bZ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KA*P>jY@Aj5)&($Pp|I|52FW)8jx2 z459aqftsiW-~$pt>OpIf|1tarHB}&234oU4pco528}A>;R8W%#WG7^CGKhsK$Ns;5 z)P=mNU({MQ#rrI`k{zJIAB=@1_l-g zm#YXucdv!eU=pT=fq{W*5m3|5J7e$NYte7_Nd k29q!~3=9mt5?~RAUJWR10i`{*|7BxTV&Z{10^}G50R5{)7XSbN diff --git a/game/src/chunk/chunkman.c b/game/src/chunk/chunkman.c index d5dbe77..560cde9 100644 --- a/game/src/chunk/chunkman.c +++ b/game/src/chunk/chunkman.c @@ -117,12 +117,6 @@ chunkman_tick (vec3 position) { for (int x = cx - render_distance - 1; x <= cx + render_distance + 1; ++x) { - /* Check in a circle instead of a square. */ - if ((x - cx) * (x - cx) + (z - cz) * (z - cz) > (render_distance+1)*(render_distance+1)) - { - continue; - } - uint64_t now = SDL_GetPerformanceCounter (); elapsed_us = (double) (now - start) * 1000000.0 / (double) freq; @@ -142,11 +136,6 @@ chunkman_tick (vec3 position) { for (int x = cx - render_distance; x <= cx + render_distance; ++x) { - if ((x - cx) * (x - cx) + (z - cz) * (z - cz) > render_distance*render_distance) - { - continue; - } - uint64_t now = SDL_GetPerformanceCounter (); elapsed_us = (double) (now - start) * 1000000.0 / (double) freq; @@ -192,6 +181,7 @@ chunkman_render (vec3 position, vec4 planes[6]) { for (int x = cx - render_distance; x <= cx + render_distance; ++x) { + /* Render in a circle instead of a square. */ if ((x - cx) * (x - cx) + (z - cz) * (z - cz) > render_distance*render_distance) { continue; @@ -309,6 +299,11 @@ chunkman_generate_ChunkMesh_at (int x, int z) { Chunk *nr, *nd, *nc; chunkman_get_Chunk_neighbors_at (x, z, &nr, &nd, &nc); + + g_assert (nr != NULL); + g_assert (nd != NULL); + g_assert (nc != NULL); + chunkman_set_ChunkMesh_at (x, z, ChunkMesh_build (chunkman_get_Chunk_at (x, z), nr, nd, nc)); } diff --git a/game/src/chunk/chunkmesh.c b/game/src/chunk/chunkmesh.c index 0f5903e..74a1f6c 100644 --- a/game/src/chunk/chunkmesh.c +++ b/game/src/chunk/chunkmesh.c @@ -1,9 +1,5 @@ #include "chunkmesh.h" -/* TODO: Store the position in an ivec2, and the height as a seperate - vertex attribute and as a float. Should be a bit faster. Since the - materials are ints, we could use a ivec4 there as well. */ - ChunkMesh * ChunkMesh_build (Chunk *chunk, Chunk *nr, Chunk *nd, Chunk *nc) /* nd --- down neighbor; nr --- right neighbor; nc --- corner neighbor */ @@ -129,5 +125,5 @@ ChunkMesh_render (ChunkMesh *mesh, bool wireframe) glEnableVertexAttribArray (2); glVertexAttribPointer (2, 4, GL_INT, GL_FALSE, sizeof (ivec4), 0); - glDrawElements (wireframe ? GL_POINTS : GL_TRIANGLES, CHUNK_SIZE * 6, GL_UNSIGNED_INT, 0); + glDrawElements (wireframe ? GL_LINES : GL_TRIANGLES, CHUNK_SIZE * 6, GL_UNSIGNED_INT, 0); } diff --git a/game/src/graphics.h b/game/src/graphics.h index e5805f9..28e0606 100644 --- a/game/src/graphics.h +++ b/game/src/graphics.h @@ -13,12 +13,12 @@ #define FRUSTUM_CULL 1 -#define CHUNK_FRAME_BUDGET_US 5000 -#define ENTITY_FRAME_BUDGET_US 5000 +#define CHUNK_FRAME_BUDGET_US 500 +#define ENTITY_FRAME_BUDGET_US 500 #define RENDER_FRAME_BUDGET_US 16666 /* 60 FPS */ #define RENDER_AVG_FREQ_S 10 -#define RENDER_DISTANCE_MIN 1 +#define RENDER_DISTANCE_MIN 2 #define RENDER_DISTANCE_MAX 12 void graphics_init (); diff --git a/game/src/ui/uielement.c b/game/src/ui/uielement.c index 97b24b2..8c71ea8 100644 --- a/game/src/ui/uielement.c +++ b/game/src/ui/uielement.c @@ -1,8 +1,6 @@ #include "uielement.h" -/* TODO: Alpha blending. */ /* TODO: Texture support in the uielement shader. */ -/* TODO: UTF-8 support */ static SimpleMesh quad; static unsigned int last_program; @@ -56,16 +54,16 @@ UIElement_set_on_tick (UIElement *element, void *userdata) { element->on_tick = on_tick; - element->userdata = userdata; + element->tick_data = userdata; } void UIElement_set_on_left_click (UIElement *element, - void (*on_left_click) (struct UIElement *self, void *userdata), + void (*on_left_click) (struct UIElement *, void *), void *userdata) { element->on_left_click = on_left_click; - element->userdata = userdata; + element->left_click_data = userdata; } void @@ -120,14 +118,19 @@ UIElement_label_render_text (UIElement *element, mat3 parent_model) { last_program = program_use (RESPRG ("uitext")); } - - for (guint i = 0; i < element->label.text->len; ++i) + + const char *p = element->label.text->str; + while (*p) { + gunichar ch = g_utf8_get_char (p); + program_set_mat3 (RESPRG ("uitext"), "model", model); - program_set_float (RESPRG ("uitext"), "character", element->label.text->str[i]); + program_set_float (RESPRG ("uitext"), "character", ch); program_set_vec4 (RESPRG ("uitext"), "color", element->label.text_color); SimpleMesh_render (&quad, false); /* UI always without wireframe. */ glm_translate2d (model, (vec2) { 1.5f, 0.0f }); + + p = g_utf8_next_char (p); } } @@ -189,7 +192,7 @@ UIElement_render_with_model (UIElement *element, mat3 parent_model) program_set_vec4 (RESPRG ("uielement"), "color", element->hovered ? element->hover_background_color : element->background_color); - + glActiveTexture (GL_TEXTURE0); texture_use (element->texture); @@ -253,7 +256,7 @@ UIElement_tick (UIElement *element) { if (element->on_tick) { - element->on_tick (element, element->userdata); + element->on_tick (element, element->tick_data); } for (guint i = 0; i < element->children->len; ++i) diff --git a/game/src/ui/uielement.h b/game/src/ui/uielement.h index 0a3fd0d..479f229 100644 --- a/game/src/ui/uielement.h +++ b/game/src/ui/uielement.h @@ -1,5 +1,7 @@ #pragma once +/* TODO: Seperate userdata for each callback. */ + #include #include @@ -27,6 +29,7 @@ typedef struct UILabel { vec4 text_color; GString *text; + enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT } alignment; } UILabel; typedef struct UIElement @@ -42,13 +45,13 @@ typedef struct UIElement bool visible; bool hovered; - void *userdata; - bool ignores_events; + void (*on_left_click) (struct UIElement *, void *); + void *left_click_data; + void (*on_right_click) (struct UIElement *, void *); + void *right_click_data; + void (*on_tick) (struct UIElement *, void *); + void *tick_data; - void (*on_left_click) (struct UIElement *self, void *userdata); - void (*on_right_click) (struct UIElement *self, void *userdata); - void (*on_tick) (struct UIElement *self, void *userdata); - union { UIContainer container; UILabel label; @@ -63,8 +66,9 @@ UIElement *UIElement_label_new (const char *text); void UIElement_add_child (UIElement *parent, UIElement *child); -void UIElement_set_on_left_click (UIElement *element, void (*on_left_click) (struct UIElement *self, void *userdata), void *userdata); -void UIElement_set_on_tick (UIElement *element, void (*on_tick) (struct UIElement *self, void *userdata), void *userdata); +void UIElement_set_on_left_click (UIElement *element, void (*on_left_click) (struct UIElement *, void *), void *userdata); +void UIElement_set_on_tick (UIElement *element, void (*on_tick) (struct UIElement *, void *), void *userdata); + void UIElement_set_background_color (UIElement *element, float r, float g, float b, float a); void UIElement_set_hover_background_color (UIElement *element, float r, float g, float b, float a); void UIElement_set_position (UIElement *element, float x, float y); diff --git a/game/src/ui/uiman.c b/game/src/ui/uiman.c index c4590e3..ea2b5a6 100644 --- a/game/src/ui/uiman.c +++ b/game/src/ui/uiman.c @@ -17,7 +17,7 @@ uiman_init () UIElement *container = UIElement_container_new (false); UIElement_set_position (container, -0.5, 0.75); UIElement_set_scale (container, 0.4, 0.15); - UIElement_set_background_color (container, 1.0, 0.0, 0.0, 1.0); + UIElement_set_background_color (container, 0.0, 0.0, 0.0, 0.8); UIElement *frame_time = UIElement_label_new ("Frame time: "); UIElement_set_on_tick (frame_time, uicb_label_show_float, &delta_time); @@ -47,13 +47,13 @@ uiman_init () UIElement_add_child (container3, pos_z); UIElement *wireframe_button = UIElement_label_new ("Toggle wireframe"); - UIElement_set_background_color (wireframe_button, 0.2, 0.2, 0.2, 1.0); - UIElement_set_hover_background_color (wireframe_button, 0.3, 0.3, 0.3, 1.0); + UIElement_set_background_color (wireframe_button, 1.0, 1.0, 1.0, 0.2); + UIElement_set_hover_background_color (wireframe_button, 1.0, 1.0, 1.0, 0.3); UIElement_set_on_left_click (wireframe_button, uicb_flag_switch, "wireframe_enabled"); UIElement *flight_button = UIElement_label_new ("Toggle flight"); - UIElement_set_background_color (flight_button, 0.2, 0.2, 0.2, 1.0); - UIElement_set_hover_background_color (flight_button, 0.3, 0.3, 0.3, 1.0); + UIElement_set_background_color (flight_button, 1.0, 1.0, 1.0, 0.2); + UIElement_set_hover_background_color (flight_button, 1.0, 1.0, 1.0, 0.3); UIElement_set_on_left_click (flight_button, uicb_flag_switch, "flight_enabled"); UIElement *container4 = UIElement_container_new (true); @@ -161,13 +161,13 @@ uiman_cb_button_down (SDL_Event *event, void *data) { if (event->button.button == SDL_BUTTON_LEFT && element->on_left_click) { - element->on_left_click (element, element->userdata); + element->on_left_click (element, element->left_click_data); return true; } if (event->button.button == SDL_BUTTON_RIGHT && element->on_right_click) { - element->on_right_click (element, element->userdata); + element->on_right_click (element, element->right_click_data); return true; } } diff --git a/game/src/util.h b/game/src/util.h index 4d9e71c..25f2972 100644 --- a/game/src/util.h +++ b/game/src/util.h @@ -3,7 +3,7 @@ #include #include -#define GAME_NAME "Wschod" +#define GAME_NAME "Wschód" #define GAME_VERSION "0.2" #define COLOR_BLUE "\x1B[34m"