So for example, videogames are super heavy on disk space. And aparently most of that space is just the sounds, textures, models, etc. But the code takes very little space.
Why can something as complex as a physics system weight less than a bunch of images?
Code takes very little space, media takes more. But an image is just code that tells the computer how to draw something (I think)
So how come some code gets to be so small in size and some code doesn’t?
In: 53
>But an image is just code that tells the computer how to draw something (I think)
That describes vector image formats, like svg, but bitmap images just store the actual value for each pixel. In a game vector might be used for something like text, but textures and such will generally be bitmaps, or some compressed bitmap format.
Game physics engines are simplified versions of real world physics. They’re storing the rules by which the objects behave. The rules are pretty simple, it just gets to be a whole lot of computation needed when you have many objects interacting with each other.
Latest Answers