![]() ![]() Snappy assumes little-endian throughout, and needs to byte-swap data in several places Snappy assumes unaligned 32- and 64-bit loads and stores are cheap. On unaligned access and little-endian, from README: It doesn't compile as C, so how to benchmark it there? Snappy.h:29: fatal error: string: No such file or directory Yeah you could benchmark these things I mentioned, but do you really need to? No, you should benchmark it first there too.Īre you talking to me or the original poster, who claimed that it was faster that anything else period. There are a huge number of possible time/space trade offs that can be made. ![]() So while your point may be valid in some contexts, graphics cards are not one of them. Commonly normal maps are stored in a 2 component texture as X,Y because you can work out Z due to the fact that the vector has unit length with a few instructions.Īnother example is a large variety of techniques for HDR colours in various ways that tend to use a few extra instructions to pack / unpack. However, more relevant to this discussion is that there are a huge number of cases in which we would store a texture in some compressed form and use extra cycles in the shader to "decompress" it.Ī great example of this is storing normal maps. Graphics cards do implement decompression of a very simple fixed compression ratio format in hardware. I'm not going to disagree with your point, but I'd just like to point out that on graphics cards most textures are stored compressed. Are you interested in promoting your own content? STOP! Read this first.For posting job listings, please visit /r/forhire or /r/jobbit.Do you have something funny to share with fellow programmers? Please take it to /r/ProgrammerHumor/.Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or Stack Overflow.Direct links to app demos (unrelated to programming) will be removed.If there is no code in your link, it probably doesn't belong here. Just because it has a computer in it doesn't make it programming.That means no image posts, no memes, no politics.Please keep submissions on topic and of high quality.r/programming is a reddit for discussion and news about computer programming ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |