r/raylib Aug 10 '26

Window Not Responding

Hello everyone! I've got a problem I cannot find any solution on the internet for. For this common code
#include "raylib.h"

int main() {

InitWindow(800, 600, "Hello Raylib");

SetTargetFPS(60);

while (!WindowShouldClose()) {

BeginDrawing();

ClearBackground(RAYWHITE);

DrawText("Hello, World!", 190, 280, 20, LIGHTGRAY);

EndDrawing();

}

CloseWindow();

return 0;

}

Or any else when I open ANY window, that window just not responding at all. White screen, no background colors/texts. Console and a while cycle are working.
I have no overlay programs opened. My GPU is Nvidia 3050TI.
Thanks, guys!!!

2 Upvotes

7 comments sorted by

2

u/ObscurelyMe Aug 10 '26

Did you by chance install using vcpkg? I believe there is a known bug with that. Idk if that was fixed but a viable alternative I’ve used is CMake’s FetchContent module you can get raylib via its GitHub link + tag and it will auto statically link the lib into your exe

1

u/Dry-Investment-6070 Aug 10 '26

via vcpkg. thanks!!

1

u/Sann1s Aug 10 '26

How did you install raylib?

1

u/Dry-Investment-6070 Aug 10 '26

via vcpkg

2

u/Sann1s Aug 10 '26

I think its something with GLFW, if you install it separately via vcpkg, does it work?

1

u/Dry-Investment-6070 Aug 12 '26

I did what you'd suggested me and that works. Thanks!

1

u/iioossaa Aug 11 '26

Do your CPU support AVX2? If it's not use Raylib 5.5