1
0
Fork 0
forked from vv/efemra
efemra/notes.txt

25 lines
955 B
Text
Raw Permalink Normal View History

generational structure of arrays, AKA slotmaps
- Important bit is that the components of each type are all in contiguous memory
- Core reference counted mapping, followed by dependent mappings for each
component type
2022-07-08 07:46:39 +00:00
- In pim, the current component types are:
- Mesh
- Texture -or- TexTable
- Appear to be two separate similar systems.
- First is containers/table.h, used in the non-vulkan renderer
- This has ref counting and is the first level. If no existing item
found, it calls into vkrTexTable which then uses IdAlloc.
- IdAlloc is used for vulkan stuff and also for some
quake-specific stuff?
- IdAlloc does not have reference counting.
- IdAlloc:
- IdAlloc_Alloc to get GenId. the data is passed to this and is allocated
to the correct size.
- Going to work based on the assumption that reference counting won't hurt
to add. Can make it optional and probably will be fine.