Tag Info

Hot answers tagged


The main thing to remember is that _declspec(align(16)) only affects the struct/class layout, is respected for local or global variables, but has no affect on heap allocated memory. In other words, it doesn't matter if the member variable of a class is marked with alignment if the class is allocated with new. Heap allocations by default with x86 (32-bit) ...


I found the culprit. glm::degrees(angle) I had copy pasted that line from some guy off the internet who was for some reason converting the angle to degrees. There is absolutely no need for this conversion. According to a user on reddit: One warning about this method, your model matrix will degrade over time using this kind of technique (repeatedly ...

Only top voted, non community-wiki answers of a minimum length are eligible