11
lxmcf
2y

Some days I feel like I really know what I am doing and today was not one of these days...

Working on a game engine using Vala and now using Raylib in the backend for rendering and input.

Wrote a VAPI for Raylib and when I was doing the 'Rectangle' struct... I made it's members integers when they are floats...

So this whole time; when using a camera everything would jitter like crazy.... because I was taking the transform which is all floats... rounding it then casting to an int only for the int to be cast into a float again....

Lo and behold; changing the members to floats and removing the rounding and casting makes everything silky smooth...

I have been debugging every bit of my current render loop trying to work this out when it was 100% unrelated.... I hate myself sometimes

Comments
Add Comment