Can someone explain Quake3 'hunk'?

I read the source code and tried to research it on the Internet, but I hit the brick wall in terms of its full understanding.
I totally mean how it differs from the distribution of the zone?

Is β€œzone” used for small memory and β€œhunk” for larger files such as models, etc.?

thanks

+3
source share
1 answer

Yes, hunk is used for large static distributions, such as textures and geometry, and the zone is for smaller (and possibly mutable) distributions.

Having two (or more!) Zones like this is a common pattern in games. There are two reasons for this:

1) , , . , , // . .

2) / , . - , "", , , :)

+6

Source: https://habr.com/ru/post/1702818/


All Articles