• 0 Posts
  • 92 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle
  • Fixing a SSAO bug where indices overflowed the 32bit int on the gpu I had to use 64GB. Since then I have never needed more than 32GB and at home 24 is way more than I need.

    Well, I just remembered, actually I did need more once for a fftv bug (same story, 32bit overflow) but I borrowed a 192GB pc for that.














  • Downvote all you want, even tho gs you dont understand lol

    In 99% of C/C++ compilers, if you write “int” then it is treated as a signed 32 bit data type. If you want something else you need to specify it. Like unsigned char for example is a non signed 16bit data tupe (again,on 99% of C/C++ compilers). Thus int defaults to a signed 32 bit data type which makes ‘int’ a default value. I don’t know how to better explain that better to a developer. If you don’t understand, please do tell.




  • Well where are those unsigned default ‘int’ I said doesn’t exist, and that everyone seems to not think I’m right about?

    Don’t get me wrong, unsigned integers are useful, that’s why we hate java btw, but it was not really the question.

    Also, if you’re using like 16 bits ints because you have memory constraints then you are doing it wrong. All modern compilers can handle any kind of bits as long as it’s less than the base size, so you can have a 3bit int, another 3bit int and 2 1 bit ints, nicely #packed into a byte. You use the :3 syntax.