
Breaking Changes in Raylib 6.0❓ (Freezing Window)
For the last 3 days I would fight against my computer trying to figure out why Raylib 6.0 is not working at all. Everything would compile fine and debugger starts, window is created, no errors at all, however then the window remains frozen and it won't ever be refreshed. Entering the main loop works fine but since window is frozen essentially there is not updating and event processing going on.
I don't remember exactly if this was a problem right form the start (I think that I tried some quick samples and they worked - though I am not sure) but the point is that the definitely for the last few days I was unable to figure out what was the cause. Things I tried:
• I downloaded the released version from Github (MSVC 64) (directly linking to it didn't work).
• I reinstalled VCPKG and done a clean build from source.
• I reinstalled VisualStudio2026 from scratch.
My last resort was to prompt Claude for ideas and it said to use GLFW to poll events and swap buffers, good thing is that Raylib provides those so no extra glfw linking was needed.
InitWindow(800, 600, "raylib transform sample");
SetTargetFPS(0); // this has no effect
while (!WindowShouldClose()) {
ClearBackground(BLACK);
BeginDrawing();
DrawText("hello", 10, 10 + std::sinf(GetTime() * 5.0f) * 10, 20, WHITE);
EndDrawing();
// ⚠ this line is important because it unfreezes the window
SwapScreenBuffer();
}
I am not sure if this is a special needed for my system, or is something that changed in recent Raylib versions, but anyway I will mention it just in case someone stumbles on this problem at some point.
I see in the Raylib source that SwapScreenBuffer is supposed to be called only once on EndDrawing, but it depends on the compile flag SUPPORT_CUSTOM_FRAME_CONTROL. I am not sure how this is supposed to alter the standard behavior.
https://github.com/raysan5/raylib/blob/master/src/rcore.c#L883
Anyway, I hope you find this info useful.