You are browsing as a guest. Sign up (or log in) to start making projects!

1h 42m 22s logged

So I optimized the program a LOT, I basically just capped the frame to 60FPS so now it doesn’t lag anymore. But obviously I just can’t seem to get a break cause now that it doesn’t lag I can see that the path finding is clearly broken, and it still only works when the mouse is on top of the window, and printing the mouse position clearly shows that the Global positions aren’t being updated when outside of the window…
But let’s talk about more positive things: I at least fixed Wayland compatibility (kinda… in a very junky way), I basically just used an SDL function to see what the OS being used is, and if it’s Linux you just fall back to X11. Yes, I know, as I already said, very junky, but there really isn’t much i can do, as I said in the devlog before this one: Wayland just doesn’t give it’s programs access to global coordinates :(.
A solution I tought about was to add a transparent background and put the pet window on top but that would just be even jankier then the solution that I’ve implemented now, so I’ll just make sure that the instructions tell Wayland users to have an x11 compatibility layer installed.
Ok, that’s it for this devlog’s yapping: See yall in the next one, where hopefully I’ll talk about how I was able to finally fix the path finding (Fingers crossed!!!)

0
75

Comments 2

@twinx

woah , nice rice of the hyprland

@Anthony_Queen

Thanks lol, you can find it at https://github.com/Anthony-Queen/YummyRice