![]() ![]() ![]() Since I am clearly insane, it probably did not. But still a requirement most of the time. With modern video cards (GPU) doing the work on multiple dedicated pipelined processors, the power of 2 limit is not necessarily needed any more for speed. When 3D graphics first appeared this was necessary to get graphics to run smooth on a CPU based rendering engine. The faster your inner loop, the faster your game will render. To render a texture to the screen there are several nested for/loops used and this is the one that is inside all the others, gets run the most, and is known as the inner loop. So any tiny improvement in speed is huge because this will be done millions of times per frame of video. And this code is run more than any other code when drawing graphics. Normal way to increment and repeat a pattern:īut the AND version is faster to do on a microprocessor. Which is a number system based on 2.Įxample to draw a repeating 8 pixel texture: This is done to speed up drawing repeating patterns using a boolean AND function to reset the pattern. Textures/Images in video games are usually a power of 2. THE MORE YOU KNOW PSA with Donkey Rosbone Someone called you Chief in the comments, so you know its good! Thanks! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |