Results 26 comments of Matthew

That isnt really the smart way. You have unneeded branching with what is effectively an else statement (the worst kind of branching, avoid else statements when you can with branching)...

An even number will lack the "ones" bit in its data and thus can be easily checked via bitwise operations. Due to how bitwise wont work on floats and how...

Ideally you'd want to use bitwise over modulo for this kind of thing. In JS you get a bit of a perf boost and in other languages you get a...

Ew, modulo. If you're going for the better solution use bitwise. ``` module.exports = function IsEven(n) { return !(n & 1) } ```

> Bitwise op cannot be used, for example: Nor can modulo operator be used on floats without doing a bunch of extra steps. Dividing 2.2 by two leaves you with...

For this issue my guess is that SteamVR is crashing due to HAGS (Hardware-Accelerated GPU Scheduling). HAGS generally increases VRAM usage which is normally the actual cause of stuttering/crashes in...