• insomniac_lemon@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 day ago

    It’s not clear if dynamic linking is allowed or not (considering it’s something you really have to go out of your way to avoid), which is a big difference.

    I was also going by some modified Raylib examples (+bindings, Linux, so size is influenced by that) I already had compiled, 1,372,160 bytes for the 2D one (no textures/sounds, just collision detection and some polygons). With my original comment I wasn’t even thinking about how dynamic links could be counted for size, only that static linking could be smaller (which isn’t even a guarantee).

    EDIT: Actually, the 3D one (yaw_pitch_roll example with plane replaced with a vertex-painted office plant) is smaller after the binary is stripped.

    Just the logic .so for one of my Godot projects is significantly big (761,856 bytes for something with ~250LoC) though that might be on the bindings or even my compilation settings.