Compressing executables (upx)

Hola,

I'm currently in the final stages of finishing the first version of a game I made using raylib. I ended up with a single statically linked binary containing all the assets. I found a tool called upx which can compress executables. I tried it on Windows, and it reduced the size of my exe by more than half and it still runs without any noticeable difference.

My question is, has anybody here experience with this? Are there any downsides to consider?

cheers!

reddit.com
u/stiggg — 4 days ago
▲ 3 r/raylib

Memory leaks with wayland (GLFW_LINUX_ENABLE_WAYLAND=TRUE)

EDIT:

After further digging down this, I've found out I can reproduce the same leaks on my machine with a minimal pure GLFW wayland example app. So raylib is not the issue here.

-----------------------------------------------------------------------------------------------------------------------

Hello everyone,

when building raylib with GLFW wayland support (GLFW_LINUX_ENABLE_WAYLAND=TRUE) I'm facing huge memory leaks, even with a complete minimal raylib app:

#include "raylib.h"

int main() {
    SetTraceLogLevel(LOG_WARNING);
    InitWindow(100, 100, "Raylib Window");

    SetTargetFPS(60);
    while (!WindowShouldClose()) {
        BeginDrawing();
        ClearBackground(PURPLE);
        EndDrawing();
    }

    CloseWindow();

    return 0;
}

Valgrind output:

==302795== LEAK SUMMARY:
==302795==    definitely lost: 1,283,840 bytes in 5,009 blocks
==302795==    indirectly lost: 2,358,312 bytes in 91,383 blocks
==302795==      possibly lost: 33,648 bytes in 78 blocks

Full report

I've tried the official 6.0 release and latest git version and it's no different. I'm on Arch linux with Hyprland.

Before I file a bug report, has anyone had similar experiences lately or am I doing something wrong?

cheers

reddit.com
u/stiggg — 24 days ago