











Question 1I want my game to run at 800 x 600 on 32 bits. How much VRAM do I need?Answer 1800 x 600 x 4 byte = 1920 000 bytes around 1.83 megabytes(Note: 1 megabytes=1024*1 megabytes=1024 kilobytes, 1 kilobytes=1024*1 kilobytes=1024 bytes)Question 2My artist are told they have a maximum of 32MB to use for textures. How many textures can they use if they are limited to 256 x 256, with a 24 bits palette of 8 bits colour depth?Answer 2Total memory allocated = 32 megabytes x 1024 x 1024 = 33554432 bytesMemory taken per texture = 256 x 256 x 1 byte + (256 x 3) = 66304 bytesPossible images allowed = 33556632/66304= 506.0694981roughly = 506 images.Ok, I know alot of you got the answer 512 images, but take note that each images had a palette. In this case, the palette is a 24 bits palette which account to an additional of 768 bytes of memory assign to each texture. That explains the answer.
Labels: lecture