u/Still_Explorer

Breaking Changes in Raylib 6.0❓ (Freezing Window)
▲ 4 r/raylib

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.

u/Still_Explorer — 6 days ago

Can you use this power for any practical purposes?

Having such a great trait of the mind would be very interesting right?

🔵 Such as for example if you need to memorize some things or simply remember what you read in order to get a diploma and a higher paying job? Use this power to setup and organize information blocks (ie: mind mapping) so they are easier to recall?
👉 [ There's a chance probably that strong visual-memorization is not the same as strong visual-imagination? ]

🔵 Or if you do creative writing can you create short stories or characters talking? Or even if you do normal/technical/real writing perhaps help you get the structure and the analysis by design faster?

🔵 For any other case for those who do drawing or artistic stuff, would it be possible to see some designs and then transfer them to the canvas?
[ Though probably drawing would be very boring and time consuming because since someone is able to generate visual images instantly in their mind, drawing would be the only possible way to show to others as well what you see. ]

🔵 In a very general sense, if you are doing any sort of job or activity, it is said that with mind practice you can double the amount of practice, half in the real world and the other half inside the mind. [ see book "The Inner Game" ]

🔵 Though this mind trait is natural to some people (a talent) but if you were to give advice to those who don't have it, would there be any simple advice? [eg: requires active daily effort - doing guided imagination - listening to fiction audio books so you can imagine things - would be the most standard answer however someone who knows exactly the right mechanism might have other suggestions].

Thanks!

reddit.com
u/Still_Explorer — 1 month ago